Commit | Line | Data |
---|---|---|
0f2d19dd JB |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
9bd368c0 | 4 | # Generated automatically using autoconf version 2.13 |
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: | |
15ae1bee MD |
14 | ac_help="$ac_help |
15 | --enable-maintainer-mode enable make rules and dependencies not useful | |
16 | (and sometimes confusing) to the casual installer" | |
3a629497 JB |
17 | ac_help="$ac_help |
18 | --enable-dynamic-linking Include support for dynamic linking" | |
19 | ac_help="$ac_help | |
20 | --enable-guile-debug Include internal debugging functions" | |
5aadf8c1 | 21 | ac_help="$ac_help |
fcf627ee | 22 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
5aadf8c1 | 23 | ac_help="$ac_help |
fcf627ee | 24 | --enable-static[=PKGS] build static libraries [default=yes]" |
1630ea6c JB |
25 | ac_help="$ac_help |
26 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
5aadf8c1 | 27 | ac_help="$ac_help |
4b8a63cc | 28 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
1630ea6c | 29 | ac_help="$ac_help |
0e8a8468 | 30 | --disable-libtool-lock avoid locking (might break parallel builds)" |
956055a9 GH |
31 | ac_help="$ac_help |
32 | --with-threads thread interface" | |
0f2d19dd JB |
33 | |
34 | # Initialize some variables set by options. | |
35 | # The variables have the same names as the options, with | |
36 | # dashes changed to underlines. | |
37 | build=NONE | |
38 | cache_file=./config.cache | |
39 | exec_prefix=NONE | |
40 | host=NONE | |
41 | no_create= | |
42 | nonopt=NONE | |
43 | no_recursion= | |
44 | prefix=NONE | |
45 | program_prefix=NONE | |
46 | program_suffix=NONE | |
47 | program_transform_name=s,x,x, | |
48 | silent= | |
49 | site= | |
50 | srcdir= | |
51 | target=NONE | |
52 | verbose= | |
53 | x_includes=NONE | |
54 | x_libraries=NONE | |
55 | bindir='${exec_prefix}/bin' | |
56 | sbindir='${exec_prefix}/sbin' | |
57 | libexecdir='${exec_prefix}/libexec' | |
58 | datadir='${prefix}/share' | |
59 | sysconfdir='${prefix}/etc' | |
60 | sharedstatedir='${prefix}/com' | |
61 | localstatedir='${prefix}/var' | |
62 | libdir='${exec_prefix}/lib' | |
63 | includedir='${prefix}/include' | |
64 | oldincludedir='/usr/include' | |
65 | infodir='${prefix}/info' | |
66 | mandir='${prefix}/man' | |
67 | ||
68 | # Initialize some other variables. | |
69 | subdirs= | |
70 | MFLAGS= MAKEFLAGS= | |
9bd368c0 | 71 | SHELL=${CONFIG_SHELL-/bin/sh} |
733943b9 TT |
72 | # Maximum number of lines to put in a shell here document. |
73 | ac_max_here_lines=12 | |
0f2d19dd JB |
74 | |
75 | ac_prev= | |
76 | for ac_option | |
77 | do | |
78 | ||
79 | # If the previous option needs an argument, assign it. | |
80 | if test -n "$ac_prev"; then | |
81 | eval "$ac_prev=\$ac_option" | |
82 | ac_prev= | |
83 | continue | |
84 | fi | |
85 | ||
86 | case "$ac_option" in | |
87 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
88 | *) ac_optarg= ;; | |
89 | esac | |
90 | ||
91 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
92 | ||
93 | case "$ac_option" in | |
94 | ||
95 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
96 | ac_prev=bindir ;; | |
97 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
98 | bindir="$ac_optarg" ;; | |
99 | ||
100 | -build | --build | --buil | --bui | --bu) | |
101 | ac_prev=build ;; | |
102 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
103 | build="$ac_optarg" ;; | |
104 | ||
105 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
106 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
107 | ac_prev=cache_file ;; | |
108 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
109 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
110 | cache_file="$ac_optarg" ;; | |
111 | ||
112 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
113 | ac_prev=datadir ;; | |
114 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
115 | | --da=*) | |
116 | datadir="$ac_optarg" ;; | |
117 | ||
118 | -disable-* | --disable-*) | |
119 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
120 | # Reject names that are not valid shell variable names. | |
121 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
123 | fi | |
124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
125 | eval "enable_${ac_feature}=no" ;; | |
126 | ||
127 | -enable-* | --enable-*) | |
128 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
129 | # Reject names that are not valid shell variable names. | |
130 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
132 | fi | |
133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
134 | case "$ac_option" in | |
135 | *=*) ;; | |
136 | *) ac_optarg=yes ;; | |
137 | esac | |
138 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
139 | ||
140 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
141 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
142 | | --exec | --exe | --ex) | |
143 | ac_prev=exec_prefix ;; | |
144 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
145 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
146 | | --exec=* | --exe=* | --ex=*) | |
147 | exec_prefix="$ac_optarg" ;; | |
148 | ||
149 | -gas | --gas | --ga | --g) | |
150 | # Obsolete; use --with-gas. | |
151 | with_gas=yes ;; | |
152 | ||
153 | -help | --help | --hel | --he) | |
154 | # Omit some internal or obsolete options to make the list less imposing. | |
155 | # This message is too long to be a string in the A/UX 3.1 sh. | |
156 | cat << EOF | |
157 | Usage: configure [options] [host] | |
158 | Options: [defaults in brackets after descriptions] | |
159 | Configuration: | |
160 | --cache-file=FILE cache test results in FILE | |
161 | --help print this message | |
162 | --no-create do not create output files | |
163 | --quiet, --silent do not print \`checking...' messages | |
164 | --version print the version of autoconf that created configure | |
165 | Directory and file names: | |
166 | --prefix=PREFIX install architecture-independent files in PREFIX | |
167 | [$ac_default_prefix] | |
168 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
169 | [same as prefix] | |
170 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
171 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
172 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
173 | --datadir=DIR read-only architecture-independent data in DIR | |
174 | [PREFIX/share] | |
175 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
176 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
177 | [PREFIX/com] | |
178 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
179 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
180 | --includedir=DIR C header files in DIR [PREFIX/include] | |
181 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
182 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
183 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
184 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
185 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
186 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
187 | --program-transform-name=PROGRAM | |
188 | run sed PROGRAM on installed program names | |
189 | EOF | |
190 | cat << EOF | |
191 | Host type: | |
192 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
193 | --host=HOST configure for HOST [guessed] | |
194 | --target=TARGET configure for TARGET [TARGET=HOST] | |
195 | Features and packages: | |
196 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
197 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
198 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
199 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
200 | --x-includes=DIR X include files are in DIR | |
201 | --x-libraries=DIR X library files are in DIR | |
202 | EOF | |
203 | if test -n "$ac_help"; then | |
204 | echo "--enable and --with options recognized:$ac_help" | |
205 | fi | |
206 | exit 0 ;; | |
207 | ||
208 | -host | --host | --hos | --ho) | |
209 | ac_prev=host ;; | |
210 | -host=* | --host=* | --hos=* | --ho=*) | |
211 | host="$ac_optarg" ;; | |
212 | ||
213 | -includedir | --includedir | --includedi | --included | --include \ | |
214 | | --includ | --inclu | --incl | --inc) | |
215 | ac_prev=includedir ;; | |
216 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
217 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
218 | includedir="$ac_optarg" ;; | |
219 | ||
220 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
221 | ac_prev=infodir ;; | |
222 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
223 | infodir="$ac_optarg" ;; | |
224 | ||
225 | -libdir | --libdir | --libdi | --libd) | |
226 | ac_prev=libdir ;; | |
227 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
228 | libdir="$ac_optarg" ;; | |
229 | ||
230 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
231 | | --libexe | --libex | --libe) | |
232 | ac_prev=libexecdir ;; | |
233 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
234 | | --libexe=* | --libex=* | --libe=*) | |
235 | libexecdir="$ac_optarg" ;; | |
236 | ||
237 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
238 | | --localstate | --localstat | --localsta | --localst \ | |
239 | | --locals | --local | --loca | --loc | --lo) | |
240 | ac_prev=localstatedir ;; | |
241 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
242 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
243 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
244 | localstatedir="$ac_optarg" ;; | |
245 | ||
246 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
247 | ac_prev=mandir ;; | |
248 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
249 | mandir="$ac_optarg" ;; | |
250 | ||
251 | -nfp | --nfp | --nf) | |
252 | # Obsolete; use --without-fp. | |
253 | with_fp=no ;; | |
254 | ||
255 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
256 | | --no-cr | --no-c) | |
257 | no_create=yes ;; | |
258 | ||
259 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
260 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
261 | no_recursion=yes ;; | |
262 | ||
263 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
264 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
265 | | --oldin | --oldi | --old | --ol | --o) | |
266 | ac_prev=oldincludedir ;; | |
267 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
268 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
269 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
270 | oldincludedir="$ac_optarg" ;; | |
271 | ||
272 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
273 | ac_prev=prefix ;; | |
274 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
275 | prefix="$ac_optarg" ;; | |
276 | ||
277 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
278 | | --program-pre | --program-pr | --program-p) | |
279 | ac_prev=program_prefix ;; | |
280 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
281 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
282 | program_prefix="$ac_optarg" ;; | |
283 | ||
284 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
285 | | --program-suf | --program-su | --program-s) | |
286 | ac_prev=program_suffix ;; | |
287 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
288 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
289 | program_suffix="$ac_optarg" ;; | |
290 | ||
291 | -program-transform-name | --program-transform-name \ | |
292 | | --program-transform-nam | --program-transform-na \ | |
293 | | --program-transform-n | --program-transform- \ | |
294 | | --program-transform | --program-transfor \ | |
295 | | --program-transfo | --program-transf \ | |
296 | | --program-trans | --program-tran \ | |
297 | | --progr-tra | --program-tr | --program-t) | |
298 | ac_prev=program_transform_name ;; | |
299 | -program-transform-name=* | --program-transform-name=* \ | |
300 | | --program-transform-nam=* | --program-transform-na=* \ | |
301 | | --program-transform-n=* | --program-transform-=* \ | |
302 | | --program-transform=* | --program-transfor=* \ | |
303 | | --program-transfo=* | --program-transf=* \ | |
304 | | --program-trans=* | --program-tran=* \ | |
305 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
306 | program_transform_name="$ac_optarg" ;; | |
307 | ||
308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
309 | | -silent | --silent | --silen | --sile | --sil) | |
310 | silent=yes ;; | |
311 | ||
312 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
313 | ac_prev=sbindir ;; | |
314 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
315 | | --sbi=* | --sb=*) | |
316 | sbindir="$ac_optarg" ;; | |
317 | ||
318 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
319 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
320 | | --sharedst | --shareds | --shared | --share | --shar \ | |
321 | | --sha | --sh) | |
322 | ac_prev=sharedstatedir ;; | |
323 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
324 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
325 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
326 | | --sha=* | --sh=*) | |
327 | sharedstatedir="$ac_optarg" ;; | |
328 | ||
329 | -site | --site | --sit) | |
330 | ac_prev=site ;; | |
331 | -site=* | --site=* | --sit=*) | |
332 | site="$ac_optarg" ;; | |
333 | ||
334 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
335 | ac_prev=srcdir ;; | |
336 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
337 | srcdir="$ac_optarg" ;; | |
338 | ||
339 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
340 | | --syscon | --sysco | --sysc | --sys | --sy) | |
341 | ac_prev=sysconfdir ;; | |
342 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
343 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
344 | sysconfdir="$ac_optarg" ;; | |
345 | ||
346 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
347 | ac_prev=target ;; | |
348 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
349 | target="$ac_optarg" ;; | |
350 | ||
351 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
352 | verbose=yes ;; | |
353 | ||
354 | -version | --version | --versio | --versi | --vers) | |
9bd368c0 | 355 | echo "configure generated by autoconf version 2.13" |
0f2d19dd JB |
356 | exit 0 ;; |
357 | ||
358 | -with-* | --with-*) | |
359 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
360 | # Reject names that are not valid shell variable names. | |
361 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
363 | fi | |
364 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
365 | case "$ac_option" in | |
366 | *=*) ;; | |
367 | *) ac_optarg=yes ;; | |
368 | esac | |
369 | eval "with_${ac_package}='$ac_optarg'" ;; | |
370 | ||
371 | -without-* | --without-*) | |
372 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
373 | # Reject names that are not valid shell variable names. | |
374 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
375 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
376 | fi | |
377 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
378 | eval "with_${ac_package}=no" ;; | |
379 | ||
380 | --x) | |
381 | # Obsolete; use --with-x. | |
382 | with_x=yes ;; | |
383 | ||
384 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
385 | | --x-incl | --x-inc | --x-in | --x-i) | |
386 | ac_prev=x_includes ;; | |
387 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
388 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
389 | x_includes="$ac_optarg" ;; | |
390 | ||
391 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
392 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
393 | ac_prev=x_libraries ;; | |
394 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
395 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
396 | x_libraries="$ac_optarg" ;; | |
397 | ||
398 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
399 | ;; | |
400 | ||
401 | *) | |
402 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
403 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
404 | fi | |
405 | if test "x$nonopt" != xNONE; then | |
406 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
407 | fi | |
408 | nonopt="$ac_option" | |
409 | ;; | |
410 | ||
411 | esac | |
412 | done | |
413 | ||
414 | if test -n "$ac_prev"; then | |
415 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
416 | fi | |
417 | ||
418 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
419 | ||
420 | # File descriptor usage: | |
421 | # 0 standard input | |
422 | # 1 file creation | |
423 | # 2 errors and warnings | |
424 | # 3 some systems may open it to /dev/tty | |
425 | # 4 used on the Kubota Titan | |
426 | # 6 checking for... messages and results | |
427 | # 5 compiler messages saved in config.log | |
428 | if test "$silent" = yes; then | |
429 | exec 6>/dev/null | |
430 | else | |
431 | exec 6>&1 | |
432 | fi | |
433 | exec 5>./config.log | |
434 | ||
435 | echo "\ | |
436 | This file contains any messages produced by compilers while | |
437 | running configure, to aid debugging if configure makes a mistake. | |
438 | " 1>&5 | |
439 | ||
440 | # Strip out --no-create and --no-recursion so they do not pile up. | |
441 | # Also quote any args containing shell metacharacters. | |
442 | ac_configure_args= | |
443 | for ac_arg | |
444 | do | |
445 | case "$ac_arg" in | |
446 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
447 | | --no-cr | --no-c) ;; | |
448 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
449 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
451 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
452 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
453 | esac | |
454 | done | |
455 | ||
456 | # NLS nuisances. | |
733943b9 TT |
457 | # Only set these to C if already set. These must not be set unconditionally |
458 | # because not all systems understand e.g. LANG=C (notably SCO). | |
459 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
460 | # Non-C LC_CTYPE values break the ctype check. | |
0f2d19dd | 461 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
733943b9 TT |
462 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
463 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
464 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
0f2d19dd JB |
465 | |
466 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
467 | rm -rf conftest* confdefs.h | |
468 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
469 | echo > confdefs.h | |
470 | ||
471 | # A filename unique to this package, relative to the directory that | |
472 | # configure is in, which we can look for to find out if srcdir is correct. | |
473 | ac_unique_file=Makefile.in | |
474 | ||
475 | # Find the source files, if location was not specified. | |
476 | if test -z "$srcdir"; then | |
477 | ac_srcdir_defaulted=yes | |
478 | # Try the directory containing this script, then its parent. | |
479 | ac_prog=$0 | |
480 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
481 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
482 | srcdir=$ac_confdir | |
483 | if test ! -r $srcdir/$ac_unique_file; then | |
484 | srcdir=.. | |
485 | fi | |
486 | else | |
487 | ac_srcdir_defaulted=no | |
488 | fi | |
489 | if test ! -r $srcdir/$ac_unique_file; then | |
490 | if test "$ac_srcdir_defaulted" = yes; then | |
491 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
492 | else | |
493 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
494 | fi | |
495 | fi | |
496 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
497 | ||
498 | # Prefer explicitly selected file to automatically selected ones. | |
499 | if test -z "$CONFIG_SITE"; then | |
500 | if test "x$prefix" != xNONE; then | |
501 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
502 | else | |
503 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
504 | fi | |
505 | fi | |
506 | for ac_site_file in $CONFIG_SITE; do | |
507 | if test -r "$ac_site_file"; then | |
508 | echo "loading site script $ac_site_file" | |
509 | . "$ac_site_file" | |
510 | fi | |
511 | done | |
512 | ||
513 | if test -r "$cache_file"; then | |
514 | echo "loading cache $cache_file" | |
515 | . $cache_file | |
516 | else | |
517 | echo "creating cache $cache_file" | |
518 | > $cache_file | |
519 | fi | |
520 | ||
521 | ac_ext=c | |
522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
087d2a6f JB |
523 | ac_cpp='$CPP $CPPFLAGS' |
524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9bd368c0 | 525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
733943b9 | 526 | cross_compiling=$ac_cv_prog_cc_cross |
0f2d19dd | 527 | |
9bd368c0 MD |
528 | ac_exeext= |
529 | ac_objext=o | |
0f2d19dd JB |
530 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
531 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
532 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
533 | ac_n= ac_c=' | |
534 | ' ac_t=' ' | |
535 | else | |
536 | ac_n=-n ac_c= ac_t= | |
537 | fi | |
538 | else | |
539 | ac_n= ac_c='\c' ac_t= | |
540 | fi | |
541 | ||
542 | ||
2d26def0 | 543 | . $srcdir/GUILE-VERSION |
e63710da JB |
544 | ac_aux_dir= |
545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
546 | if test -f $ac_dir/install-sh; then | |
547 | ac_aux_dir=$ac_dir | |
548 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
549 | break | |
550 | elif test -f $ac_dir/install.sh; then | |
551 | ac_aux_dir=$ac_dir | |
552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
553 | break | |
554 | fi | |
555 | done | |
556 | if test -z "$ac_aux_dir"; then | |
557 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
558 | fi | |
559 | ac_config_guess=$ac_aux_dir/config.guess | |
560 | ac_config_sub=$ac_aux_dir/config.sub | |
561 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
562 | ||
733943b9 TT |
563 | # Find a good install program. We prefer a C program (faster), |
564 | # so one script is as good as another. But avoid the broken or | |
565 | # incompatible versions: | |
566 | # SysV /etc/install, /usr/sbin/install | |
567 | # SunOS /usr/etc/install | |
568 | # IRIX /sbin/install | |
569 | # AIX /bin/install | |
9bd368c0 | 570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
733943b9 TT |
571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
573 | # ./install, which can be erroneously created by make from ./install.sh. | |
574 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
4725c298 | 575 | echo "configure:576: checking for a BSD compatible install" >&5 |
733943b9 TT |
576 | if test -z "$INSTALL"; then |
577 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
86789f9b JB |
578 | echo $ac_n "(cached) $ac_c" 1>&6 |
579 | else | |
9bd368c0 | 580 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
86789f9b | 581 | for ac_dir in $PATH; do |
733943b9 TT |
582 | # Account for people who put trailing slashes in PATH elements. |
583 | case "$ac_dir/" in | |
584 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
585 | *) | |
586 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9bd368c0 MD |
587 | # Don't use installbsd from OSF since it installs stuff as root |
588 | # by default. | |
589 | for ac_prog in ginstall scoinst install; do | |
733943b9 TT |
590 | if test -f $ac_dir/$ac_prog; then |
591 | if test $ac_prog = install && | |
592 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
593 | # AIX install. It has an incompatible calling convention. | |
733943b9 TT |
594 | : |
595 | else | |
596 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
597 | break 2 | |
598 | fi | |
599 | fi | |
600 | done | |
601 | ;; | |
602 | esac | |
86789f9b | 603 | done |
733943b9 | 604 | IFS="$ac_save_IFS" |
86789f9b | 605 | |
087d2a6f | 606 | fi |
733943b9 TT |
607 | if test "${ac_cv_path_install+set}" = set; then |
608 | INSTALL="$ac_cv_path_install" | |
609 | else | |
610 | # As a last resort, use the slow shell script. We don't cache a | |
611 | # path for INSTALL within a source directory, because that will | |
612 | # break other packages using the cache if that directory is | |
613 | # removed, or if the path is relative. | |
614 | INSTALL="$ac_install_sh" | |
615 | fi | |
087d2a6f | 616 | fi |
733943b9 | 617 | echo "$ac_t""$INSTALL" 1>&6 |
087d2a6f | 618 | |
733943b9 TT |
619 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
620 | # It thinks the first close brace ends the variable substitution. | |
621 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
86789f9b | 622 | |
733943b9 | 623 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
86789f9b | 624 | |
9bd368c0 MD |
625 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
626 | ||
733943b9 | 627 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
4725c298 | 628 | echo "configure:629: checking whether build environment is sane" >&5 |
1dc9c5b0 JB |
629 | # Just in case |
630 | sleep 1 | |
733943b9 | 631 | echo timestamp > conftestfile |
1dc9c5b0 JB |
632 | # Do `set' in a subshell so we don't clobber the current shell's |
633 | # arguments. Must try -L first in case configure is actually a | |
634 | # symlink; some systems play weird games with the mod time of symlinks | |
635 | # (eg FreeBSD returns the mod time of the symlink's containing | |
636 | # directory). | |
637 | if ( | |
638 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
5aadf8c1 | 639 | if test "$*" = "X"; then |
1dc9c5b0 JB |
640 | # -L didn't work. |
641 | set X `ls -t $srcdir/configure conftestfile` | |
642 | fi | |
4b8a63cc MD |
643 | if test "$*" != "X $srcdir/configure conftestfile" \ |
644 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
645 | ||
646 | # If neither matched, then we have a broken ls. This can happen | |
647 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
648 | # broken ls alias from the environment. This has actually | |
649 | # happened. Such a system could not be considered "sane". | |
650 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
651 | alias in your environment" 1>&2; exit 1; } | |
652 | fi | |
653 | ||
1dc9c5b0 JB |
654 | test "$2" = conftestfile |
655 | ) | |
733943b9 TT |
656 | then |
657 | # Ok. | |
658 | : | |
5ffdd374 | 659 | else |
733943b9 TT |
660 | { echo "configure: error: newly created file is older than distributed files! |
661 | Check your system clock" 1>&2; exit 1; } | |
5ffdd374 | 662 | fi |
733943b9 TT |
663 | rm -f conftest* |
664 | echo "$ac_t""yes" 1>&6 | |
665 | if test "$program_transform_name" = s,x,x,; then | |
666 | program_transform_name= | |
667 | else | |
668 | # Double any \ or $. echo might interpret backslashes. | |
669 | cat <<\EOF_SED > conftestsed | |
670 | s,\\,\\\\,g; s,\$,$$,g | |
671 | EOF_SED | |
672 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
673 | rm -f conftestsed | |
674 | fi | |
675 | test "$program_prefix" != NONE && | |
676 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
677 | # Use a double $ so make ignores it. | |
678 | test "$program_suffix" != NONE && | |
679 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
680 | ||
681 | # sed with no file args requires a program. | |
682 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
683 | ||
4b8a63cc | 684 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
4725c298 | 685 | echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
4b8a63cc MD |
686 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
687 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
689 | else | |
690 | cat > conftestmake <<\EOF | |
691 | all: | |
692 | @echo 'ac_maketemp="${MAKE}"' | |
693 | EOF | |
694 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
695 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
696 | if test -n "$ac_maketemp"; then | |
697 | eval ac_cv_prog_make_${ac_make}_set=yes | |
698 | else | |
699 | eval ac_cv_prog_make_${ac_make}_set=no | |
700 | fi | |
701 | rm -f conftestmake | |
702 | fi | |
703 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
704 | echo "$ac_t""yes" 1>&6 | |
705 | SET_MAKE= | |
706 | else | |
707 | echo "$ac_t""no" 1>&6 | |
708 | SET_MAKE="MAKE=${MAKE-make}" | |
709 | fi | |
710 | ||
711 | ||
712 | PACKAGE=$PACKAGE | |
713 | ||
714 | VERSION=$VERSION | |
715 | ||
716 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
717 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
718 | fi | |
719 | ||
720 | ||
721 | ||
1dc9c5b0 JB |
722 | missing_dir=`cd $ac_aux_dir && pwd` |
723 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
4725c298 | 724 | echo "configure:725: checking for working aclocal" >&5 |
1dc9c5b0 JB |
725 | # Run test in a subshell; some versions of sh will print an error if |
726 | # an executable is not found, even if stderr is redirected. | |
c7b6463e JB |
727 | # Redirect stdin to placate older versions of autoconf. Sigh. |
728 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1dc9c5b0 JB |
729 | ACLOCAL=aclocal |
730 | echo "$ac_t""found" 1>&6 | |
731 | else | |
732 | ACLOCAL="$missing_dir/missing aclocal" | |
733 | echo "$ac_t""missing" 1>&6 | |
734 | fi | |
735 | ||
736 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
4725c298 | 737 | echo "configure:738: checking for working autoconf" >&5 |
1dc9c5b0 JB |
738 | # Run test in a subshell; some versions of sh will print an error if |
739 | # an executable is not found, even if stderr is redirected. | |
c7b6463e JB |
740 | # Redirect stdin to placate older versions of autoconf. Sigh. |
741 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1dc9c5b0 JB |
742 | AUTOCONF=autoconf |
743 | echo "$ac_t""found" 1>&6 | |
744 | else | |
745 | AUTOCONF="$missing_dir/missing autoconf" | |
746 | echo "$ac_t""missing" 1>&6 | |
747 | fi | |
748 | ||
749 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
4725c298 | 750 | echo "configure:751: checking for working automake" >&5 |
1dc9c5b0 JB |
751 | # Run test in a subshell; some versions of sh will print an error if |
752 | # an executable is not found, even if stderr is redirected. | |
c7b6463e JB |
753 | # Redirect stdin to placate older versions of autoconf. Sigh. |
754 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1dc9c5b0 JB |
755 | AUTOMAKE=automake |
756 | echo "$ac_t""found" 1>&6 | |
757 | else | |
758 | AUTOMAKE="$missing_dir/missing automake" | |
759 | echo "$ac_t""missing" 1>&6 | |
760 | fi | |
761 | ||
762 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
4725c298 | 763 | echo "configure:764: checking for working autoheader" >&5 |
1dc9c5b0 JB |
764 | # Run test in a subshell; some versions of sh will print an error if |
765 | # an executable is not found, even if stderr is redirected. | |
c7b6463e JB |
766 | # Redirect stdin to placate older versions of autoconf. Sigh. |
767 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1dc9c5b0 JB |
768 | AUTOHEADER=autoheader |
769 | echo "$ac_t""found" 1>&6 | |
770 | else | |
771 | AUTOHEADER="$missing_dir/missing autoheader" | |
772 | echo "$ac_t""missing" 1>&6 | |
773 | fi | |
774 | ||
775 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
4725c298 | 776 | echo "configure:777: checking for working makeinfo" >&5 |
1dc9c5b0 JB |
777 | # Run test in a subshell; some versions of sh will print an error if |
778 | # an executable is not found, even if stderr is redirected. | |
c7b6463e JB |
779 | # Redirect stdin to placate older versions of autoconf. Sigh. |
780 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1dc9c5b0 JB |
781 | MAKEINFO=makeinfo |
782 | echo "$ac_t""found" 1>&6 | |
783 | else | |
784 | MAKEINFO="$missing_dir/missing makeinfo" | |
785 | echo "$ac_t""missing" 1>&6 | |
786 | fi | |
787 | ||
86789f9b | 788 | |
15ae1bee | 789 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
4725c298 | 790 | echo "configure:791: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
15ae1bee MD |
791 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
792 | if test "${enable_maintainer_mode+set}" = set; then | |
793 | enableval="$enable_maintainer_mode" | |
794 | USE_MAINTAINER_MODE=$enableval | |
795 | else | |
796 | USE_MAINTAINER_MODE=no | |
797 | fi | |
798 | ||
799 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
9bd368c0 MD |
800 | |
801 | ||
802 | if test $USE_MAINTAINER_MODE = yes; then | |
803 | MAINTAINER_MODE_TRUE= | |
804 | MAINTAINER_MODE_FALSE='#' | |
805 | else | |
806 | MAINTAINER_MODE_TRUE='#' | |
807 | MAINTAINER_MODE_FALSE= | |
808 | fi | |
809 | MAINT=$MAINTAINER_MODE_TRUE | |
15ae1bee MD |
810 | |
811 | ||
86789f9b | 812 | |
733943b9 | 813 | |
2d26def0 | 814 | |
e63710da | 815 | |
0e8a8468 MV |
816 | #-------------------------------------------------------------------- |
817 | # | |
818 | # Independent Subdirectories | |
819 | # | |
820 | #-------------------------------------------------------------------- | |
821 | ||
822 | subdirs="guile-readline" | |
823 | ||
824 | ||
3a629497 | 825 | #-------------------------------------------------------------------- |
0f2d19dd | 826 | # |
3a629497 | 827 | # User options |
0f2d19dd | 828 | # |
3a629497 JB |
829 | #-------------------------------------------------------------------- |
830 | ||
3a629497 JB |
831 | # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given. |
832 | if test "${enable_dynamic_linking+set}" = set; then | |
833 | enableval="$enable_dynamic_linking" | |
834 | : | |
af8865f7 JB |
835 | else |
836 | enable_dynamic_linking=yes | |
3a629497 | 837 | fi |
0f2d19dd | 838 | |
0f2d19dd | 839 | |
3a629497 JB |
840 | # Check whether --enable-guile-debug or --disable-guile-debug was given. |
841 | if test "${enable_guile_debug+set}" = set; then | |
842 | enableval="$enable_guile_debug" | |
749c7da1 MD |
843 | if test "$enable_guile_debug" = y || test "$enable_guile_debug" = yes; then |
844 | cat >> confdefs.h <<\EOF | |
845 | #define GUILE_DEBUG 1 | |
846 | EOF | |
847 | ||
848 | fi | |
3a629497 | 849 | fi |
0f2d19dd | 850 | |
749c7da1 | 851 | |
c176b92b JB |
852 | cat >> confdefs.h <<\EOF |
853 | #define DEBUG_EXTENSIONS 1 | |
854 | EOF | |
855 | ||
856 | cat >> confdefs.h <<\EOF | |
857 | #define READER_EXTENSIONS 1 | |
858 | EOF | |
859 | ||
860 | ||
3a629497 | 861 | #-------------------------------------------------------------------- |
0f2d19dd | 862 | |
3a629497 JB |
863 | # Extract the first word of "gcc", so it can be a program name with args. |
864 | set dummy gcc; ac_word=$2 | |
865 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4725c298 | 866 | echo "configure:867: checking for $ac_word" >&5 |
3a629497 JB |
867 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
869 | else | |
870 | if test -n "$CC"; then | |
871 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
872 | else | |
9bd368c0 MD |
873 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
874 | ac_dummy="$PATH" | |
875 | for ac_dir in $ac_dummy; do | |
3a629497 JB |
876 | test -z "$ac_dir" && ac_dir=. |
877 | if test -f $ac_dir/$ac_word; then | |
878 | ac_cv_prog_CC="gcc" | |
879 | break | |
880 | fi | |
881 | done | |
882 | IFS="$ac_save_ifs" | |
883 | fi | |
884 | fi | |
885 | CC="$ac_cv_prog_CC" | |
886 | if test -n "$CC"; then | |
887 | echo "$ac_t""$CC" 1>&6 | |
888 | else | |
889 | echo "$ac_t""no" 1>&6 | |
890 | fi | |
0f2d19dd | 891 | |
3a629497 JB |
892 | if test -z "$CC"; then |
893 | # Extract the first word of "cc", so it can be a program name with args. | |
894 | set dummy cc; ac_word=$2 | |
895 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4725c298 | 896 | echo "configure:897: checking for $ac_word" >&5 |
3a629497 JB |
897 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
898 | echo $ac_n "(cached) $ac_c" 1>&6 | |
899 | else | |
900 | if test -n "$CC"; then | |
901 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
902 | else | |
9bd368c0 | 903 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3a629497 | 904 | ac_prog_rejected=no |
9bd368c0 MD |
905 | ac_dummy="$PATH" |
906 | for ac_dir in $ac_dummy; do | |
3a629497 JB |
907 | test -z "$ac_dir" && ac_dir=. |
908 | if test -f $ac_dir/$ac_word; then | |
909 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
910 | ac_prog_rejected=yes | |
911 | continue | |
912 | fi | |
913 | ac_cv_prog_CC="cc" | |
914 | break | |
915 | fi | |
916 | done | |
917 | IFS="$ac_save_ifs" | |
918 | if test $ac_prog_rejected = yes; then | |
919 | # We found a bogon in the path, so make sure we never use it. | |
920 | set dummy $ac_cv_prog_CC | |
921 | shift | |
922 | if test $# -gt 0; then | |
923 | # We chose a different compiler from the bogus one. | |
924 | # However, it has the same basename, so the bogon will be chosen | |
925 | # first if we set CC to just the basename; use the full file name. | |
926 | shift | |
927 | set dummy "$ac_dir/$ac_word" "$@" | |
928 | shift | |
929 | ac_cv_prog_CC="$@" | |
930 | fi | |
931 | fi | |
932 | fi | |
933 | fi | |
934 | CC="$ac_cv_prog_CC" | |
935 | if test -n "$CC"; then | |
936 | echo "$ac_t""$CC" 1>&6 | |
937 | else | |
938 | echo "$ac_t""no" 1>&6 | |
939 | fi | |
0f2d19dd | 940 | |
9bd368c0 MD |
941 | if test -z "$CC"; then |
942 | case "`uname -s`" in | |
943 | *win32* | *WIN32*) | |
944 | # Extract the first word of "cl", so it can be a program name with args. | |
945 | set dummy cl; ac_word=$2 | |
946 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4725c298 | 947 | echo "configure:948: checking for $ac_word" >&5 |
9bd368c0 MD |
948 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
950 | else | |
951 | if test -n "$CC"; then | |
952 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
953 | else | |
954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
955 | ac_dummy="$PATH" | |
956 | for ac_dir in $ac_dummy; do | |
957 | test -z "$ac_dir" && ac_dir=. | |
958 | if test -f $ac_dir/$ac_word; then | |
959 | ac_cv_prog_CC="cl" | |
960 | break | |
961 | fi | |
962 | done | |
963 | IFS="$ac_save_ifs" | |
964 | fi | |
965 | fi | |
966 | CC="$ac_cv_prog_CC" | |
967 | if test -n "$CC"; then | |
968 | echo "$ac_t""$CC" 1>&6 | |
969 | else | |
970 | echo "$ac_t""no" 1>&6 | |
971 | fi | |
972 | ;; | |
973 | esac | |
974 | fi | |
3a629497 JB |
975 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
976 | fi | |
0f2d19dd | 977 | |
3a629497 | 978 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
4725c298 | 979 | echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
733943b9 | 980 | |
3a629497 JB |
981 | ac_ext=c |
982 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
983 | ac_cpp='$CPP $CPPFLAGS' | |
984 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9bd368c0 | 985 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
3a629497 | 986 | cross_compiling=$ac_cv_prog_cc_cross |
733943b9 | 987 | |
9bd368c0 MD |
988 | cat > conftest.$ac_ext << EOF |
989 | ||
4725c298 | 990 | #line 991 "configure" |
3a629497 | 991 | #include "confdefs.h" |
9bd368c0 | 992 | |
3a629497 JB |
993 | main(){return(0);} |
994 | EOF | |
4725c298 | 995 | if { (eval echo configure:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 JB |
996 | ac_cv_prog_cc_works=yes |
997 | # If we can't run a trivial program, we are probably using a cross compiler. | |
998 | if (./conftest; exit) 2>/dev/null; then | |
999 | ac_cv_prog_cc_cross=no | |
733943b9 | 1000 | else |
3a629497 | 1001 | ac_cv_prog_cc_cross=yes |
733943b9 | 1002 | fi |
3a629497 JB |
1003 | else |
1004 | echo "configure: failed program was:" >&5 | |
1005 | cat conftest.$ac_ext >&5 | |
1006 | ac_cv_prog_cc_works=no | |
733943b9 | 1007 | fi |
3a629497 | 1008 | rm -fr conftest* |
9bd368c0 MD |
1009 | ac_ext=c |
1010 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1011 | ac_cpp='$CPP $CPPFLAGS' | |
1012 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1013 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1014 | cross_compiling=$ac_cv_prog_cc_cross | |
733943b9 | 1015 | |
3a629497 JB |
1016 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1017 | if test $ac_cv_prog_cc_works = no; then | |
1018 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1019 | fi | |
1020 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
4725c298 | 1021 | echo "configure:1022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
3a629497 JB |
1022 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1023 | cross_compiling=$ac_cv_prog_cc_cross | |
0f2d19dd | 1024 | |
3a629497 | 1025 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
4725c298 | 1026 | echo "configure:1027: checking whether we are using GNU C" >&5 |
3a629497 JB |
1027 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1029 | else | |
1030 | cat > conftest.c <<EOF | |
1031 | #ifdef __GNUC__ | |
1032 | yes; | |
1033 | #endif | |
0f2d19dd | 1034 | EOF |
4725c298 | 1035 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
3a629497 JB |
1036 | ac_cv_prog_gcc=yes |
1037 | else | |
1038 | ac_cv_prog_gcc=no | |
1039 | fi | |
1040 | fi | |
0f2d19dd | 1041 | |
3a629497 | 1042 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
0f2d19dd | 1043 | |
3a629497 JB |
1044 | if test $ac_cv_prog_gcc = yes; then |
1045 | GCC=yes | |
9bd368c0 MD |
1046 | else |
1047 | GCC= | |
1048 | fi | |
1049 | ||
1050 | ac_test_CFLAGS="${CFLAGS+set}" | |
1051 | ac_save_CFLAGS="$CFLAGS" | |
1052 | CFLAGS= | |
1053 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
4725c298 | 1054 | echo "configure:1055: checking whether ${CC-cc} accepts -g" >&5 |
3a629497 JB |
1055 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1057 | else | |
1058 | echo 'void f(){}' > conftest.c | |
1059 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1060 | ac_cv_prog_cc_g=yes | |
1061 | else | |
1062 | ac_cv_prog_cc_g=no | |
1063 | fi | |
1064 | rm -f conftest* | |
1065 | ||
1066 | fi | |
1067 | ||
1068 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
9bd368c0 MD |
1069 | if test "$ac_test_CFLAGS" = set; then |
1070 | CFLAGS="$ac_save_CFLAGS" | |
1071 | elif test $ac_cv_prog_cc_g = yes; then | |
1072 | if test "$GCC" = yes; then | |
3a629497 | 1073 | CFLAGS="-g -O2" |
0f2d19dd | 1074 | else |
9bd368c0 | 1075 | CFLAGS="-g" |
5a6b99a1 | 1076 | fi |
d5fb9ed8 | 1077 | else |
9bd368c0 MD |
1078 | if test "$GCC" = yes; then |
1079 | CFLAGS="-O2" | |
1080 | else | |
1081 | CFLAGS= | |
1082 | fi | |
3a629497 | 1083 | fi |
0f2d19dd | 1084 | |
3a629497 | 1085 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
4725c298 | 1086 | echo "configure:1087: checking how to run the C preprocessor" >&5 |
3a629497 JB |
1087 | # On Suns, sometimes $CPP names a directory. |
1088 | if test -n "$CPP" && test -d "$CPP"; then | |
1089 | CPP= | |
1090 | fi | |
1091 | if test -z "$CPP"; then | |
1092 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1094 | else | |
1095 | # This must be in double quotes, not single quotes, because CPP may get | |
1096 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1097 | CPP="${CC-cc} -E" | |
1098 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1099 | # not just through cpp. | |
1100 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1101 | #line 1102 "configure" |
3a629497 JB |
1102 | #include "confdefs.h" |
1103 | #include <assert.h> | |
1104 | Syntax Error | |
1105 | EOF | |
1106 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 1107 | { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 1108 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
1109 | if test -z "$ac_err"; then |
1110 | : | |
1111 | else | |
1112 | echo "$ac_err" >&5 | |
1113 | echo "configure: failed program was:" >&5 | |
1114 | cat conftest.$ac_ext >&5 | |
1115 | rm -rf conftest* | |
1116 | CPP="${CC-cc} -E -traditional-cpp" | |
1117 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1118 | #line 1119 "configure" |
9bd368c0 MD |
1119 | #include "confdefs.h" |
1120 | #include <assert.h> | |
1121 | Syntax Error | |
1122 | EOF | |
1123 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 1124 | { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 MD |
1125 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1126 | if test -z "$ac_err"; then | |
1127 | : | |
1128 | else | |
1129 | echo "$ac_err" >&5 | |
1130 | echo "configure: failed program was:" >&5 | |
1131 | cat conftest.$ac_ext >&5 | |
1132 | rm -rf conftest* | |
1133 | CPP="${CC-cc} -nologo -E" | |
1134 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1135 | #line 1136 "configure" |
3a629497 JB |
1136 | #include "confdefs.h" |
1137 | #include <assert.h> | |
1138 | Syntax Error | |
1139 | EOF | |
1140 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 1141 | { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 1142 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
1143 | if test -z "$ac_err"; then |
1144 | : | |
1145 | else | |
1146 | echo "$ac_err" >&5 | |
1147 | echo "configure: failed program was:" >&5 | |
1148 | cat conftest.$ac_ext >&5 | |
1149 | rm -rf conftest* | |
1150 | CPP=/lib/cpp | |
1151 | fi | |
1152 | rm -f conftest* | |
1153 | fi | |
9bd368c0 MD |
1154 | rm -f conftest* |
1155 | fi | |
3a629497 JB |
1156 | rm -f conftest* |
1157 | ac_cv_prog_CPP="$CPP" | |
1158 | fi | |
1159 | CPP="$ac_cv_prog_CPP" | |
1160 | else | |
1161 | ac_cv_prog_CPP="$CPP" | |
1162 | fi | |
1163 | echo "$ac_t""$CPP" 1>&6 | |
1164 | ||
4b8a63cc MD |
1165 | # Check whether --enable-shared or --disable-shared was given. |
1166 | if test "${enable_shared+set}" = set; then | |
1167 | enableval="$enable_shared" | |
1168 | p=${PACKAGE-default} | |
1169 | case "$enableval" in | |
1170 | yes) enable_shared=yes ;; | |
1171 | no) enable_shared=no ;; | |
1172 | *) | |
1173 | enable_shared=no | |
1174 | # Look at the argument we got. We use all the common list separators. | |
1175 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1176 | for pkg in $enableval; do | |
1177 | if test "X$pkg" = "X$p"; then | |
1178 | enable_shared=yes | |
1179 | fi | |
1180 | done | |
1181 | IFS="$ac_save_ifs" | |
1182 | ;; | |
1183 | esac | |
1184 | else | |
1185 | enable_shared=yes | |
1186 | fi | |
1187 | ||
1188 | # Check whether --enable-static or --disable-static was given. | |
1189 | if test "${enable_static+set}" = set; then | |
1190 | enableval="$enable_static" | |
1191 | p=${PACKAGE-default} | |
1192 | case "$enableval" in | |
1193 | yes) enable_static=yes ;; | |
1194 | no) enable_static=no ;; | |
1195 | *) | |
1196 | enable_static=no | |
1197 | # Look at the argument we got. We use all the common list separators. | |
1198 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1199 | for pkg in $enableval; do | |
1200 | if test "X$pkg" = "X$p"; then | |
1201 | enable_static=yes | |
1202 | fi | |
1203 | done | |
1204 | IFS="$ac_save_ifs" | |
1205 | ;; | |
1206 | esac | |
1207 | else | |
1208 | enable_static=yes | |
1209 | fi | |
1210 | ||
1630ea6c JB |
1211 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1212 | if test "${enable_fast_install+set}" = set; then | |
1213 | enableval="$enable_fast_install" | |
1214 | p=${PACKAGE-default} | |
1215 | case "$enableval" in | |
1216 | yes) enable_fast_install=yes ;; | |
1217 | no) enable_fast_install=no ;; | |
1218 | *) | |
1219 | enable_fast_install=no | |
1220 | # Look at the argument we got. We use all the common list separators. | |
1221 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1222 | for pkg in $enableval; do | |
1223 | if test "X$pkg" = "X$p"; then | |
1224 | enable_fast_install=yes | |
1225 | fi | |
1226 | done | |
1227 | IFS="$ac_save_ifs" | |
1228 | ;; | |
1229 | esac | |
1230 | else | |
1231 | enable_fast_install=yes | |
1232 | fi | |
1233 | ||
5aadf8c1 MG |
1234 | |
1235 | # Make sure we can run config.sub. | |
9bd368c0 | 1236 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
5aadf8c1 MG |
1237 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
1238 | fi | |
1239 | ||
1240 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
4725c298 | 1241 | echo "configure:1242: checking host system type" >&5 |
5aadf8c1 MG |
1242 | |
1243 | host_alias=$host | |
1244 | case "$host_alias" in | |
1245 | NONE) | |
1246 | case $nonopt in | |
1247 | NONE) | |
9bd368c0 | 1248 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
5aadf8c1 MG |
1249 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
1250 | fi ;; | |
1251 | *) host_alias=$nonopt ;; | |
1252 | esac ;; | |
1253 | esac | |
1254 | ||
9bd368c0 | 1255 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
5aadf8c1 MG |
1256 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1257 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1258 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1259 | echo "$ac_t""$host" 1>&6 | |
1260 | ||
1630ea6c | 1261 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
4725c298 | 1262 | echo "configure:1263: checking build system type" >&5 |
1630ea6c JB |
1263 | |
1264 | build_alias=$build | |
1265 | case "$build_alias" in | |
1266 | NONE) | |
1267 | case $nonopt in | |
1268 | NONE) build_alias=$host_alias ;; | |
1269 | *) build_alias=$nonopt ;; | |
1270 | esac ;; | |
1271 | esac | |
1272 | ||
1273 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1274 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1275 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1276 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1277 | echo "$ac_t""$build" 1>&6 | |
1278 | ||
5aadf8c1 MG |
1279 | # Extract the first word of "ranlib", so it can be a program name with args. |
1280 | set dummy ranlib; ac_word=$2 | |
1281 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4725c298 | 1282 | echo "configure:1283: checking for $ac_word" >&5 |
5aadf8c1 MG |
1283 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1284 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1285 | else | |
1286 | if test -n "$RANLIB"; then | |
1287 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1288 | else | |
9bd368c0 MD |
1289 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1290 | ac_dummy="$PATH" | |
1291 | for ac_dir in $ac_dummy; do | |
5aadf8c1 MG |
1292 | test -z "$ac_dir" && ac_dir=. |
1293 | if test -f $ac_dir/$ac_word; then | |
1294 | ac_cv_prog_RANLIB="ranlib" | |
1295 | break | |
1296 | fi | |
1297 | done | |
1298 | IFS="$ac_save_ifs" | |
1299 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1300 | fi | |
1301 | fi | |
1302 | RANLIB="$ac_cv_prog_RANLIB" | |
1303 | if test -n "$RANLIB"; then | |
1304 | echo "$ac_t""$RANLIB" 1>&6 | |
1305 | else | |
1306 | echo "$ac_t""no" 1>&6 | |
1307 | fi | |
1308 | ||
1309 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
1310 | if test "${with_gnu_ld+set}" = set; then | |
1311 | withval="$with_gnu_ld" | |
1312 | test "$withval" = no || with_gnu_ld=yes | |
1313 | else | |
1314 | with_gnu_ld=no | |
1315 | fi | |
1316 | ||
5aadf8c1 MG |
1317 | ac_prog=ld |
1318 | if test "$ac_cv_prog_gcc" = yes; then | |
1319 | # Check if gcc -print-prog-name=ld gives a path. | |
1320 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
4725c298 | 1321 | echo "configure:1322: checking for ld used by GCC" >&5 |
5aadf8c1 MG |
1322 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1323 | case "$ac_prog" in | |
1630ea6c | 1324 | # Accept absolute paths. |
0e8a8468 | 1325 | [\\/]* | [A-Za-z]:[\\/]*) |
1630ea6c JB |
1326 | re_direlt='/[^/][^/]*/\.\./' |
1327 | # Canonicalize the path of ld | |
1328 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1329 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1330 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1331 | done | |
1332 | test -z "$LD" && LD="$ac_prog" | |
1333 | ;; | |
5aadf8c1 MG |
1334 | "") |
1335 | # If it fails, then pretend we aren't using GCC. | |
1336 | ac_prog=ld | |
1337 | ;; | |
1338 | *) | |
1339 | # If it is relative, then search for the first ld in PATH. | |
1340 | with_gnu_ld=unknown | |
1341 | ;; | |
1342 | esac | |
1343 | elif test "$with_gnu_ld" = yes; then | |
1344 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
4725c298 | 1345 | echo "configure:1346: checking for GNU ld" >&5 |
5aadf8c1 MG |
1346 | else |
1347 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
4725c298 | 1348 | echo "configure:1349: checking for non-GNU ld" >&5 |
5aadf8c1 MG |
1349 | fi |
1350 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1352 | else | |
1353 | if test -z "$LD"; then | |
0e8a8468 | 1354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
5aadf8c1 MG |
1355 | for ac_dir in $PATH; do |
1356 | test -z "$ac_dir" && ac_dir=. | |
0e8a8468 | 1357 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
5aadf8c1 MG |
1358 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1359 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1360 | # but apparently some GNU ld's only accept -v. | |
1361 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1362 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1363 | test "$with_gnu_ld" != no && break | |
1364 | else | |
1630ea6c | 1365 | test "$with_gnu_ld" != yes && break |
5aadf8c1 MG |
1366 | fi |
1367 | fi | |
1368 | done | |
1369 | IFS="$ac_save_ifs" | |
1370 | else | |
1371 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1372 | fi | |
1373 | fi | |
1374 | ||
1375 | LD="$ac_cv_path_LD" | |
1376 | if test -n "$LD"; then | |
1377 | echo "$ac_t""$LD" 1>&6 | |
1378 | else | |
1379 | echo "$ac_t""no" 1>&6 | |
1380 | fi | |
1381 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1382 | ||
1383 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
4725c298 | 1384 | echo "configure:1385: checking if the linker ($LD) is GNU ld" >&5 |
5aadf8c1 MG |
1385 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1387 | else | |
1388 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1389 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1390 | ac_cv_prog_gnu_ld=yes | |
1391 | else | |
1392 | ac_cv_prog_gnu_ld=no | |
1393 | fi | |
1394 | fi | |
1395 | ||
1396 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1397 | ||
1398 | ||
1399 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
4725c298 | 1400 | echo "configure:1401: checking for BSD-compatible nm" >&5 |
5aadf8c1 MG |
1401 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1403 | else | |
fcf627ee JB |
1404 | if test -n "$NM"; then |
1405 | # Let the user override the test. | |
1406 | ac_cv_path_NM="$NM" | |
1407 | else | |
0e8a8468 | 1408 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
1630ea6c | 1409 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4b8a63cc | 1410 | test -z "$ac_dir" && ac_dir=. |
0e8a8468 | 1411 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
5aadf8c1 | 1412 | # Check to see if the nm accepts a BSD-compat flag. |
4b8a63cc MD |
1413 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
1414 | # nm: unknown option "B" ignored | |
1415 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1630ea6c JB |
1416 | ac_cv_path_NM="$ac_dir/nm -B" |
1417 | break | |
4b8a63cc | 1418 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
1630ea6c JB |
1419 | ac_cv_path_NM="$ac_dir/nm -p" |
1420 | break | |
5aadf8c1 | 1421 | else |
1630ea6c JB |
1422 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
1423 | continue # so that we can try to find one that supports BSD flags | |
5aadf8c1 | 1424 | fi |
5aadf8c1 MG |
1425 | fi |
1426 | done | |
1427 | IFS="$ac_save_ifs" | |
1428 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
fcf627ee | 1429 | fi |
3668b8c7 MD |
1430 | fi |
1431 | ||
1d335863 JB |
1432 | NM="$ac_cv_path_NM" |
1433 | echo "$ac_t""$NM" 1>&6 | |
3668b8c7 | 1434 | |
3668b8c7 | 1435 | |
5aadf8c1 | 1436 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
4725c298 | 1437 | echo "configure:1438: checking whether ln -s works" >&5 |
5aadf8c1 MG |
1438 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1440 | else | |
1441 | rm -f conftestdata | |
1442 | if ln -s X conftestdata 2>/dev/null | |
1443 | then | |
1444 | rm -f conftestdata | |
1445 | ac_cv_prog_LN_S="ln -s" | |
1446 | else | |
1447 | ac_cv_prog_LN_S=ln | |
1448 | fi | |
1449 | fi | |
1450 | LN_S="$ac_cv_prog_LN_S" | |
1451 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1452 | echo "$ac_t""yes" 1>&6 | |
1453 | else | |
1454 | echo "$ac_t""no" 1>&6 | |
1455 | fi | |
1456 | ||
5aadf8c1 | 1457 | |
4b8a63cc | 1458 | # Check for any special flags to pass to ltconfig. |
1630ea6c | 1459 | libtool_flags="--cache-file=$cache_file" |
4b8a63cc MD |
1460 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1461 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1630ea6c | 1462 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
5aadf8c1 MG |
1463 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
1464 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
1465 | ||
0e8a8468 MV |
1466 | |
1467 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1468 | if test "${enable_libtool_lock+set}" = set; then | |
1469 | enableval="$enable_libtool_lock" | |
1470 | : | |
1471 | fi | |
1472 | ||
1473 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
1474 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
1475 | ||
5aadf8c1 MG |
1476 | # Some flags need to be propagated to the compiler or linker for good |
1477 | # libtool support. | |
1478 | case "$host" in | |
1479 | *-*-irix6*) | |
4b8a63cc | 1480 | # Find out which ABI we are using. |
4725c298 MD |
1481 | echo '#line 1482 "configure"' > conftest.$ac_ext |
1482 | if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4b8a63cc MD |
1483 | case "`/usr/bin/file conftest.o`" in |
1484 | *32-bit*) | |
1485 | LD="${LD-ld} -32" | |
1486 | ;; | |
1487 | *N32*) | |
1488 | LD="${LD-ld} -n32" | |
1489 | ;; | |
1490 | *64-bit*) | |
1491 | LD="${LD-ld} -64" | |
1492 | ;; | |
1493 | esac | |
1494 | fi | |
1495 | rm -rf conftest* | |
5aadf8c1 MG |
1496 | ;; |
1497 | ||
1498 | *-*-sco3.2v5*) | |
1499 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1630ea6c | 1500 | SAVE_CFLAGS="$CFLAGS" |
5aadf8c1 | 1501 | CFLAGS="$CFLAGS -belf" |
1630ea6c | 1502 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
4725c298 | 1503 | echo "configure:1504: checking whether the C compiler needs -belf" >&5 |
1630ea6c JB |
1504 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1506 | else | |
1507 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1508 | #line 1509 "configure" |
1630ea6c JB |
1509 | #include "confdefs.h" |
1510 | ||
1511 | int main() { | |
1512 | ||
1513 | ; return 0; } | |
1514 | EOF | |
4725c298 | 1515 | if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1630ea6c JB |
1516 | rm -rf conftest* |
1517 | lt_cv_cc_needs_belf=yes | |
1518 | else | |
1519 | echo "configure: failed program was:" >&5 | |
1520 | cat conftest.$ac_ext >&5 | |
1521 | rm -rf conftest* | |
1522 | lt_cv_cc_needs_belf=no | |
1523 | fi | |
1524 | rm -f conftest* | |
1525 | fi | |
1526 | ||
1527 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
1528 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1529 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1530 | CFLAGS="$SAVE_CFLAGS" | |
1531 | fi | |
fcf627ee | 1532 | ;; |
1630ea6c | 1533 | |
1630ea6c | 1534 | |
5aadf8c1 MG |
1535 | esac |
1536 | ||
1630ea6c JB |
1537 | |
1538 | # Save cache, so that ltconfig can load it | |
1539 | cat > confcache <<\EOF | |
1540 | # This file is a shell script that caches the results of configure | |
1541 | # tests run on this system so they can be shared between configure | |
1542 | # scripts and configure runs. It is not useful on other systems. | |
1543 | # If it contains results you don't want to keep, you may remove or edit it. | |
1544 | # | |
1545 | # By default, configure uses ./config.cache as the cache file, | |
1546 | # creating it if it does not exist already. You can give configure | |
1547 | # the --cache-file=FILE option to use a different cache file; that is | |
1548 | # what configure does when it calls configure scripts in | |
1549 | # subdirectories, so they share the cache. | |
1550 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1551 | # config.status only pays attention to the cache file if you give it the | |
1552 | # --recheck option to rerun configure. | |
1553 | # | |
1554 | EOF | |
1555 | # The following way of writing the cache mishandles newlines in values, | |
1556 | # but we know of no workaround that is simple, portable, and efficient. | |
1557 | # So, don't put newlines in cache variables' values. | |
1558 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1559 | # and sets the high bit in the cache file unless we assign to the vars. | |
1560 | (set) 2>&1 | | |
1561 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1562 | *ac_space=\ *) | |
1563 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1564 | # turns \\\\ into \\, and sed turns \\ into \). | |
1565 | sed -n \ | |
1566 | -e "s/'/'\\\\''/g" \ | |
1567 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1568 | ;; | |
1569 | *) | |
1570 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1571 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1572 | ;; | |
1573 | esac >> confcache | |
1574 | if cmp -s $cache_file confcache; then | |
1575 | : | |
1576 | else | |
1577 | if test -w $cache_file; then | |
1578 | echo "updating cache $cache_file" | |
1579 | cat confcache > $cache_file | |
1580 | else | |
1581 | echo "not updating unwritable cache $cache_file" | |
1582 | fi | |
1583 | fi | |
1584 | rm -f confcache | |
1585 | ||
1586 | ||
5aadf8c1 MG |
1587 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
1588 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
0e8a8468 MV |
1589 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1590 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
1591 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
fcf627ee | 1592 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
5aadf8c1 MG |
1593 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
1594 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
1595 | ||
1630ea6c JB |
1596 | # Reload cache, that may have been modified by ltconfig |
1597 | if test -r "$cache_file"; then | |
1598 | echo "loading cache $cache_file" | |
1599 | . $cache_file | |
1600 | else | |
1601 | echo "creating cache $cache_file" | |
1602 | > $cache_file | |
1603 | fi | |
1604 | ||
1605 | ||
1606 | # This can be used to rebuild libtool when needed | |
1607 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
1608 | ||
1609 | # Always use our own libtool. | |
1610 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1611 | ||
fcf627ee JB |
1612 | # Redirect the config.log output again, so that the ltconfig log is not |
1613 | # clobbered by the next message. | |
1614 | exec 5>>./config.log | |
1615 | ||
3a629497 JB |
1616 | |
1617 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
4725c298 | 1618 | echo "configure:1619: checking for AIX" >&5 |
3a629497 | 1619 | cat > conftest.$ac_ext <<EOF |
4725c298 | 1620 | #line 1621 "configure" |
3a629497 JB |
1621 | #include "confdefs.h" |
1622 | #ifdef _AIX | |
1623 | yes | |
1624 | #endif | |
1625 | ||
1626 | EOF | |
1627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1628 | egrep "yes" >/dev/null 2>&1; then | |
1629 | rm -rf conftest* | |
1630 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
1631 | #define _ALL_SOURCE 1 | |
1632 | EOF | |
1633 | ||
1634 | else | |
1635 | rm -rf conftest* | |
1636 | echo "$ac_t""no" 1>&6 | |
1637 | fi | |
1638 | rm -f conftest* | |
1639 | ||
1640 | ||
1641 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
4725c298 | 1642 | echo "configure:1643: checking for POSIXized ISC" >&5 |
3a629497 JB |
1643 | if test -d /etc/conf/kconfig.d && |
1644 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
1645 | then | |
1646 | echo "$ac_t""yes" 1>&6 | |
1647 | ISC=yes # If later tests want to check for ISC. | |
1648 | cat >> confdefs.h <<\EOF | |
1649 | #define _POSIX_SOURCE 1 | |
1650 | EOF | |
1651 | ||
1652 | if test "$GCC" = yes; then | |
1653 | CC="$CC -posix" | |
1654 | else | |
1655 | CC="$CC -Xp" | |
1656 | fi | |
1657 | else | |
1658 | echo "$ac_t""no" 1>&6 | |
1659 | ISC= | |
1660 | fi | |
1661 | ||
1662 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | |
1663 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | |
4725c298 | 1664 | echo "configure:1665: checking for minix/config.h" >&5 |
3a629497 JB |
1665 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1667 | else | |
1668 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1669 | #line 1670 "configure" |
3a629497 JB |
1670 | #include "confdefs.h" |
1671 | #include <minix/config.h> | |
1672 | EOF | |
1673 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 1674 | { (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 1675 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
1676 | if test -z "$ac_err"; then |
1677 | rm -rf conftest* | |
1678 | eval "ac_cv_header_$ac_safe=yes" | |
1679 | else | |
1680 | echo "$ac_err" >&5 | |
1681 | echo "configure: failed program was:" >&5 | |
1682 | cat conftest.$ac_ext >&5 | |
1683 | rm -rf conftest* | |
1684 | eval "ac_cv_header_$ac_safe=no" | |
1685 | fi | |
1686 | rm -f conftest* | |
1687 | fi | |
1688 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1689 | echo "$ac_t""yes" 1>&6 | |
1690 | MINIX=yes | |
1691 | else | |
1692 | echo "$ac_t""no" 1>&6 | |
1693 | MINIX= | |
1694 | fi | |
1695 | ||
1696 | if test "$MINIX" = yes; then | |
1697 | cat >> confdefs.h <<\EOF | |
1698 | #define _POSIX_SOURCE 1 | |
1699 | EOF | |
1700 | ||
1701 | cat >> confdefs.h <<\EOF | |
1702 | #define _POSIX_1_SOURCE 2 | |
1703 | EOF | |
1704 | ||
1705 | cat >> confdefs.h <<\EOF | |
1706 | #define _MINIX 1 | |
1707 | EOF | |
1708 | ||
1709 | fi | |
1710 | ||
1711 | ||
e40ffcb6 JB |
1712 | |
1713 | ||
1714 | ||
1715 | echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | |
4725c298 | 1716 | echo "configure:1717: checking for ${CC-cc} option to accept ANSI C" >&5 |
e40ffcb6 JB |
1717 | if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then |
1718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1719 | else | |
1720 | am_cv_prog_cc_stdc=no | |
1721 | ac_save_CC="$CC" | |
1722 | # Don't try gcc -ansi; that turns off useful extensions and | |
1723 | # breaks some systems' header files. | |
1724 | # AIX -qlanglvl=ansi | |
1725 | # Ultrix and OSF/1 -std1 | |
1726 | # HP-UX -Aa -D_HPUX_SOURCE | |
1727 | # SVR4 -Xc -D__EXTENSIONS__ | |
1728 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1729 | do | |
1730 | CC="$ac_save_CC $ac_arg" | |
1731 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1732 | #line 1733 "configure" |
e40ffcb6 JB |
1733 | #include "confdefs.h" |
1734 | #include <stdarg.h> | |
1735 | #include <stdio.h> | |
1736 | #include <sys/types.h> | |
1737 | #include <sys/stat.h> | |
1738 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
1739 | struct buf { int x; }; | |
1740 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
1741 | static char *e (p, i) | |
1742 | char **p; | |
1743 | int i; | |
1744 | { | |
1745 | return p[i]; | |
1746 | } | |
1747 | static char *f (char * (*g) (char **, int), char **p, ...) | |
1748 | { | |
1749 | char *s; | |
1750 | va_list v; | |
1751 | va_start (v,p); | |
1752 | s = g (p, va_arg (v,int)); | |
1753 | va_end (v); | |
1754 | return s; | |
1755 | } | |
1756 | int test (int i, double x); | |
1757 | struct s1 {int (*f) (int a);}; | |
1758 | struct s2 {int (*f) (double a);}; | |
1759 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
1760 | int argc; | |
1761 | char **argv; | |
1762 | ||
1763 | int main() { | |
1764 | ||
1765 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
1766 | ||
1767 | ; return 0; } | |
1768 | EOF | |
4725c298 | 1769 | if { (eval echo configure:1770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e40ffcb6 JB |
1770 | rm -rf conftest* |
1771 | am_cv_prog_cc_stdc="$ac_arg"; break | |
1772 | else | |
1773 | echo "configure: failed program was:" >&5 | |
1774 | cat conftest.$ac_ext >&5 | |
1775 | fi | |
1776 | rm -f conftest* | |
1777 | done | |
1778 | CC="$ac_save_CC" | |
1779 | ||
1780 | fi | |
1781 | ||
1782 | if test -z "$am_cv_prog_cc_stdc"; then | |
1783 | echo "$ac_t""none needed" 1>&6 | |
1784 | else | |
1785 | echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 | |
1786 | fi | |
1787 | case "x$am_cv_prog_cc_stdc" in | |
1788 | x|xno) ;; | |
1789 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
1790 | esac | |
1791 | ||
1792 | ||
3a629497 | 1793 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
4725c298 | 1794 | echo "configure:1795: checking for working const" >&5 |
3a629497 JB |
1795 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1797 | else | |
1798 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1799 | #line 1800 "configure" |
3a629497 JB |
1800 | #include "confdefs.h" |
1801 | ||
1802 | int main() { | |
1803 | ||
1804 | /* Ultrix mips cc rejects this. */ | |
1805 | typedef int charset[2]; const charset x; | |
1806 | /* SunOS 4.1.1 cc rejects this. */ | |
1807 | char const *const *ccp; | |
1808 | char **p; | |
1809 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
1810 | struct point {int x, y;}; | |
1811 | static struct point const zero = {0,0}; | |
1812 | /* AIX XL C 1.02.0.0 rejects this. | |
1813 | It does not let you subtract one const X* pointer from another in an arm | |
1814 | of an if-expression whose if-part is not a constant expression */ | |
1815 | const char *g = "string"; | |
1816 | ccp = &g + (g ? g-g : 0); | |
1817 | /* HPUX 7.0 cc rejects these. */ | |
1818 | ++ccp; | |
1819 | p = (char**) ccp; | |
1820 | ccp = (char const *const *) p; | |
1821 | { /* SCO 3.2v4 cc rejects this. */ | |
1822 | char *t; | |
1823 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
1824 | ||
1825 | *t++ = 0; | |
1826 | } | |
1827 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
1828 | int x[] = {25, 17}; | |
1829 | const int *foo = &x[0]; | |
1830 | ++foo; | |
1831 | } | |
1832 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
1833 | typedef const int *iptr; | |
1834 | iptr p = 0; | |
1835 | ++p; | |
1836 | } | |
1837 | { /* AIX XL C 1.02.0.0 rejects this saying | |
1838 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
1839 | struct s { int j; const int *ap[3]; }; | |
1840 | struct s *b; b->j = 5; | |
1841 | } | |
1842 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
1843 | const int foo = 10; | |
1844 | } | |
1845 | ||
1846 | ; return 0; } | |
1847 | EOF | |
4725c298 | 1848 | if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
1849 | rm -rf conftest* |
1850 | ac_cv_c_const=yes | |
1851 | else | |
1852 | echo "configure: failed program was:" >&5 | |
1853 | cat conftest.$ac_ext >&5 | |
1854 | rm -rf conftest* | |
1855 | ac_cv_c_const=no | |
1856 | fi | |
1857 | rm -f conftest* | |
1858 | fi | |
1859 | ||
1860 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
1861 | if test $ac_cv_c_const = no; then | |
1862 | cat >> confdefs.h <<\EOF | |
1863 | #define const | |
1864 | EOF | |
1865 | ||
1866 | fi | |
1867 | ||
5e9345c3 | 1868 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
4725c298 | 1869 | echo "configure:1870: checking for inline" >&5 |
5e9345c3 JB |
1870 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
1871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1872 | else | |
1873 | ac_cv_c_inline=no | |
1874 | for ac_kw in inline __inline__ __inline; do | |
1875 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1876 | #line 1877 "configure" |
5e9345c3 JB |
1877 | #include "confdefs.h" |
1878 | ||
1879 | int main() { | |
1880 | } $ac_kw foo() { | |
1881 | ; return 0; } | |
1882 | EOF | |
4725c298 | 1883 | if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5e9345c3 JB |
1884 | rm -rf conftest* |
1885 | ac_cv_c_inline=$ac_kw; break | |
1886 | else | |
1887 | echo "configure: failed program was:" >&5 | |
1888 | cat conftest.$ac_ext >&5 | |
1889 | fi | |
1890 | rm -f conftest* | |
1891 | done | |
1892 | ||
1893 | fi | |
1894 | ||
1895 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
1896 | case "$ac_cv_c_inline" in | |
1897 | inline | yes) ;; | |
1898 | no) cat >> confdefs.h <<\EOF | |
1899 | #define inline | |
1900 | EOF | |
1901 | ;; | |
1902 | *) cat >> confdefs.h <<EOF | |
1903 | #define inline $ac_cv_c_inline | |
1904 | EOF | |
1905 | ;; | |
1906 | esac | |
1907 | ||
3afbf314 | 1908 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
4725c298 | 1909 | echo "configure:1910: checking size of int" >&5 |
3afbf314 MD |
1910 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1912 | else | |
1913 | if test "$cross_compiling" = yes; then | |
1914 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
1915 | else | |
1916 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1917 | #line 1918 "configure" |
3afbf314 MD |
1918 | #include "confdefs.h" |
1919 | #include <stdio.h> | |
1920 | main() | |
1921 | { | |
1922 | FILE *f=fopen("conftestval", "w"); | |
1923 | if (!f) exit(1); | |
1924 | fprintf(f, "%d\n", sizeof(int)); | |
1925 | exit(0); | |
1926 | } | |
1927 | EOF | |
4725c298 | 1928 | if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3afbf314 MD |
1929 | then |
1930 | ac_cv_sizeof_int=`cat conftestval` | |
1931 | else | |
1932 | echo "configure: failed program was:" >&5 | |
1933 | cat conftest.$ac_ext >&5 | |
1934 | rm -fr conftest* | |
1935 | ac_cv_sizeof_int=0 | |
1936 | fi | |
1937 | rm -fr conftest* | |
1938 | fi | |
1939 | ||
1940 | fi | |
1941 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
1942 | cat >> confdefs.h <<EOF | |
1943 | #define SIZEOF_INT $ac_cv_sizeof_int | |
1944 | EOF | |
1945 | ||
1946 | ||
1947 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
4725c298 | 1948 | echo "configure:1949: checking size of long" >&5 |
3afbf314 MD |
1949 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1951 | else | |
1952 | if test "$cross_compiling" = yes; then | |
1953 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
1954 | else | |
1955 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1956 | #line 1957 "configure" |
3afbf314 MD |
1957 | #include "confdefs.h" |
1958 | #include <stdio.h> | |
1959 | main() | |
1960 | { | |
1961 | FILE *f=fopen("conftestval", "w"); | |
1962 | if (!f) exit(1); | |
1963 | fprintf(f, "%d\n", sizeof(long)); | |
1964 | exit(0); | |
1965 | } | |
1966 | EOF | |
4725c298 | 1967 | if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3afbf314 MD |
1968 | then |
1969 | ac_cv_sizeof_long=`cat conftestval` | |
1970 | else | |
1971 | echo "configure: failed program was:" >&5 | |
1972 | cat conftest.$ac_ext >&5 | |
1973 | rm -fr conftest* | |
1974 | ac_cv_sizeof_long=0 | |
1975 | fi | |
1976 | rm -fr conftest* | |
1977 | fi | |
1978 | ||
1979 | fi | |
1980 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
1981 | cat >> confdefs.h <<EOF | |
1982 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
1983 | EOF | |
1984 | ||
1985 | ||
1986 | echo $ac_n "checking for long longs""... $ac_c" 1>&6 | |
4725c298 | 1987 | echo "configure:1988: checking for long longs" >&5 |
3afbf314 MD |
1988 | if eval "test \"`echo '$''{'scm_cv_long_longs'+set}'`\" = set"; then |
1989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1990 | else | |
1991 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 1992 | #line 1993 "configure" |
3afbf314 MD |
1993 | #include "confdefs.h" |
1994 | ||
1995 | int main() { | |
1996 | long long a | |
1997 | ; return 0; } | |
1998 | EOF | |
4725c298 | 1999 | if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3afbf314 MD |
2000 | rm -rf conftest* |
2001 | scm_cv_long_longs=yes | |
2002 | else | |
2003 | echo "configure: failed program was:" >&5 | |
2004 | cat conftest.$ac_ext >&5 | |
2005 | rm -rf conftest* | |
2006 | scm_cv_long_longs=no | |
2007 | fi | |
2008 | rm -f conftest* | |
2009 | fi | |
2010 | ||
2011 | echo "$ac_t""$scm_cv_long_longs" 1>&6 | |
2012 | if test "$scm_cv_long_longs" = yes; then | |
2013 | cat >> confdefs.h <<\EOF | |
2014 | #define HAVE_LONG_LONGS 1 | |
2015 | EOF | |
2016 | ||
2017 | fi | |
3a629497 JB |
2018 | |
2019 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
4725c298 | 2020 | echo "configure:2021: checking for ANSI C header files" >&5 |
3a629497 JB |
2021 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2023 | else | |
2024 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2025 | #line 2026 "configure" |
3a629497 JB |
2026 | #include "confdefs.h" |
2027 | #include <stdlib.h> | |
2028 | #include <stdarg.h> | |
2029 | #include <string.h> | |
2030 | #include <float.h> | |
2031 | EOF | |
2032 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 2033 | { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 2034 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
2035 | if test -z "$ac_err"; then |
2036 | rm -rf conftest* | |
2037 | ac_cv_header_stdc=yes | |
2038 | else | |
2039 | echo "$ac_err" >&5 | |
2040 | echo "configure: failed program was:" >&5 | |
2041 | cat conftest.$ac_ext >&5 | |
2042 | rm -rf conftest* | |
2043 | ac_cv_header_stdc=no | |
2044 | fi | |
2045 | rm -f conftest* | |
2046 | ||
2047 | if test $ac_cv_header_stdc = yes; then | |
2048 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2049 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2050 | #line 2051 "configure" |
3a629497 JB |
2051 | #include "confdefs.h" |
2052 | #include <string.h> | |
2053 | EOF | |
2054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2055 | egrep "memchr" >/dev/null 2>&1; then | |
2056 | : | |
2057 | else | |
2058 | rm -rf conftest* | |
2059 | ac_cv_header_stdc=no | |
2060 | fi | |
2061 | rm -f conftest* | |
2062 | ||
2063 | fi | |
2064 | ||
2065 | if test $ac_cv_header_stdc = yes; then | |
2066 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2067 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2068 | #line 2069 "configure" |
3a629497 JB |
2069 | #include "confdefs.h" |
2070 | #include <stdlib.h> | |
2071 | EOF | |
2072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2073 | egrep "free" >/dev/null 2>&1; then | |
2074 | : | |
2075 | else | |
2076 | rm -rf conftest* | |
2077 | ac_cv_header_stdc=no | |
2078 | fi | |
2079 | rm -f conftest* | |
2080 | ||
2081 | fi | |
2082 | ||
2083 | if test $ac_cv_header_stdc = yes; then | |
2084 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2085 | if test "$cross_compiling" = yes; then | |
2086 | : | |
2087 | else | |
2088 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2089 | #line 2090 "configure" |
3a629497 JB |
2090 | #include "confdefs.h" |
2091 | #include <ctype.h> | |
2092 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2093 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2094 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2095 | int main () { int i; for (i = 0; i < 256; i++) | |
2096 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2097 | exit (0); } | |
2098 | ||
2099 | EOF | |
4725c298 | 2100 | if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3a629497 JB |
2101 | then |
2102 | : | |
2103 | else | |
2104 | echo "configure: failed program was:" >&5 | |
2105 | cat conftest.$ac_ext >&5 | |
2106 | rm -fr conftest* | |
2107 | ac_cv_header_stdc=no | |
2108 | fi | |
2109 | rm -fr conftest* | |
2110 | fi | |
2111 | ||
2112 | fi | |
2113 | fi | |
2114 | ||
2115 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2116 | if test $ac_cv_header_stdc = yes; then | |
2117 | cat >> confdefs.h <<\EOF | |
2118 | #define STDC_HEADERS 1 | |
2119 | EOF | |
2120 | ||
2121 | fi | |
2122 | ||
2123 | ac_header_dirent=no | |
2124 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | |
2125 | do | |
2126 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2127 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | |
4725c298 | 2128 | echo "configure:2129: checking for $ac_hdr that defines DIR" >&5 |
3a629497 JB |
2129 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
2130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2131 | else | |
2132 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2133 | #line 2134 "configure" |
3a629497 JB |
2134 | #include "confdefs.h" |
2135 | #include <sys/types.h> | |
2136 | #include <$ac_hdr> | |
2137 | int main() { | |
2138 | DIR *dirp = 0; | |
2139 | ; return 0; } | |
2140 | EOF | |
4725c298 | 2141 | if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
2142 | rm -rf conftest* |
2143 | eval "ac_cv_header_dirent_$ac_safe=yes" | |
2144 | else | |
2145 | echo "configure: failed program was:" >&5 | |
2146 | cat conftest.$ac_ext >&5 | |
2147 | rm -rf conftest* | |
2148 | eval "ac_cv_header_dirent_$ac_safe=no" | |
2149 | fi | |
2150 | rm -f conftest* | |
2151 | fi | |
2152 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | |
2153 | echo "$ac_t""yes" 1>&6 | |
2154 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2155 | cat >> confdefs.h <<EOF | |
2156 | #define $ac_tr_hdr 1 | |
2157 | EOF | |
2158 | ac_header_dirent=$ac_hdr; break | |
2159 | else | |
2160 | echo "$ac_t""no" 1>&6 | |
2161 | fi | |
2162 | done | |
2163 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2164 | if test $ac_header_dirent = dirent.h; then | |
2165 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | |
4725c298 | 2166 | echo "configure:2167: checking for opendir in -ldir" >&5 |
3a629497 JB |
2167 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
2168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2169 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2170 | else | |
2171 | ac_save_LIBS="$LIBS" | |
2172 | LIBS="-ldir $LIBS" | |
2173 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2174 | #line 2175 "configure" |
3a629497 JB |
2175 | #include "confdefs.h" |
2176 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2177 | /* We use char because int might match the return type of a gcc2 | |
2178 | builtin and then its argument prototype would still apply. */ | |
2179 | char opendir(); | |
2180 | ||
2181 | int main() { | |
2182 | opendir() | |
2183 | ; return 0; } | |
2184 | EOF | |
4725c298 | 2185 | if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 JB |
2186 | rm -rf conftest* |
2187 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2188 | else | |
2189 | echo "configure: failed program was:" >&5 | |
2190 | cat conftest.$ac_ext >&5 | |
2191 | rm -rf conftest* | |
2192 | eval "ac_cv_lib_$ac_lib_var=no" | |
2193 | fi | |
2194 | rm -f conftest* | |
2195 | LIBS="$ac_save_LIBS" | |
2196 | ||
2197 | fi | |
2198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2199 | echo "$ac_t""yes" 1>&6 | |
2200 | LIBS="$LIBS -ldir" | |
2201 | else | |
2202 | echo "$ac_t""no" 1>&6 | |
2203 | fi | |
2204 | ||
2205 | else | |
2206 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | |
4725c298 | 2207 | echo "configure:2208: checking for opendir in -lx" >&5 |
3a629497 JB |
2208 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
2209 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2211 | else | |
2212 | ac_save_LIBS="$LIBS" | |
2213 | LIBS="-lx $LIBS" | |
2214 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2215 | #line 2216 "configure" |
3a629497 JB |
2216 | #include "confdefs.h" |
2217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2218 | /* We use char because int might match the return type of a gcc2 | |
2219 | builtin and then its argument prototype would still apply. */ | |
2220 | char opendir(); | |
2221 | ||
2222 | int main() { | |
2223 | opendir() | |
2224 | ; return 0; } | |
2225 | EOF | |
4725c298 | 2226 | if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 JB |
2227 | rm -rf conftest* |
2228 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2229 | else | |
2230 | echo "configure: failed program was:" >&5 | |
2231 | cat conftest.$ac_ext >&5 | |
2232 | rm -rf conftest* | |
2233 | eval "ac_cv_lib_$ac_lib_var=no" | |
2234 | fi | |
2235 | rm -f conftest* | |
2236 | LIBS="$ac_save_LIBS" | |
2237 | ||
2238 | fi | |
2239 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2240 | echo "$ac_t""yes" 1>&6 | |
2241 | LIBS="$LIBS -lx" | |
2242 | else | |
2243 | echo "$ac_t""no" 1>&6 | |
2244 | fi | |
2245 | ||
2246 | fi | |
2247 | ||
2248 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
4725c298 | 2249 | echo "configure:2250: checking whether time.h and sys/time.h may both be included" >&5 |
3a629497 JB |
2250 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2252 | else | |
2253 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2254 | #line 2255 "configure" |
3a629497 JB |
2255 | #include "confdefs.h" |
2256 | #include <sys/types.h> | |
2257 | #include <sys/time.h> | |
2258 | #include <time.h> | |
2259 | int main() { | |
2260 | struct tm *tp; | |
2261 | ; return 0; } | |
2262 | EOF | |
4725c298 | 2263 | if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
2264 | rm -rf conftest* |
2265 | ac_cv_header_time=yes | |
2266 | else | |
2267 | echo "configure: failed program was:" >&5 | |
2268 | cat conftest.$ac_ext >&5 | |
2269 | rm -rf conftest* | |
2270 | ac_cv_header_time=no | |
2271 | fi | |
2272 | rm -f conftest* | |
2273 | fi | |
2274 | ||
2275 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2276 | if test $ac_cv_header_time = yes; then | |
2277 | cat >> confdefs.h <<\EOF | |
2278 | #define TIME_WITH_SYS_TIME 1 | |
2279 | EOF | |
2280 | ||
2281 | fi | |
2282 | ||
2283 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | |
4725c298 | 2284 | echo "configure:2285: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3a629497 JB |
2285 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2287 | else | |
2288 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2289 | #line 2290 "configure" |
3a629497 JB |
2290 | #include "confdefs.h" |
2291 | #include <sys/types.h> | |
2292 | #include <sys/wait.h> | |
2293 | #ifndef WEXITSTATUS | |
2294 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2295 | #endif | |
2296 | #ifndef WIFEXITED | |
2297 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2298 | #endif | |
2299 | int main() { | |
2300 | int s; | |
2301 | wait (&s); | |
2302 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2303 | ; return 0; } | |
2304 | EOF | |
4725c298 | 2305 | if { (eval echo configure:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
2306 | rm -rf conftest* |
2307 | ac_cv_header_sys_wait_h=yes | |
2308 | else | |
2309 | echo "configure: failed program was:" >&5 | |
2310 | cat conftest.$ac_ext >&5 | |
2311 | rm -rf conftest* | |
2312 | ac_cv_header_sys_wait_h=no | |
2313 | fi | |
2314 | rm -f conftest* | |
2315 | fi | |
2316 | ||
2317 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2318 | if test $ac_cv_header_sys_wait_h = yes; then | |
2319 | cat >> confdefs.h <<\EOF | |
2320 | #define HAVE_SYS_WAIT_H 1 | |
2321 | EOF | |
2322 | ||
2323 | fi | |
2324 | ||
2adc1dd3 | 2325 | for ac_hdr in io.h libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.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 |
3a629497 JB |
2326 | do |
2327 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2328 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4725c298 | 2329 | echo "configure:2330: checking for $ac_hdr" >&5 |
3a629497 JB |
2330 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2332 | else | |
2333 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2334 | #line 2335 "configure" |
3a629497 JB |
2335 | #include "confdefs.h" |
2336 | #include <$ac_hdr> | |
2337 | EOF | |
2338 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 2339 | { (eval echo configure:2340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 2340 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
2341 | if test -z "$ac_err"; then |
2342 | rm -rf conftest* | |
2343 | eval "ac_cv_header_$ac_safe=yes" | |
2344 | else | |
2345 | echo "$ac_err" >&5 | |
2346 | echo "configure: failed program was:" >&5 | |
2347 | cat conftest.$ac_ext >&5 | |
2348 | rm -rf conftest* | |
2349 | eval "ac_cv_header_$ac_safe=no" | |
2350 | fi | |
2351 | rm -f conftest* | |
2352 | fi | |
2353 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2354 | echo "$ac_t""yes" 1>&6 | |
2355 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2356 | cat >> confdefs.h <<EOF | |
2357 | #define $ac_tr_hdr 1 | |
2358 | EOF | |
2359 | ||
2360 | else | |
2361 | echo "$ac_t""no" 1>&6 | |
2362 | fi | |
2363 | done | |
2364 | ||
2365 | ||
2366 | for ac_hdr in libc.h unistd.h | |
2367 | do | |
2368 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2369 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4725c298 | 2370 | echo "configure:2371: checking for $ac_hdr" >&5 |
3a629497 JB |
2371 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2373 | else | |
2374 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2375 | #line 2376 "configure" |
3a629497 JB |
2376 | #include "confdefs.h" |
2377 | #include <$ac_hdr> | |
2378 | EOF | |
2379 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 2380 | { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 2381 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3a629497 JB |
2382 | if test -z "$ac_err"; then |
2383 | rm -rf conftest* | |
2384 | eval "ac_cv_header_$ac_safe=yes" | |
2385 | else | |
2386 | echo "$ac_err" >&5 | |
2387 | echo "configure: failed program was:" >&5 | |
2388 | cat conftest.$ac_ext >&5 | |
2389 | rm -rf conftest* | |
2390 | eval "ac_cv_header_$ac_safe=no" | |
2391 | fi | |
2392 | rm -f conftest* | |
2393 | fi | |
2394 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2395 | echo "$ac_t""yes" 1>&6 | |
2396 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2397 | cat >> confdefs.h <<EOF | |
2398 | #define $ac_tr_hdr 1 | |
2399 | EOF | |
2400 | ||
2401 | else | |
2402 | echo "$ac_t""no" 1>&6 | |
2403 | fi | |
2404 | done | |
2405 | ||
2406 | echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6 | |
4725c298 | 2407 | echo "configure:2408: checking "whether libc.h and unistd.h can be included together"" >&5 |
3a629497 JB |
2408 | if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then |
2409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2410 | else | |
2411 | ||
2412 | if test "$ac_cv_header_libc_h" = "no"; then | |
2413 | guile_cv_header_libc_with_unistd="no" | |
2414 | elif test "$ac_cv_header_unistd.h" = "no"; then | |
2415 | guile_cv_header_libc_with_unistd="yes" | |
2416 | else | |
2417 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2418 | #line 2419 "configure" |
3a629497 JB |
2419 | #include "confdefs.h" |
2420 | ||
2421 | # include <libc.h> | |
2422 | # include <unistd.h> | |
2423 | ||
2424 | int main() { | |
2425 | ||
2426 | ; return 0; } | |
2427 | EOF | |
4725c298 | 2428 | if { (eval echo configure:2429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
2429 | rm -rf conftest* |
2430 | guile_cv_header_libc_with_unistd=yes | |
2431 | else | |
2432 | echo "configure: failed program was:" >&5 | |
2433 | cat conftest.$ac_ext >&5 | |
2434 | rm -rf conftest* | |
2435 | guile_cv_header_libc_with_unistd=no | |
2436 | ||
2437 | fi | |
2438 | rm -f conftest* | |
2439 | fi | |
2440 | ||
2441 | ||
2442 | fi | |
2443 | ||
2444 | echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6 | |
2445 | if test "$guile_cv_header_libc_with_unistd" = yes; then | |
2446 | cat >> confdefs.h <<\EOF | |
2447 | #define LIBC_H_WITH_UNISTD_H 1 | |
2448 | EOF | |
2449 | ||
2450 | fi | |
2451 | ||
2452 | ||
2453 | ||
2454 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
4725c298 | 2455 | echo "configure:2456: checking for uid_t in sys/types.h" >&5 |
3a629497 JB |
2456 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
2457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2458 | else | |
2459 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2460 | #line 2461 "configure" |
3a629497 JB |
2461 | #include "confdefs.h" |
2462 | #include <sys/types.h> | |
2463 | EOF | |
2464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2465 | egrep "uid_t" >/dev/null 2>&1; then | |
2466 | rm -rf conftest* | |
2467 | ac_cv_type_uid_t=yes | |
2468 | else | |
2469 | rm -rf conftest* | |
2470 | ac_cv_type_uid_t=no | |
2471 | fi | |
2472 | rm -f conftest* | |
2473 | ||
2474 | fi | |
2475 | ||
2476 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
2477 | if test $ac_cv_type_uid_t = no; then | |
2478 | cat >> confdefs.h <<\EOF | |
2479 | #define uid_t int | |
2480 | EOF | |
2481 | ||
2482 | cat >> confdefs.h <<\EOF | |
2483 | #define gid_t int | |
2484 | EOF | |
2485 | ||
2486 | fi | |
2487 | ||
2488 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 | |
4725c298 | 2489 | echo "configure:2490: checking type of array argument to getgroups" >&5 |
3a629497 JB |
2490 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
2491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2492 | else | |
2493 | if test "$cross_compiling" = yes; then | |
2494 | ac_cv_type_getgroups=cross | |
2495 | else | |
2496 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2497 | #line 2498 "configure" |
3a629497 JB |
2498 | #include "confdefs.h" |
2499 | ||
2500 | /* Thanks to Mike Rendell for this test. */ | |
2501 | #include <sys/types.h> | |
2502 | #define NGID 256 | |
2503 | #undef MAX | |
2504 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
2505 | main() | |
2506 | { | |
2507 | gid_t gidset[NGID]; | |
2508 | int i, n; | |
2509 | union { gid_t gval; long lval; } val; | |
2510 | ||
2511 | val.lval = -1; | |
2512 | for (i = 0; i < NGID; i++) | |
2513 | gidset[i] = val.gval; | |
2514 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
2515 | gidset); | |
2516 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
2517 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
2518 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
2519 | } | |
2520 | ||
2521 | EOF | |
4725c298 | 2522 | if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3a629497 JB |
2523 | then |
2524 | ac_cv_type_getgroups=gid_t | |
2525 | else | |
2526 | echo "configure: failed program was:" >&5 | |
2527 | cat conftest.$ac_ext >&5 | |
2528 | rm -fr conftest* | |
2529 | ac_cv_type_getgroups=int | |
2530 | fi | |
2531 | rm -fr conftest* | |
2532 | fi | |
2533 | ||
2534 | if test $ac_cv_type_getgroups = cross; then | |
2535 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2536 | #line 2537 "configure" |
3a629497 JB |
2537 | #include "confdefs.h" |
2538 | #include <unistd.h> | |
2539 | EOF | |
2540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2541 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then | |
2542 | rm -rf conftest* | |
2543 | ac_cv_type_getgroups=gid_t | |
2544 | else | |
2545 | rm -rf conftest* | |
2546 | ac_cv_type_getgroups=int | |
2547 | fi | |
2548 | rm -f conftest* | |
2549 | ||
2550 | fi | |
2551 | fi | |
2552 | ||
2553 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 | |
2554 | cat >> confdefs.h <<EOF | |
2555 | #define GETGROUPS_T $ac_cv_type_getgroups | |
2556 | EOF | |
2557 | ||
2558 | ||
2559 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
4725c298 | 2560 | echo "configure:2561: checking return type of signal handlers" >&5 |
3a629497 JB |
2561 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2563 | else | |
2564 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2565 | #line 2566 "configure" |
3a629497 JB |
2566 | #include "confdefs.h" |
2567 | #include <sys/types.h> | |
2568 | #include <signal.h> | |
2569 | #ifdef signal | |
2570 | #undef signal | |
2571 | #endif | |
2572 | #ifdef __cplusplus | |
2573 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2574 | #else | |
2575 | void (*signal ()) (); | |
2576 | #endif | |
2577 | ||
2578 | int main() { | |
2579 | int i; | |
2580 | ; return 0; } | |
2581 | EOF | |
4725c298 | 2582 | if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
2583 | rm -rf conftest* |
2584 | ac_cv_type_signal=void | |
2585 | else | |
2586 | echo "configure: failed program was:" >&5 | |
2587 | cat conftest.$ac_ext >&5 | |
2588 | rm -rf conftest* | |
2589 | ac_cv_type_signal=int | |
2590 | fi | |
2591 | rm -f conftest* | |
2592 | fi | |
2593 | ||
2594 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2595 | cat >> confdefs.h <<EOF | |
2596 | #define RETSIGTYPE $ac_cv_type_signal | |
2597 | EOF | |
2598 | ||
2599 | ||
2600 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
4725c298 | 2601 | echo "configure:2602: checking for mode_t" >&5 |
3a629497 JB |
2602 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
2603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2604 | else | |
2605 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2606 | #line 2607 "configure" |
3a629497 JB |
2607 | #include "confdefs.h" |
2608 | #include <sys/types.h> | |
2609 | #if STDC_HEADERS | |
2610 | #include <stdlib.h> | |
2611 | #include <stddef.h> | |
2612 | #endif | |
2613 | EOF | |
2614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9bd368c0 | 2615 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
3a629497 JB |
2616 | rm -rf conftest* |
2617 | ac_cv_type_mode_t=yes | |
2618 | else | |
2619 | rm -rf conftest* | |
2620 | ac_cv_type_mode_t=no | |
2621 | fi | |
2622 | rm -f conftest* | |
2623 | ||
2624 | fi | |
2625 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
2626 | if test $ac_cv_type_mode_t = no; then | |
2627 | cat >> confdefs.h <<\EOF | |
2628 | #define mode_t int | |
2629 | EOF | |
2630 | ||
2631 | fi | |
2632 | ||
2633 | ||
90fcac06 | 2634 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
4725c298 | 2635 | echo "configure:2636: checking for main in -lm" >&5 |
90fcac06 | 2636 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
ede1d9bf JB |
2637 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2639 | else | |
2640 | ac_save_LIBS="$LIBS" | |
90fcac06 | 2641 | LIBS="-lm $LIBS" |
ede1d9bf | 2642 | cat > conftest.$ac_ext <<EOF |
4725c298 | 2643 | #line 2644 "configure" |
ede1d9bf | 2644 | #include "confdefs.h" |
ede1d9bf JB |
2645 | |
2646 | int main() { | |
baf22c7e | 2647 | main() |
ede1d9bf JB |
2648 | ; return 0; } |
2649 | EOF | |
4725c298 | 2650 | if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ede1d9bf JB |
2651 | rm -rf conftest* |
2652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2653 | else | |
2654 | echo "configure: failed program was:" >&5 | |
2655 | cat conftest.$ac_ext >&5 | |
2656 | rm -rf conftest* | |
2657 | eval "ac_cv_lib_$ac_lib_var=no" | |
2658 | fi | |
2659 | rm -f conftest* | |
2660 | LIBS="$ac_save_LIBS" | |
2661 | ||
2662 | fi | |
2663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2664 | echo "$ac_t""yes" 1>&6 | |
90fcac06 | 2665 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
ede1d9bf JB |
2666 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
2667 | cat >> confdefs.h <<EOF | |
2668 | #define $ac_tr_lib 1 | |
2669 | EOF | |
2670 | ||
90fcac06 | 2671 | LIBS="-lm $LIBS" |
ede1d9bf JB |
2672 | |
2673 | else | |
2674 | echo "$ac_t""no" 1>&6 | |
2675 | fi | |
baf22c7e | 2676 | |
4c787b52 MD |
2677 | for ac_func in gethostbyname |
2678 | do | |
2679 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 2680 | echo "configure:2681: checking for $ac_func" >&5 |
4c787b52 | 2681 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3a629497 JB |
2682 | echo $ac_n "(cached) $ac_c" 1>&6 |
2683 | else | |
2684 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2685 | #line 2686 "configure" |
3a629497 JB |
2686 | #include "confdefs.h" |
2687 | /* System header to define __stub macros and hopefully few prototypes, | |
4c787b52 | 2688 | which can conflict with char $ac_func(); below. */ |
3a629497 JB |
2689 | #include <assert.h> |
2690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2691 | /* We use char because int might match the return type of a gcc2 | |
2692 | builtin and then its argument prototype would still apply. */ | |
4c787b52 | 2693 | char $ac_func(); |
3a629497 JB |
2694 | |
2695 | int main() { | |
2696 | ||
2697 | /* The GNU C library defines this for functions which it implements | |
2698 | to always fail with ENOSYS. Some functions are actually named | |
2699 | something starting with __ and the normal name is an alias. */ | |
4c787b52 | 2700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3a629497 JB |
2701 | choke me |
2702 | #else | |
4c787b52 | 2703 | $ac_func(); |
3a629497 JB |
2704 | #endif |
2705 | ||
2706 | ; return 0; } | |
2707 | EOF | |
4725c298 | 2708 | if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 2709 | rm -rf conftest* |
4c787b52 | 2710 | eval "ac_cv_func_$ac_func=yes" |
3a629497 JB |
2711 | else |
2712 | echo "configure: failed program was:" >&5 | |
2713 | cat conftest.$ac_ext >&5 | |
2714 | rm -rf conftest* | |
4c787b52 | 2715 | eval "ac_cv_func_$ac_func=no" |
3a629497 JB |
2716 | fi |
2717 | rm -f conftest* | |
2718 | fi | |
2719 | ||
4c787b52 | 2720 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3a629497 | 2721 | echo "$ac_t""yes" 1>&6 |
4c787b52 MD |
2722 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2723 | cat >> confdefs.h <<EOF | |
2724 | #define $ac_tr_func 1 | |
2725 | EOF | |
2726 | ||
3a629497 JB |
2727 | else |
2728 | echo "$ac_t""no" 1>&6 | |
2729 | fi | |
4c787b52 | 2730 | done |
3a629497 | 2731 | |
5852c051 JB |
2732 | if test $ac_cv_func_gethostbyname = no; then |
2733 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
4725c298 | 2734 | echo "configure:2735: checking for gethostbyname in -lnsl" >&5 |
5852c051 JB |
2735 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2736 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
e1a191a8 GH |
2737 | echo $ac_n "(cached) $ac_c" 1>&6 |
2738 | else | |
5852c051 JB |
2739 | ac_save_LIBS="$LIBS" |
2740 | LIBS="-lnsl $LIBS" | |
2741 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2742 | #line 2743 "configure" |
e1a191a8 | 2743 | #include "confdefs.h" |
5852c051 JB |
2744 | /* Override any gcc2 internal prototype to avoid an error. */ |
2745 | /* We use char because int might match the return type of a gcc2 | |
2746 | builtin and then its argument prototype would still apply. */ | |
2747 | char gethostbyname(); | |
2748 | ||
e1a191a8 | 2749 | int main() { |
5852c051 | 2750 | gethostbyname() |
e1a191a8 GH |
2751 | ; return 0; } |
2752 | EOF | |
4725c298 | 2753 | if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e1a191a8 | 2754 | rm -rf conftest* |
5852c051 | 2755 | eval "ac_cv_lib_$ac_lib_var=yes" |
e1a191a8 GH |
2756 | else |
2757 | echo "configure: failed program was:" >&5 | |
2758 | cat conftest.$ac_ext >&5 | |
2759 | rm -rf conftest* | |
5852c051 | 2760 | eval "ac_cv_lib_$ac_lib_var=no" |
e1a191a8 GH |
2761 | fi |
2762 | rm -f conftest* | |
5852c051 | 2763 | LIBS="$ac_save_LIBS" |
e1a191a8 | 2764 | |
5852c051 JB |
2765 | fi |
2766 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2767 | echo "$ac_t""yes" 1>&6 | |
2768 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2769 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2770 | cat >> confdefs.h <<EOF | |
2771 | #define $ac_tr_lib 1 | |
e1a191a8 GH |
2772 | EOF |
2773 | ||
5852c051 JB |
2774 | LIBS="-lnsl $LIBS" |
2775 | ||
2776 | else | |
2777 | echo "$ac_t""no" 1>&6 | |
e1a191a8 GH |
2778 | fi |
2779 | ||
5852c051 | 2780 | fi |
4c787b52 MD |
2781 | for ac_func in connect |
2782 | do | |
2783 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 2784 | echo "configure:2785: checking for $ac_func" >&5 |
4c787b52 | 2785 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3a629497 JB |
2786 | echo $ac_n "(cached) $ac_c" 1>&6 |
2787 | else | |
2788 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2789 | #line 2790 "configure" |
3a629497 JB |
2790 | #include "confdefs.h" |
2791 | /* System header to define __stub macros and hopefully few prototypes, | |
4c787b52 | 2792 | which can conflict with char $ac_func(); below. */ |
3a629497 JB |
2793 | #include <assert.h> |
2794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2795 | /* We use char because int might match the return type of a gcc2 | |
2796 | builtin and then its argument prototype would still apply. */ | |
4c787b52 | 2797 | char $ac_func(); |
3a629497 JB |
2798 | |
2799 | int main() { | |
2800 | ||
2801 | /* The GNU C library defines this for functions which it implements | |
2802 | to always fail with ENOSYS. Some functions are actually named | |
2803 | something starting with __ and the normal name is an alias. */ | |
4c787b52 | 2804 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3a629497 JB |
2805 | choke me |
2806 | #else | |
4c787b52 | 2807 | $ac_func(); |
3a629497 JB |
2808 | #endif |
2809 | ||
2810 | ; return 0; } | |
2811 | EOF | |
4725c298 | 2812 | if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 2813 | rm -rf conftest* |
4c787b52 | 2814 | eval "ac_cv_func_$ac_func=yes" |
3a629497 JB |
2815 | else |
2816 | echo "configure: failed program was:" >&5 | |
2817 | cat conftest.$ac_ext >&5 | |
2818 | rm -rf conftest* | |
4c787b52 | 2819 | eval "ac_cv_func_$ac_func=no" |
3a629497 JB |
2820 | fi |
2821 | rm -f conftest* | |
2822 | fi | |
2823 | ||
4c787b52 | 2824 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
8e1bfcd0 | 2825 | echo "$ac_t""yes" 1>&6 |
4c787b52 MD |
2826 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2827 | cat >> confdefs.h <<EOF | |
2828 | #define $ac_tr_func 1 | |
2829 | EOF | |
2830 | ||
8e1bfcd0 JB |
2831 | else |
2832 | echo "$ac_t""no" 1>&6 | |
2833 | fi | |
4c787b52 | 2834 | done |
8e1bfcd0 | 2835 | |
5852c051 JB |
2836 | if test $ac_cv_func_connect = no; then |
2837 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
4725c298 | 2838 | echo "configure:2839: checking for connect in -lsocket" >&5 |
5852c051 JB |
2839 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2840 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8e1bfcd0 JB |
2841 | echo $ac_n "(cached) $ac_c" 1>&6 |
2842 | else | |
5852c051 JB |
2843 | ac_save_LIBS="$LIBS" |
2844 | LIBS="-lsocket $LIBS" | |
2845 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2846 | #line 2847 "configure" |
8e1bfcd0 | 2847 | #include "confdefs.h" |
8e1bfcd0 JB |
2848 | /* Override any gcc2 internal prototype to avoid an error. */ |
2849 | /* We use char because int might match the return type of a gcc2 | |
2850 | builtin and then its argument prototype would still apply. */ | |
5852c051 | 2851 | char connect(); |
8e1bfcd0 JB |
2852 | |
2853 | int main() { | |
5852c051 | 2854 | connect() |
8e1bfcd0 JB |
2855 | ; return 0; } |
2856 | EOF | |
4725c298 | 2857 | if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8e1bfcd0 | 2858 | rm -rf conftest* |
5852c051 | 2859 | eval "ac_cv_lib_$ac_lib_var=yes" |
8e1bfcd0 JB |
2860 | else |
2861 | echo "configure: failed program was:" >&5 | |
2862 | cat conftest.$ac_ext >&5 | |
2863 | rm -rf conftest* | |
5852c051 | 2864 | eval "ac_cv_lib_$ac_lib_var=no" |
8e1bfcd0 JB |
2865 | fi |
2866 | rm -f conftest* | |
5852c051 | 2867 | LIBS="$ac_save_LIBS" |
8e1bfcd0 | 2868 | |
5852c051 JB |
2869 | fi |
2870 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3a629497 | 2871 | echo "$ac_t""yes" 1>&6 |
5852c051 JB |
2872 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
2873 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3a629497 | 2874 | cat >> confdefs.h <<EOF |
5852c051 | 2875 | #define $ac_tr_lib 1 |
3a629497 | 2876 | EOF |
5852c051 JB |
2877 | |
2878 | LIBS="-lsocket $LIBS" | |
2879 | ||
3a629497 JB |
2880 | else |
2881 | echo "$ac_t""no" 1>&6 | |
3a629497 | 2882 | fi |
3a629497 | 2883 | |
5852c051 | 2884 | fi |
5ee74cec | 2885 | |
90fcac06 JB |
2886 | # Checks for dynamic linking |
2887 | ||
5852c051 | 2888 | if test "$enable_dynamic_linking" = "yes"; then |
3a629497 | 2889 | |
5852c051 | 2890 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
4725c298 | 2891 | echo "configure:2892: checking for dlopen in -ldl" >&5 |
5852c051 JB |
2892 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a629497 JB |
2894 | echo $ac_n "(cached) $ac_c" 1>&6 |
2895 | else | |
5852c051 JB |
2896 | ac_save_LIBS="$LIBS" |
2897 | LIBS="-ldl $LIBS" | |
2898 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2899 | #line 2900 "configure" |
3a629497 | 2900 | #include "confdefs.h" |
5852c051 JB |
2901 | /* Override any gcc2 internal prototype to avoid an error. */ |
2902 | /* We use char because int might match the return type of a gcc2 | |
2903 | builtin and then its argument prototype would still apply. */ | |
2904 | char dlopen(); | |
2905 | ||
3a629497 | 2906 | int main() { |
5852c051 | 2907 | dlopen() |
3a629497 JB |
2908 | ; return 0; } |
2909 | EOF | |
4725c298 | 2910 | if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 2911 | rm -rf conftest* |
5852c051 | 2912 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a629497 JB |
2913 | else |
2914 | echo "configure: failed program was:" >&5 | |
2915 | cat conftest.$ac_ext >&5 | |
2916 | rm -rf conftest* | |
5852c051 | 2917 | eval "ac_cv_lib_$ac_lib_var=no" |
3a629497 JB |
2918 | fi |
2919 | rm -f conftest* | |
5852c051 | 2920 | LIBS="$ac_save_LIBS" |
3a629497 | 2921 | |
5852c051 JB |
2922 | fi |
2923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2924 | echo "$ac_t""yes" 1>&6 | |
2925 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2926 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2927 | cat >> confdefs.h <<EOF | |
2928 | #define $ac_tr_lib 1 | |
3a629497 JB |
2929 | EOF |
2930 | ||
5852c051 JB |
2931 | LIBS="-ldl $LIBS" |
2932 | ||
2933 | else | |
2934 | echo "$ac_t""no" 1>&6 | |
3a629497 JB |
2935 | fi |
2936 | ||
5852c051 | 2937 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
4c787b52 MD |
2938 | for ac_func in dlopen |
2939 | do | |
2940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 2941 | echo "configure:2942: checking for $ac_func" >&5 |
4c787b52 | 2942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9dca3959 MD |
2943 | echo $ac_n "(cached) $ac_c" 1>&6 |
2944 | else | |
2945 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 2946 | #line 2947 "configure" |
9dca3959 MD |
2947 | #include "confdefs.h" |
2948 | /* System header to define __stub macros and hopefully few prototypes, | |
4c787b52 | 2949 | which can conflict with char $ac_func(); below. */ |
9dca3959 MD |
2950 | #include <assert.h> |
2951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2952 | /* We use char because int might match the return type of a gcc2 | |
2953 | builtin and then its argument prototype would still apply. */ | |
4c787b52 | 2954 | char $ac_func(); |
9dca3959 MD |
2955 | |
2956 | int main() { | |
2957 | ||
2958 | /* The GNU C library defines this for functions which it implements | |
2959 | to always fail with ENOSYS. Some functions are actually named | |
2960 | something starting with __ and the normal name is an alias. */ | |
4c787b52 | 2961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9dca3959 MD |
2962 | choke me |
2963 | #else | |
4c787b52 | 2964 | $ac_func(); |
9dca3959 MD |
2965 | #endif |
2966 | ||
2967 | ; return 0; } | |
26c41b99 | 2968 | EOF |
4725c298 | 2969 | if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9dca3959 | 2970 | rm -rf conftest* |
4c787b52 | 2971 | eval "ac_cv_func_$ac_func=yes" |
9dca3959 MD |
2972 | else |
2973 | echo "configure: failed program was:" >&5 | |
2974 | cat conftest.$ac_ext >&5 | |
2975 | rm -rf conftest* | |
4c787b52 | 2976 | eval "ac_cv_func_$ac_func=no" |
9dca3959 MD |
2977 | fi |
2978 | rm -f conftest* | |
2979 | fi | |
2980 | ||
4c787b52 | 2981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9dca3959 | 2982 | echo "$ac_t""yes" 1>&6 |
4c787b52 MD |
2983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2984 | cat >> confdefs.h <<EOF | |
2985 | #define $ac_tr_func 1 | |
2986 | EOF | |
2987 | ||
9dca3959 MD |
2988 | else |
2989 | echo "$ac_t""no" 1>&6 | |
2990 | fi | |
4c787b52 | 2991 | done |
26c41b99 | 2992 | |
5852c051 JB |
2993 | cat >> confdefs.h <<\EOF |
2994 | #define DYNAMIC_LINKING 1 | |
2995 | EOF | |
2996 | ||
2997 | else | |
2998 | echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 | |
4725c298 | 2999 | echo "configure:3000: checking for dld_link in -ldld" >&5 |
5852c051 JB |
3000 | ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'` |
3001 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a629497 JB |
3002 | echo $ac_n "(cached) $ac_c" 1>&6 |
3003 | else | |
5852c051 JB |
3004 | ac_save_LIBS="$LIBS" |
3005 | LIBS="-ldld $LIBS" | |
3006 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3007 | #line 3008 "configure" |
3a629497 | 3008 | #include "confdefs.h" |
5852c051 JB |
3009 | /* Override any gcc2 internal prototype to avoid an error. */ |
3010 | /* We use char because int might match the return type of a gcc2 | |
3011 | builtin and then its argument prototype would still apply. */ | |
3012 | char dld_link(); | |
3a629497 JB |
3013 | |
3014 | int main() { | |
5852c051 | 3015 | dld_link() |
3a629497 JB |
3016 | ; return 0; } |
3017 | EOF | |
4725c298 | 3018 | if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3019 | rm -rf conftest* |
5852c051 | 3020 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a629497 JB |
3021 | else |
3022 | echo "configure: failed program was:" >&5 | |
3023 | cat conftest.$ac_ext >&5 | |
3024 | rm -rf conftest* | |
5852c051 | 3025 | eval "ac_cv_lib_$ac_lib_var=no" |
3a629497 JB |
3026 | fi |
3027 | rm -f conftest* | |
5852c051 | 3028 | LIBS="$ac_save_LIBS" |
3a629497 JB |
3029 | |
3030 | fi | |
5852c051 JB |
3031 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
3032 | echo "$ac_t""yes" 1>&6 | |
3033 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3034 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3035 | cat >> confdefs.h <<EOF | |
3036 | #define $ac_tr_lib 1 | |
3a629497 JB |
3037 | EOF |
3038 | ||
5852c051 | 3039 | LIBS="-ldld $LIBS" |
3a629497 | 3040 | |
3a629497 | 3041 | else |
5852c051 | 3042 | echo "$ac_t""no" 1>&6 |
3a629497 | 3043 | fi |
3a629497 | 3044 | |
5852c051 | 3045 | if test "$ac_cv_lib_dld_dld_link" = "yes"; then |
5852c051 JB |
3046 | cat >> confdefs.h <<\EOF |
3047 | #define DYNAMIC_LINKING 1 | |
3048 | EOF | |
3a629497 | 3049 | |
5852c051 | 3050 | else |
4c787b52 MD |
3051 | for ac_func in shl_load |
3052 | do | |
3053 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3054 | echo "configure:3055: checking for $ac_func" >&5 |
4c787b52 | 3055 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3a629497 JB |
3056 | echo $ac_n "(cached) $ac_c" 1>&6 |
3057 | else | |
3058 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3059 | #line 3060 "configure" |
3a629497 JB |
3060 | #include "confdefs.h" |
3061 | /* System header to define __stub macros and hopefully few prototypes, | |
4c787b52 | 3062 | which can conflict with char $ac_func(); below. */ |
3a629497 JB |
3063 | #include <assert.h> |
3064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3065 | /* We use char because int might match the return type of a gcc2 | |
3066 | builtin and then its argument prototype would still apply. */ | |
4c787b52 | 3067 | char $ac_func(); |
3a629497 JB |
3068 | |
3069 | int main() { | |
3070 | ||
3071 | /* The GNU C library defines this for functions which it implements | |
3072 | to always fail with ENOSYS. Some functions are actually named | |
3073 | something starting with __ and the normal name is an alias. */ | |
4c787b52 | 3074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
3a629497 JB |
3075 | choke me |
3076 | #else | |
4c787b52 | 3077 | $ac_func(); |
3a629497 JB |
3078 | #endif |
3079 | ||
3080 | ; return 0; } | |
3081 | EOF | |
4725c298 | 3082 | if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3083 | rm -rf conftest* |
4c787b52 | 3084 | eval "ac_cv_func_$ac_func=yes" |
3a629497 JB |
3085 | else |
3086 | echo "configure: failed program was:" >&5 | |
3087 | cat conftest.$ac_ext >&5 | |
3088 | rm -rf conftest* | |
4c787b52 | 3089 | eval "ac_cv_func_$ac_func=no" |
3a629497 JB |
3090 | fi |
3091 | rm -f conftest* | |
3092 | fi | |
3093 | ||
4c787b52 | 3094 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3a629497 | 3095 | echo "$ac_t""yes" 1>&6 |
4c787b52 MD |
3096 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3097 | cat >> confdefs.h <<EOF | |
3098 | #define $ac_tr_func 1 | |
3099 | EOF | |
3100 | ||
3a629497 JB |
3101 | else |
3102 | echo "$ac_t""no" 1>&6 | |
3103 | fi | |
4c787b52 | 3104 | done |
3a629497 | 3105 | |
5852c051 JB |
3106 | if test "$ac_cv_func_shl_load" = "yes"; then |
3107 | cat >> confdefs.h <<\EOF | |
3108 | #define DYNAMIC_LINKING 1 | |
3a629497 | 3109 | EOF |
5852c051 | 3110 | |
a4995389 | 3111 | else |
4c787b52 MD |
3112 | for ac_func in dlopen |
3113 | do | |
3114 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3115 | echo "configure:3116: checking for $ac_func" >&5 |
4c787b52 | 3116 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
a4995389 MV |
3117 | echo $ac_n "(cached) $ac_c" 1>&6 |
3118 | else | |
3119 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3120 | #line 3121 "configure" |
a4995389 MV |
3121 | #include "confdefs.h" |
3122 | /* System header to define __stub macros and hopefully few prototypes, | |
4c787b52 | 3123 | which can conflict with char $ac_func(); below. */ |
a4995389 MV |
3124 | #include <assert.h> |
3125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3126 | /* We use char because int might match the return type of a gcc2 | |
3127 | builtin and then its argument prototype would still apply. */ | |
4c787b52 | 3128 | char $ac_func(); |
a4995389 MV |
3129 | |
3130 | int main() { | |
3131 | ||
3132 | /* The GNU C library defines this for functions which it implements | |
3133 | to always fail with ENOSYS. Some functions are actually named | |
3134 | something starting with __ and the normal name is an alias. */ | |
4c787b52 | 3135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a4995389 MV |
3136 | choke me |
3137 | #else | |
4c787b52 | 3138 | $ac_func(); |
a4995389 MV |
3139 | #endif |
3140 | ||
3141 | ; return 0; } | |
3142 | EOF | |
4725c298 | 3143 | if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a4995389 | 3144 | rm -rf conftest* |
4c787b52 | 3145 | eval "ac_cv_func_$ac_func=yes" |
a4995389 MV |
3146 | else |
3147 | echo "configure: failed program was:" >&5 | |
3148 | cat conftest.$ac_ext >&5 | |
3149 | rm -rf conftest* | |
4c787b52 | 3150 | eval "ac_cv_func_$ac_func=no" |
a4995389 MV |
3151 | fi |
3152 | rm -f conftest* | |
3153 | fi | |
3154 | ||
4c787b52 | 3155 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
a4995389 | 3156 | echo "$ac_t""yes" 1>&6 |
4c787b52 MD |
3157 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3158 | cat >> confdefs.h <<EOF | |
3159 | #define $ac_tr_func 1 | |
3160 | EOF | |
3161 | ||
a4995389 MV |
3162 | else |
3163 | echo "$ac_t""no" 1>&6 | |
3164 | fi | |
4c787b52 | 3165 | done |
a4995389 MV |
3166 | |
3167 | if test "$ac_cv_func_dlopen" = "yes"; then | |
3168 | cat >> confdefs.h <<\EOF | |
3169 | #define DYNAMIC_LINKING 1 | |
3170 | EOF | |
3171 | ||
3172 | fi | |
3a629497 | 3173 | fi |
3a629497 | 3174 | fi |
3a629497 JB |
3175 | fi |
3176 | ||
3a629497 JB |
3177 | fi |
3178 | ||
774b7f22 TP |
3179 | |
3180 | echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6 | |
4725c298 | 3181 | echo "configure:3182: checking for underscore before symbols" >&5 |
774b7f22 TP |
3182 | if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then |
3183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3184 | else | |
3185 | ||
3186 | echo "main(){int i=1;} | |
3187 | fnord(){int i=23; int ltuae=42;}" > conftest.c | |
3188 | ${CC} conftest.c > /dev/null | |
3189 | if (nm a.out | grep _fnord) > /dev/null; then | |
3190 | guile_cv_uscore=yes | |
3191 | else | |
3192 | guile_cv_uscore=no | |
3193 | fi | |
3194 | fi | |
3195 | ||
3196 | echo "$ac_t""$guile_cv_uscore" 1>&6 | |
3197 | rm -f conftest.c a.out | |
3198 | ||
3199 | if test $guile_cv_uscore = yes; then | |
3200 | cat >> confdefs.h <<\EOF | |
3201 | #define USCORE 1 | |
3202 | EOF | |
3203 | ||
3204 | ||
3205 | if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then | |
3206 | echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6 | |
4725c298 | 3207 | echo "configure:3208: checking whether dlsym always adds an underscore for us" >&5 |
774b7f22 TP |
3208 | if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then |
3209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3210 | else | |
3211 | if test "$cross_compiling" = yes; then | |
5aadf8c1 | 3212 | guile_cv_dlsym_adds_uscore=no |
774b7f22 TP |
3213 | else |
3214 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3215 | #line 3216 "configure" |
774b7f22 TP |
3216 | #include "confdefs.h" |
3217 | ||
3218 | #include <dlfcn.h> | |
3219 | #include <stdio.h> | |
3220 | fnord() { int i=42;} | |
3221 | main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); | |
3222 | if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); | |
3223 | if(ptr1 && !ptr2) exit(0); } exit(1); } | |
3224 | ||
3225 | EOF | |
4725c298 | 3226 | if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
774b7f22 TP |
3227 | then |
3228 | guile_cv_dlsym_adds_uscore=yes | |
3229 | cat >> confdefs.h <<\EOF | |
3230 | #define DLSYM_ADDS_USCORE 1 | |
3231 | EOF | |
3232 | ||
3233 | else | |
3234 | echo "configure: failed program was:" >&5 | |
3235 | cat conftest.$ac_ext >&5 | |
3236 | rm -fr conftest* | |
3237 | guile_cv_dlsym_adds_uscore=no | |
3238 | fi | |
3239 | rm -fr conftest* | |
3240 | fi | |
3241 | ||
3242 | fi | |
3243 | ||
3244 | ||
3245 | echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6 | |
3246 | fi | |
3247 | fi | |
3248 | ||
3a629497 | 3249 | |
dbbbec40 | 3250 | for ac_func in ctermid ftime getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid bzero strdup system usleep atexit |
5852c051 JB |
3251 | do |
3252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3253 | echo "configure:3254: checking for $ac_func" >&5 |
5852c051 | 3254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3a629497 JB |
3255 | echo $ac_n "(cached) $ac_c" 1>&6 |
3256 | else | |
3257 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3258 | #line 3259 "configure" |
3a629497 | 3259 | #include "confdefs.h" |
5852c051 JB |
3260 | /* System header to define __stub macros and hopefully few prototypes, |
3261 | which can conflict with char $ac_func(); below. */ | |
3262 | #include <assert.h> | |
3263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3264 | /* We use char because int might match the return type of a gcc2 | |
3265 | builtin and then its argument prototype would still apply. */ | |
3266 | char $ac_func(); | |
3267 | ||
3a629497 | 3268 | int main() { |
5852c051 JB |
3269 | |
3270 | /* The GNU C library defines this for functions which it implements | |
3271 | to always fail with ENOSYS. Some functions are actually named | |
3272 | something starting with __ and the normal name is an alias. */ | |
3273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3274 | choke me | |
3275 | #else | |
3276 | $ac_func(); | |
3277 | #endif | |
3278 | ||
3a629497 JB |
3279 | ; return 0; } |
3280 | EOF | |
4725c298 | 3281 | if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3282 | rm -rf conftest* |
5852c051 | 3283 | eval "ac_cv_func_$ac_func=yes" |
3a629497 JB |
3284 | else |
3285 | echo "configure: failed program was:" >&5 | |
3286 | cat conftest.$ac_ext >&5 | |
3287 | rm -rf conftest* | |
5852c051 | 3288 | eval "ac_cv_func_$ac_func=no" |
3a629497 JB |
3289 | fi |
3290 | rm -f conftest* | |
3291 | fi | |
3292 | ||
5852c051 JB |
3293 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3294 | echo "$ac_t""yes" 1>&6 | |
3295 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3296 | cat >> confdefs.h <<EOF | |
3297 | #define $ac_tr_func 1 | |
3a629497 | 3298 | EOF |
5852c051 JB |
3299 | |
3300 | else | |
3301 | echo "$ac_t""no" 1>&6 | |
3a629497 | 3302 | fi |
5852c051 | 3303 | done |
3a629497 | 3304 | |
5852c051 | 3305 | |
777b022a JB |
3306 | ### Some systems don't declare some functions. On such systems, we |
3307 | ### need to at least provide our own K&R-style declarations. | |
64e121dc | 3308 | |
777b022a JB |
3309 | ### GUILE_FUNC_DECLARED(function, headerfile) |
3310 | ||
3311 | ### Check for a declaration of FUNCTION in HEADERFILE; if it is | |
3312 | ### not there, #define MISSING_FUNCTION_DECL. | |
3313 | ||
3314 | ||
3315 | ||
3316 | echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6 | |
4725c298 | 3317 | echo "configure:3318: checking for strptime declaration" >&5 |
dc70c998 | 3318 | if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then |
777b022a JB |
3319 | echo $ac_n "(cached) $ac_c" 1>&6 |
3320 | else | |
3321 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3322 | #line 3323 "configure" |
777b022a JB |
3323 | #include "confdefs.h" |
3324 | #include <time.h> | |
3325 | EOF | |
3326 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3327 | egrep "strptime" >/dev/null 2>&1; then | |
3328 | rm -rf conftest* | |
dc70c998 | 3329 | guile_cv_func_strptime_declared=yes |
777b022a JB |
3330 | else |
3331 | rm -rf conftest* | |
dc70c998 | 3332 | guile_cv_func_strptime_declared=no |
64e121dc | 3333 | fi |
777b022a | 3334 | rm -f conftest* |
64e121dc | 3335 | |
777b022a | 3336 | fi |
64e121dc | 3337 | |
dc70c998 JB |
3338 | echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6 |
3339 | if test x$guile_cv_func_strptime_declared = xno; then | |
777b022a JB |
3340 | cat >> confdefs.h <<\EOF |
3341 | #define MISSING_STRPTIME_DECL 1 | |
3342 | EOF | |
64e121dc | 3343 | |
777b022a | 3344 | fi |
64e121dc MD |
3345 | |
3346 | ||
777b022a | 3347 | echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6 |
4725c298 | 3348 | echo "configure:3349: checking for bzero declaration" >&5 |
dc70c998 | 3349 | if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then |
777b022a JB |
3350 | echo $ac_n "(cached) $ac_c" 1>&6 |
3351 | else | |
3352 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3353 | #line 3354 "configure" |
777b022a JB |
3354 | #include "confdefs.h" |
3355 | #include <string.h> | |
3356 | EOF | |
3357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3358 | egrep "bzero" >/dev/null 2>&1; then | |
3359 | rm -rf conftest* | |
dc70c998 | 3360 | guile_cv_func_bzero_declared=yes |
777b022a JB |
3361 | else |
3362 | rm -rf conftest* | |
dc70c998 | 3363 | guile_cv_func_bzero_declared=no |
777b022a JB |
3364 | fi |
3365 | rm -f conftest* | |
3366 | ||
3367 | fi | |
3368 | ||
dc70c998 JB |
3369 | echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6 |
3370 | if test x$guile_cv_func_bzero_declared = xno; then | |
64e121dc | 3371 | cat >> confdefs.h <<\EOF |
777b022a | 3372 | #define MISSING_BZERO_DECL 1 |
64e121dc MD |
3373 | EOF |
3374 | ||
777b022a JB |
3375 | fi |
3376 | ||
3377 | ||
c31bfb85 | 3378 | echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6 |
4725c298 | 3379 | echo "configure:3380: checking for sleep declaration" >&5 |
dc70c998 | 3380 | if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then |
c31bfb85 JB |
3381 | echo $ac_n "(cached) $ac_c" 1>&6 |
3382 | else | |
3383 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3384 | #line 3385 "configure" |
c31bfb85 JB |
3385 | #include "confdefs.h" |
3386 | #include <unistd.h> | |
3387 | EOF | |
3388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3389 | egrep "sleep" >/dev/null 2>&1; then | |
3390 | rm -rf conftest* | |
dc70c998 | 3391 | guile_cv_func_sleep_declared=yes |
c31bfb85 JB |
3392 | else |
3393 | rm -rf conftest* | |
dc70c998 | 3394 | guile_cv_func_sleep_declared=no |
c31bfb85 JB |
3395 | fi |
3396 | rm -f conftest* | |
3397 | ||
3398 | fi | |
3399 | ||
dc70c998 JB |
3400 | echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6 |
3401 | if test x$guile_cv_func_sleep_declared = xno; then | |
c31bfb85 JB |
3402 | cat >> confdefs.h <<\EOF |
3403 | #define MISSING_SLEEP_DECL 1 | |
3404 | EOF | |
3405 | ||
3406 | fi | |
3407 | ||
3408 | ||
777b022a | 3409 | echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6 |
4725c298 | 3410 | echo "configure:3411: checking for usleep declaration" >&5 |
dc70c998 | 3411 | if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then |
777b022a JB |
3412 | echo $ac_n "(cached) $ac_c" 1>&6 |
3413 | else | |
3414 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3415 | #line 3416 "configure" |
777b022a JB |
3416 | #include "confdefs.h" |
3417 | #include <unistd.h> | |
3418 | EOF | |
3419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3420 | egrep "usleep" >/dev/null 2>&1; then | |
3421 | rm -rf conftest* | |
dc70c998 | 3422 | guile_cv_func_usleep_declared=yes |
777b022a JB |
3423 | else |
3424 | rm -rf conftest* | |
dc70c998 | 3425 | guile_cv_func_usleep_declared=no |
777b022a JB |
3426 | fi |
3427 | rm -f conftest* | |
3428 | ||
3429 | fi | |
3430 | ||
dc70c998 JB |
3431 | echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6 |
3432 | if test x$guile_cv_func_usleep_declared = xno; then | |
64e121dc | 3433 | cat >> confdefs.h <<\EOF |
777b022a | 3434 | #define MISSING_USLEEP_DECL 1 |
64e121dc MD |
3435 | EOF |
3436 | ||
777b022a JB |
3437 | fi |
3438 | ||
64e121dc | 3439 | |
da753252 JB |
3440 | ### On some systems usleep has no return value. If it does have one, |
3441 | ### we'd like to return it; otherwise, we'll fake it. | |
dc70c998 | 3442 | echo $ac_n "checking return type of usleep""... $ac_c" 1>&6 |
4725c298 | 3443 | echo "configure:3444: checking return type of usleep" >&5 |
dc70c998 JB |
3444 | if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then |
3445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3446 | else | |
3447 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3448 | #line 3449 "configure" |
0935d604 MD |
3449 | #include "confdefs.h" |
3450 | #include </usr/include/unistd.h> | |
3451 | EOF | |
3452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
c43f86c1 | 3453 | egrep "void[ ]+usleep" >/dev/null 2>&1; then |
0935d604 | 3454 | rm -rf conftest* |
dc70c998 JB |
3455 | guile_cv_func_usleep_return_type=void |
3456 | else | |
3457 | rm -rf conftest* | |
3458 | guile_cv_func_usleep_return_type=int | |
3459 | fi | |
3460 | rm -f conftest* | |
3461 | ||
3462 | fi | |
3463 | ||
3464 | echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6 | |
3465 | case "$guile_cv_func_usleep_return_type" in | |
3466 | "void" ) | |
3467 | cat >> confdefs.h <<\EOF | |
0935d604 MD |
3468 | #define USLEEP_RETURNS_VOID 1 |
3469 | EOF | |
3470 | ||
dc70c998 JB |
3471 | ;; |
3472 | esac | |
0935d604 | 3473 | |
da88f0cb JB |
3474 | |
3475 | ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'` | |
3476 | echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6 | |
4725c298 | 3477 | echo "configure:3478: checking for sys/un.h" >&5 |
da88f0cb JB |
3478 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3480 | else | |
3481 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3482 | #line 3483 "configure" |
da88f0cb JB |
3483 | #include "confdefs.h" |
3484 | #include <sys/un.h> | |
3485 | EOF | |
3486 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4725c298 | 3487 | { (eval echo configure:3488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 3488 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
da88f0cb JB |
3489 | if test -z "$ac_err"; then |
3490 | rm -rf conftest* | |
3491 | eval "ac_cv_header_$ac_safe=yes" | |
3492 | else | |
3493 | echo "$ac_err" >&5 | |
3494 | echo "configure: failed program was:" >&5 | |
3495 | cat conftest.$ac_ext >&5 | |
3496 | rm -rf conftest* | |
3497 | eval "ac_cv_header_$ac_safe=no" | |
3498 | fi | |
3499 | rm -f conftest* | |
3500 | fi | |
3501 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3502 | echo "$ac_t""yes" 1>&6 | |
3503 | have_sys_un_h=1 | |
3504 | else | |
3505 | echo "$ac_t""no" 1>&6 | |
3506 | fi | |
3507 | ||
3508 | if test -n "$have_sys_un_h" ; then | |
3509 | cat >> confdefs.h <<\EOF | |
3510 | #define HAVE_UNIX_DOMAIN_SOCKETS 1 | |
3511 | EOF | |
3512 | ||
3513 | fi | |
3514 | ||
3515 | for ac_func in socketpair getgroups setpwent pause tzset | |
3516 | do | |
3517 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3518 | echo "configure:3519: checking for $ac_func" >&5 |
da88f0cb JB |
3519 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3521 | else | |
3522 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3523 | #line 3524 "configure" |
da88f0cb JB |
3524 | #include "confdefs.h" |
3525 | /* System header to define __stub macros and hopefully few prototypes, | |
3526 | which can conflict with char $ac_func(); below. */ | |
3527 | #include <assert.h> | |
3528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3529 | /* We use char because int might match the return type of a gcc2 | |
3530 | builtin and then its argument prototype would still apply. */ | |
3531 | char $ac_func(); | |
3532 | ||
3533 | int main() { | |
3534 | ||
3535 | /* The GNU C library defines this for functions which it implements | |
3536 | to always fail with ENOSYS. Some functions are actually named | |
3537 | something starting with __ and the normal name is an alias. */ | |
3538 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3539 | choke me | |
3540 | #else | |
3541 | $ac_func(); | |
3542 | #endif | |
3543 | ||
3544 | ; return 0; } | |
3545 | EOF | |
4725c298 | 3546 | if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da88f0cb JB |
3547 | rm -rf conftest* |
3548 | eval "ac_cv_func_$ac_func=yes" | |
3549 | else | |
3550 | echo "configure: failed program was:" >&5 | |
3551 | cat conftest.$ac_ext >&5 | |
3552 | rm -rf conftest* | |
3553 | eval "ac_cv_func_$ac_func=no" | |
3554 | fi | |
3555 | rm -f conftest* | |
3556 | fi | |
3557 | ||
3558 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3559 | echo "$ac_t""yes" 1>&6 | |
3560 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3561 | cat >> confdefs.h <<EOF | |
3562 | #define $ac_tr_func 1 | |
3563 | EOF | |
3564 | ||
3565 | else | |
3566 | echo "$ac_t""no" 1>&6 | |
3567 | fi | |
3568 | done | |
3569 | ||
3570 | ||
f4e5b810 GH |
3571 | |
3572 | ||
3573 | ||
219a5a5b | 3574 | for ac_func in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof |
f4e5b810 GH |
3575 | do |
3576 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3577 | echo "configure:3578: checking for $ac_func" >&5 |
f4e5b810 | 3578 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
da88f0cb JB |
3579 | echo $ac_n "(cached) $ac_c" 1>&6 |
3580 | else | |
3581 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3582 | #line 3583 "configure" |
da88f0cb JB |
3583 | #include "confdefs.h" |
3584 | /* System header to define __stub macros and hopefully few prototypes, | |
f4e5b810 | 3585 | which can conflict with char $ac_func(); below. */ |
da88f0cb JB |
3586 | #include <assert.h> |
3587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3588 | /* We use char because int might match the return type of a gcc2 | |
3589 | builtin and then its argument prototype would still apply. */ | |
f4e5b810 | 3590 | char $ac_func(); |
da88f0cb JB |
3591 | |
3592 | int main() { | |
3593 | ||
3594 | /* The GNU C library defines this for functions which it implements | |
3595 | to always fail with ENOSYS. Some functions are actually named | |
3596 | something starting with __ and the normal name is an alias. */ | |
f4e5b810 | 3597 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
da88f0cb JB |
3598 | choke me |
3599 | #else | |
f4e5b810 | 3600 | $ac_func(); |
da88f0cb JB |
3601 | #endif |
3602 | ||
3603 | ; return 0; } | |
3604 | EOF | |
4725c298 | 3605 | if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da88f0cb | 3606 | rm -rf conftest* |
f4e5b810 | 3607 | eval "ac_cv_func_$ac_func=yes" |
da88f0cb JB |
3608 | else |
3609 | echo "configure: failed program was:" >&5 | |
3610 | cat conftest.$ac_ext >&5 | |
3611 | rm -rf conftest* | |
f4e5b810 | 3612 | eval "ac_cv_func_$ac_func=no" |
da88f0cb JB |
3613 | fi |
3614 | rm -f conftest* | |
3615 | fi | |
3616 | ||
f4e5b810 | 3617 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
da88f0cb | 3618 | echo "$ac_t""yes" 1>&6 |
f4e5b810 GH |
3619 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3620 | cat >> confdefs.h <<EOF | |
3621 | #define $ac_tr_func 1 | |
3622 | EOF | |
3623 | ||
da88f0cb JB |
3624 | else |
3625 | echo "$ac_t""no" 1>&6 | |
3626 | fi | |
da88f0cb | 3627 | done |
f4e5b810 | 3628 | |
da88f0cb JB |
3629 | |
3630 | ||
5852c051 | 3631 | echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6 |
4725c298 | 3632 | echo "configure:3633: checking for restartable system calls" >&5 |
5852c051 | 3633 | if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then |
3a629497 JB |
3634 | echo $ac_n "(cached) $ac_c" 1>&6 |
3635 | else | |
5852c051 JB |
3636 | if test $ac_cv_func_sigaction = yes; then |
3637 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3638 | #line 3639 "configure" |
3a629497 | 3639 | #include "confdefs.h" |
5852c051 | 3640 | #include <signal.h> |
3a629497 | 3641 | int main() { |
5852c051 | 3642 | int a = SA_RESTART |
3a629497 JB |
3643 | ; return 0; } |
3644 | EOF | |
4725c298 | 3645 | if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 | 3646 | rm -rf conftest* |
5852c051 | 3647 | scm_cv_restarts=yes |
3a629497 JB |
3648 | else |
3649 | echo "configure: failed program was:" >&5 | |
3650 | cat conftest.$ac_ext >&5 | |
3651 | rm -rf conftest* | |
5852c051 | 3652 | scm_cv_restarts=no |
3a629497 JB |
3653 | fi |
3654 | rm -f conftest* | |
5852c051 JB |
3655 | else |
3656 | scm_cv_restarts=no | |
3657 | fi | |
3a629497 JB |
3658 | fi |
3659 | ||
5852c051 JB |
3660 | echo "$ac_t""$scm_cv_restarts" 1>&6 |
3661 | if test $scm_cv_restarts = yes; then | |
3662 | cat >> confdefs.h <<\EOF | |
3663 | #define HAVE_RESTARTS 1 | |
3a629497 JB |
3664 | EOF |
3665 | ||
3666 | fi | |
3667 | ||
365d0782 MD |
3668 | if test "$ac_cv_header_regex_h" = yes || |
3669 | test "$ac_cv_header_rxposix_h" = yes || | |
3670 | test "$ac_cv_header_rx_rxposix_h" = yes; then | |
365d0782 | 3671 | echo $ac_n "checking for regcomp""... $ac_c" 1>&6 |
4725c298 | 3672 | echo "configure:3673: checking for regcomp" >&5 |
0b89e78e | 3673 | if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then |
3a629497 JB |
3674 | echo $ac_n "(cached) $ac_c" 1>&6 |
3675 | else | |
3676 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3677 | #line 3678 "configure" |
3a629497 | 3678 | #include "confdefs.h" |
5852c051 | 3679 | /* System header to define __stub macros and hopefully few prototypes, |
365d0782 | 3680 | which can conflict with char regcomp(); below. */ |
5852c051 JB |
3681 | #include <assert.h> |
3682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3683 | /* We use char because int might match the return type of a gcc2 | |
3684 | builtin and then its argument prototype would still apply. */ | |
365d0782 | 3685 | char regcomp(); |
5852c051 | 3686 | |
3a629497 | 3687 | int main() { |
5852c051 JB |
3688 | |
3689 | /* The GNU C library defines this for functions which it implements | |
3690 | to always fail with ENOSYS. Some functions are actually named | |
3691 | something starting with __ and the normal name is an alias. */ | |
365d0782 | 3692 | #if defined (__stub_regcomp) || defined (__stub___regcomp) |
5852c051 JB |
3693 | choke me |
3694 | #else | |
365d0782 | 3695 | regcomp(); |
5852c051 JB |
3696 | #endif |
3697 | ||
3a629497 JB |
3698 | ; return 0; } |
3699 | EOF | |
4725c298 | 3700 | if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3701 | rm -rf conftest* |
0b89e78e | 3702 | eval "ac_cv_func_regcomp_norx=yes" |
3a629497 JB |
3703 | else |
3704 | echo "configure: failed program was:" >&5 | |
3705 | cat conftest.$ac_ext >&5 | |
3706 | rm -rf conftest* | |
0b89e78e | 3707 | eval "ac_cv_func_regcomp_norx=no" |
3a629497 JB |
3708 | fi |
3709 | rm -f conftest* | |
3710 | fi | |
3711 | ||
0b89e78e | 3712 | if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then |
5852c051 | 3713 | echo "$ac_t""yes" 1>&6 |
365d0782 MD |
3714 | LIBOBJS="regex-posix.o $LIBOBJS" |
3715 | else | |
3716 | echo "$ac_t""no" 1>&6 | |
0b89e78e | 3717 | echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6 |
4725c298 | 3718 | echo "configure:3719: checking for main in -lrx" >&5 |
365d0782 MD |
3719 | ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'` |
3720 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3722 | else | |
3723 | ac_save_LIBS="$LIBS" | |
3724 | LIBS="-lrx $LIBS" | |
3725 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3726 | #line 3727 "configure" |
365d0782 MD |
3727 | #include "confdefs.h" |
3728 | ||
3729 | int main() { | |
3730 | main() | |
3731 | ; return 0; } | |
3732 | EOF | |
4725c298 | 3733 | if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
365d0782 MD |
3734 | rm -rf conftest* |
3735 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3736 | else | |
3737 | echo "configure: failed program was:" >&5 | |
3738 | cat conftest.$ac_ext >&5 | |
3739 | rm -rf conftest* | |
3740 | eval "ac_cv_lib_$ac_lib_var=no" | |
3741 | fi | |
3742 | rm -f conftest* | |
3743 | LIBS="$ac_save_LIBS" | |
3744 | ||
3745 | fi | |
3746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3747 | echo "$ac_t""yes" 1>&6 | |
3748 | ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3749 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5852c051 | 3750 | cat >> confdefs.h <<EOF |
365d0782 | 3751 | #define $ac_tr_lib 1 |
3a629497 | 3752 | EOF |
365d0782 MD |
3753 | |
3754 | LIBS="-lrx $LIBS" | |
3755 | ||
5852c051 JB |
3756 | else |
3757 | echo "$ac_t""no" 1>&6 | |
3a629497 JB |
3758 | fi |
3759 | ||
0b89e78e | 3760 | echo $ac_n "checking for regcomp""... $ac_c" 1>&6 |
4725c298 | 3761 | echo "configure:3762: checking for regcomp" >&5 |
0b89e78e | 3762 | if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then |
365d0782 MD |
3763 | echo $ac_n "(cached) $ac_c" 1>&6 |
3764 | else | |
3765 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3766 | #line 3767 "configure" |
365d0782 MD |
3767 | #include "confdefs.h" |
3768 | /* System header to define __stub macros and hopefully few prototypes, | |
3769 | which can conflict with char regcomp(); below. */ | |
3770 | #include <assert.h> | |
3771 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3772 | /* We use char because int might match the return type of a gcc2 | |
3773 | builtin and then its argument prototype would still apply. */ | |
3774 | char regcomp(); | |
3775 | ||
3776 | int main() { | |
3777 | ||
3778 | /* The GNU C library defines this for functions which it implements | |
3779 | to always fail with ENOSYS. Some functions are actually named | |
3780 | something starting with __ and the normal name is an alias. */ | |
3781 | #if defined (__stub_regcomp) || defined (__stub___regcomp) | |
3782 | choke me | |
3783 | #else | |
3784 | regcomp(); | |
3785 | #endif | |
3786 | ||
3787 | ; return 0; } | |
3788 | EOF | |
4725c298 | 3789 | if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
365d0782 | 3790 | rm -rf conftest* |
0b89e78e | 3791 | eval "ac_cv_func_regcomp_rx=yes" |
365d0782 MD |
3792 | else |
3793 | echo "configure: failed program was:" >&5 | |
3794 | cat conftest.$ac_ext >&5 | |
3795 | rm -rf conftest* | |
0b89e78e | 3796 | eval "ac_cv_func_regcomp_rx=no" |
365d0782 MD |
3797 | fi |
3798 | rm -f conftest* | |
3799 | fi | |
3800 | ||
0b89e78e | 3801 | if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then |
365d0782 MD |
3802 | echo "$ac_t""yes" 1>&6 |
3803 | LIBOBJS="regex-posix.o $LIBOBJS" | |
3804 | else | |
3805 | echo "$ac_t""no" 1>&6 | |
3806 | fi | |
3807 | ||
0b89e78e MD |
3808 | |
3809 | fi | |
3810 | ||
3811 | if test "$ac_cv_func_regcomp_norx" = yes || | |
3812 | test "$ac_cv_func_regcomp_rx" = yes; then | |
365d0782 MD |
3813 | cat >> confdefs.h <<\EOF |
3814 | #define HAVE_REGCOMP 1 | |
3815 | EOF | |
3816 | ||
3817 | fi | |
da88f0cb | 3818 | fi |
5852c051 | 3819 | |
dbbbec40 | 3820 | for ac_func in inet_aton putenv strerror memmove |
5852c051 JB |
3821 | do |
3822 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 3823 | echo "configure:3824: checking for $ac_func" >&5 |
5852c051 | 3824 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3a629497 JB |
3825 | echo $ac_n "(cached) $ac_c" 1>&6 |
3826 | else | |
3827 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3828 | #line 3829 "configure" |
3a629497 | 3829 | #include "confdefs.h" |
5852c051 JB |
3830 | /* System header to define __stub macros and hopefully few prototypes, |
3831 | which can conflict with char $ac_func(); below. */ | |
3832 | #include <assert.h> | |
3833 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3834 | /* We use char because int might match the return type of a gcc2 | |
3835 | builtin and then its argument prototype would still apply. */ | |
3836 | char $ac_func(); | |
3837 | ||
3a629497 | 3838 | int main() { |
5852c051 JB |
3839 | |
3840 | /* The GNU C library defines this for functions which it implements | |
3841 | to always fail with ENOSYS. Some functions are actually named | |
3842 | something starting with __ and the normal name is an alias. */ | |
3843 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3844 | choke me | |
3845 | #else | |
3846 | $ac_func(); | |
3847 | #endif | |
3848 | ||
3a629497 JB |
3849 | ; return 0; } |
3850 | EOF | |
4725c298 | 3851 | if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3852 | rm -rf conftest* |
5852c051 | 3853 | eval "ac_cv_func_$ac_func=yes" |
3a629497 JB |
3854 | else |
3855 | echo "configure: failed program was:" >&5 | |
3856 | cat conftest.$ac_ext >&5 | |
3857 | rm -rf conftest* | |
5852c051 | 3858 | eval "ac_cv_func_$ac_func=no" |
3a629497 JB |
3859 | fi |
3860 | rm -f conftest* | |
3861 | fi | |
3862 | ||
5852c051 JB |
3863 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
3864 | echo "$ac_t""yes" 1>&6 | |
3865 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3866 | cat >> confdefs.h <<EOF | |
3867 | #define $ac_tr_func 1 | |
3a629497 | 3868 | EOF |
5852c051 | 3869 | |
3a629497 | 3870 | else |
5852c051 | 3871 | echo "$ac_t""no" 1>&6 |
9bd368c0 | 3872 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
3a629497 | 3873 | fi |
5852c051 | 3874 | done |
3a629497 | 3875 | |
3a629497 | 3876 | |
5852c051 | 3877 | |
4a5fa91c TP |
3878 | # When testing for the presence of alloca, we need to add alloca.o |
3879 | # explicitly to LIBOBJS to make sure that it is translated to | |
3880 | # `alloca.lo' for libtool later on. This can and should be done more cleanly. | |
5852c051 JB |
3881 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
3882 | # for constant arguments. Useless! | |
3883 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
4725c298 | 3884 | echo "configure:3885: checking for working alloca.h" >&5 |
5852c051 | 3885 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
3a629497 JB |
3886 | echo $ac_n "(cached) $ac_c" 1>&6 |
3887 | else | |
3888 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3889 | #line 3890 "configure" |
3a629497 | 3890 | #include "confdefs.h" |
5852c051 | 3891 | #include <alloca.h> |
3a629497 | 3892 | int main() { |
5852c051 | 3893 | char *p = alloca(2 * sizeof(int)); |
3a629497 JB |
3894 | ; return 0; } |
3895 | EOF | |
4725c298 | 3896 | if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3897 | rm -rf conftest* |
5852c051 | 3898 | ac_cv_header_alloca_h=yes |
3a629497 JB |
3899 | else |
3900 | echo "configure: failed program was:" >&5 | |
3901 | cat conftest.$ac_ext >&5 | |
3902 | rm -rf conftest* | |
5852c051 | 3903 | ac_cv_header_alloca_h=no |
3a629497 JB |
3904 | fi |
3905 | rm -f conftest* | |
3906 | fi | |
3907 | ||
5852c051 JB |
3908 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
3909 | if test $ac_cv_header_alloca_h = yes; then | |
3910 | cat >> confdefs.h <<\EOF | |
3911 | #define HAVE_ALLOCA_H 1 | |
3a629497 JB |
3912 | EOF |
3913 | ||
3a629497 JB |
3914 | fi |
3915 | ||
5852c051 | 3916 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
4725c298 | 3917 | echo "configure:3918: checking for alloca" >&5 |
5852c051 | 3918 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
3a629497 JB |
3919 | echo $ac_n "(cached) $ac_c" 1>&6 |
3920 | else | |
3921 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 3922 | #line 3923 "configure" |
3a629497 JB |
3923 | #include "confdefs.h" |
3924 | ||
5852c051 JB |
3925 | #ifdef __GNUC__ |
3926 | # define alloca __builtin_alloca | |
3a629497 | 3927 | #else |
9bd368c0 MD |
3928 | # ifdef _MSC_VER |
3929 | # include <malloc.h> | |
3930 | # define alloca _alloca | |
5852c051 | 3931 | # else |
9bd368c0 MD |
3932 | # if HAVE_ALLOCA_H |
3933 | # include <alloca.h> | |
d5fb9ed8 | 3934 | # else |
9bd368c0 MD |
3935 | # ifdef _AIX |
3936 | #pragma alloca | |
3937 | # else | |
3938 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5852c051 | 3939 | char *alloca (); |
9bd368c0 | 3940 | # endif |
5852c051 JB |
3941 | # endif |
3942 | # endif | |
3943 | # endif | |
3a629497 | 3944 | #endif |
3a629497 | 3945 | |
5852c051 JB |
3946 | int main() { |
3947 | char *p = (char *) alloca(1); | |
3948 | ; return 0; } | |
3a629497 | 3949 | EOF |
4725c298 | 3950 | if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 3951 | rm -rf conftest* |
5852c051 | 3952 | ac_cv_func_alloca_works=yes |
3a629497 | 3953 | else |
3a629497 JB |
3954 | echo "configure: failed program was:" >&5 |
3955 | cat conftest.$ac_ext >&5 | |
3956 | rm -rf conftest* | |
5852c051 | 3957 | ac_cv_func_alloca_works=no |
3a629497 JB |
3958 | fi |
3959 | rm -f conftest* | |
3960 | fi | |
3961 | ||
5852c051 JB |
3962 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
3963 | if test $ac_cv_func_alloca_works = yes; then | |
3964 | cat >> confdefs.h <<\EOF | |
3965 | #define HAVE_ALLOCA 1 | |
3a629497 JB |
3966 | EOF |
3967 | ||
5852c051 | 3968 | fi |
3a629497 | 3969 | |
5852c051 JB |
3970 | if test $ac_cv_func_alloca_works = no; then |
3971 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3972 | # that cause trouble. Some versions do not even contain alloca or | |
3973 | # contain a buggy version. If you still want to use their alloca, | |
3974 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
9bd368c0 | 3975 | ALLOCA=alloca.${ac_objext} |
5852c051 JB |
3976 | cat >> confdefs.h <<\EOF |
3977 | #define C_ALLOCA 1 | |
3978 | EOF | |
3a629497 JB |
3979 | |
3980 | ||
5852c051 | 3981 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
4725c298 | 3982 | echo "configure:3983: checking whether alloca needs Cray hooks" >&5 |
5852c051 | 3983 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
3a629497 JB |
3984 | echo $ac_n "(cached) $ac_c" 1>&6 |
3985 | else | |
5852c051 | 3986 | cat > conftest.$ac_ext <<EOF |
4725c298 | 3987 | #line 3988 "configure" |
3a629497 | 3988 | #include "confdefs.h" |
5852c051 JB |
3989 | #if defined(CRAY) && ! defined(CRAY2) |
3990 | webecray | |
3991 | #else | |
3992 | wenotbecray | |
3993 | #endif | |
3a629497 | 3994 | |
3a629497 | 3995 | EOF |
5852c051 JB |
3996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3997 | egrep "webecray" >/dev/null 2>&1; then | |
3a629497 | 3998 | rm -rf conftest* |
5852c051 | 3999 | ac_cv_os_cray=yes |
3a629497 | 4000 | else |
3a629497 | 4001 | rm -rf conftest* |
5852c051 | 4002 | ac_cv_os_cray=no |
3a629497 JB |
4003 | fi |
4004 | rm -f conftest* | |
3a629497 JB |
4005 | |
4006 | fi | |
3a629497 | 4007 | |
5852c051 JB |
4008 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
4009 | if test $ac_cv_os_cray = yes; then | |
4010 | for ac_func in _getb67 GETB67 getb67; do | |
4011 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4725c298 | 4012 | echo "configure:4013: checking for $ac_func" >&5 |
5852c051 | 4013 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
075edbde JB |
4014 | echo $ac_n "(cached) $ac_c" 1>&6 |
4015 | else | |
4016 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 4017 | #line 4018 "configure" |
075edbde JB |
4018 | #include "confdefs.h" |
4019 | /* System header to define __stub macros and hopefully few prototypes, | |
5852c051 | 4020 | which can conflict with char $ac_func(); below. */ |
075edbde JB |
4021 | #include <assert.h> |
4022 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4023 | /* We use char because int might match the return type of a gcc2 | |
4024 | builtin and then its argument prototype would still apply. */ | |
5852c051 | 4025 | char $ac_func(); |
075edbde JB |
4026 | |
4027 | int main() { | |
4028 | ||
4029 | /* The GNU C library defines this for functions which it implements | |
4030 | to always fail with ENOSYS. Some functions are actually named | |
4031 | something starting with __ and the normal name is an alias. */ | |
5852c051 | 4032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
075edbde JB |
4033 | choke me |
4034 | #else | |
5852c051 | 4035 | $ac_func(); |
075edbde JB |
4036 | #endif |
4037 | ||
4038 | ; return 0; } | |
4039 | EOF | |
4725c298 | 4040 | if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
075edbde | 4041 | rm -rf conftest* |
5852c051 | 4042 | eval "ac_cv_func_$ac_func=yes" |
075edbde JB |
4043 | else |
4044 | echo "configure: failed program was:" >&5 | |
4045 | cat conftest.$ac_ext >&5 | |
4046 | rm -rf conftest* | |
5852c051 | 4047 | eval "ac_cv_func_$ac_func=no" |
075edbde JB |
4048 | fi |
4049 | rm -f conftest* | |
4050 | fi | |
4051 | ||
5852c051 | 4052 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
075edbde | 4053 | echo "$ac_t""yes" 1>&6 |
5852c051 JB |
4054 | cat >> confdefs.h <<EOF |
4055 | #define CRAY_STACKSEG_END $ac_func | |
4056 | EOF | |
4057 | ||
4058 | break | |
075edbde JB |
4059 | else |
4060 | echo "$ac_t""no" 1>&6 | |
4061 | fi | |
4062 | ||
5852c051 JB |
4063 | done |
4064 | fi | |
4065 | ||
4066 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
4725c298 | 4067 | echo "configure:4068: checking stack direction for C alloca" >&5 |
5852c051 | 4068 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
3a629497 JB |
4069 | echo $ac_n "(cached) $ac_c" 1>&6 |
4070 | else | |
5852c051 JB |
4071 | if test "$cross_compiling" = yes; then |
4072 | ac_cv_c_stack_direction=0 | |
4073 | else | |
4074 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 4075 | #line 4076 "configure" |
3a629497 | 4076 | #include "confdefs.h" |
5852c051 JB |
4077 | find_stack_direction () |
4078 | { | |
4079 | static char *addr = 0; | |
4080 | auto char dummy; | |
4081 | if (addr == 0) | |
4082 | { | |
4083 | addr = &dummy; | |
4084 | return find_stack_direction (); | |
4085 | } | |
4086 | else | |
4087 | return (&dummy > addr) ? 1 : -1; | |
4088 | } | |
4089 | main () | |
4090 | { | |
4091 | exit (find_stack_direction() < 0); | |
4092 | } | |
4093 | EOF | |
4725c298 | 4094 | if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5852c051 JB |
4095 | then |
4096 | ac_cv_c_stack_direction=1 | |
4097 | else | |
4098 | echo "configure: failed program was:" >&5 | |
4099 | cat conftest.$ac_ext >&5 | |
4100 | rm -fr conftest* | |
4101 | ac_cv_c_stack_direction=-1 | |
4102 | fi | |
4103 | rm -fr conftest* | |
4104 | fi | |
4105 | ||
4106 | fi | |
4107 | ||
4108 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
4109 | cat >> confdefs.h <<EOF | |
4110 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4111 | EOF | |
3a629497 | 4112 | |
5852c051 JB |
4113 | fi |
4114 | ||
4a5fa91c | 4115 | if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi |
5852c051 JB |
4116 | |
4117 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | |
4725c298 | 4118 | echo "configure:4119: checking for st_rdev in struct stat" >&5 |
5852c051 JB |
4119 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
4120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4121 | else | |
4122 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 4123 | #line 4124 "configure" |
5852c051 JB |
4124 | #include "confdefs.h" |
4125 | #include <sys/types.h> | |
4126 | #include <sys/stat.h> | |
3a629497 | 4127 | int main() { |
5852c051 | 4128 | struct stat s; s.st_rdev; |
3a629497 JB |
4129 | ; return 0; } |
4130 | EOF | |
4725c298 | 4131 | if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 | 4132 | rm -rf conftest* |
5852c051 | 4133 | ac_cv_struct_st_rdev=yes |
3a629497 JB |
4134 | else |
4135 | echo "configure: failed program was:" >&5 | |
4136 | cat conftest.$ac_ext >&5 | |
4137 | rm -rf conftest* | |
5852c051 | 4138 | ac_cv_struct_st_rdev=no |
3a629497 JB |
4139 | fi |
4140 | rm -f conftest* | |
3a629497 | 4141 | fi |
3a629497 | 4142 | |
5852c051 JB |
4143 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 |
4144 | if test $ac_cv_struct_st_rdev = yes; then | |
4145 | cat >> confdefs.h <<\EOF | |
4146 | #define HAVE_ST_RDEV 1 | |
4147 | EOF | |
075edbde | 4148 | |
075edbde | 4149 | fi |
3a629497 | 4150 | |
5852c051 | 4151 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 |
4725c298 | 4152 | echo "configure:4153: checking for st_blksize in struct stat" >&5 |
5852c051 | 4153 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
075edbde JB |
4154 | echo $ac_n "(cached) $ac_c" 1>&6 |
4155 | else | |
4156 | cat > conftest.$ac_ext <<EOF | |
4725c298 | 4157 | #line 4158 "configure" |
075edbde | 4158 | #include "confdefs.h" |
5852c051 JB |
4159 | #include <sys/types.h> |
4160 | #include <sys/stat.h> | |
075edbde | 4161 | int main() { |
5852c051 | 4162 | struct stat s; s.st_blksize; |
075edbde JB |
4163 | ; return 0; } |
4164 | EOF | |
4725c298 | 4165 | if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
075edbde | 4166 | rm -rf conftest* |
5852c051 | 4167 | ac_cv_struct_st_blksize=yes |
075edbde JB |
4168 | else |
4169 | echo "configure: failed program was:" >&5 | |
4170 | cat conftest.$ac_ext >&5 | |
4171 | rm -rf conftest* | |
5852c051 | 4172 | ac_cv_struct_st_blksize=no |
075edbde JB |
4173 | fi |
4174 | rm -f conftest* | |
4175 | fi | |
4176 | ||
5852c051 JB |
4177 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 |
4178 | if test $ac_cv_struct_st_blksize = yes; then | |
4179 | cat >> confdefs.h <<\EOF | |
4180 | #define HAVE_ST_BLKSIZE 1 | |
4181 | EOF | |
4182 | ||
3a629497 JB |
4183 | fi |
4184 | ||
5852c051 JB |
4185 | |
4186 | # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to | |
4187 | # LIBOBJS, which we don't need. This seems more direct. | |
4188 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | |
4725c298 | 4189 | echo "configure:4190: checking for st_blocks in struct stat" >&5 |
5852c051 | 4190 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
3a629497 JB |
4191 | echo $ac_n "(cached) $ac_c" 1>&6 |
4192 | else | |
5852c051 | 4193 | cat > conftest.$ac_ext <<EOF |
4725c298 | 4194 | #line 4195 "configure" |
3a629497 | 4195 | #include "confdefs.h" |
5852c051 JB |
4196 | #include <sys/types.h> |
4197 | #include <sys/stat.h> | |
3a629497 | 4198 | int main() { |
5852c051 | 4199 | struct stat s; s.st_blocks; |
3a629497 JB |
4200 | ; return 0; } |
4201 | EOF | |
4725c298 | 4202 | if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 | 4203 | rm -rf conftest* |
5852c051 | 4204 | ac_cv_struct_st_blocks=yes |
3a629497 JB |
4205 | else |
4206 | echo "configure: failed program was:" >&5 | |
4207 | cat conftest.$ac_ext >&5 | |
4208 | rm -rf conftest* | |
5852c051 | 4209 | ac_cv_struct_st_blocks=no |
3a629497 JB |
4210 | fi |
4211 | rm -f conftest* | |
3a629497 | 4212 | fi |
3a629497 | 4213 | |
5852c051 JB |
4214 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 |
4215 | if test $ac_cv_struct_st_blocks = yes; then | |
4216 | cat >> confdefs.h <<\EOF | |
4217 | #define HAVE_ST_BLOCKS 1 | |
4218 | EOF | |
3a629497 | 4219 | |
075edbde | 4220 | fi |
3a629497 | 4221 | |
c1c6aa4b MD |
4222 | echo $ac_n "checking for S_ISLNK in sys/stat.h""... $ac_c" 1>&6 |
4223 | echo "configure:4224: checking for S_ISLNK in sys/stat.h" >&5 | |
4224 | if eval "test \"`echo '$''{'ac_cv_macro_S_ISLNK'+set}'`\" = set"; then | |
4225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4226 | else | |
4227 | cat > conftest.$ac_ext <<EOF | |
4228 | #line 4229 "configure" | |
4229 | #include "confdefs.h" | |
4230 | #include <sys/stat.h> | |
4231 | #ifndef S_ISLNK | |
4232 | #error no S_ISLNK | |
4233 | #endif | |
4234 | EOF | |
4235 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4236 | { (eval echo configure:4237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4237 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
4238 | if test -z "$ac_err"; then | |
4239 | rm -rf conftest* | |
4240 | ac_cv_macro_S_ISLNK=yes | |
4241 | else | |
4242 | echo "$ac_err" >&5 | |
4243 | echo "configure: failed program was:" >&5 | |
4244 | cat conftest.$ac_ext >&5 | |
4245 | rm -rf conftest* | |
4246 | ac_cv_macro_S_ISLNK=no | |
4247 | fi | |
4248 | rm -f conftest* | |
4249 | fi | |
4250 | ||
4251 | echo "$ac_t""$ac_cv_macro_S_ISLNK" 1>&6 | |
4252 | if test $ac_cv_macro_S_ISLNK = yes; then | |
4253 | cat >> confdefs.h <<\EOF | |
4254 | #define HAVE_S_ISLNK 1 | |
4255 | EOF | |
4256 | ||
4257 | fi | |
4258 | ||
5852c051 | 4259 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
c1c6aa4b | 4260 | echo "configure:4261: checking whether struct tm is in sys/time.h or time.h" >&5 |
5852c051 | 4261 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3a629497 JB |
4262 | echo $ac_n "(cached) $ac_c" 1>&6 |
4263 | else | |
5852c051 | 4264 | cat > conftest.$ac_ext <<EOF |
c1c6aa4b | 4265 | #line 4266 "configure" |
3a629497 | 4266 | #include "confdefs.h" |
5852c051 JB |
4267 | #include <sys/types.h> |
4268 | #include <time.h> | |
3a629497 | 4269 | int main() { |
5852c051 | 4270 | struct tm *tp; tp->tm_sec; |
3a629497 JB |
4271 | ; return 0; } |
4272 | EOF | |
c1c6aa4b | 4273 | if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 | 4274 | rm -rf conftest* |
5852c051 | 4275 | ac_cv_struct_tm=time.h |
3a629497 JB |
4276 | else |
4277 | echo "configure: failed program was:" >&5 | |
4278 | cat conftest.$ac_ext >&5 | |
4279 | rm -rf conftest* | |
5852c051 | 4280 | ac_cv_struct_tm=sys/time.h |
3a629497 JB |
4281 | fi |
4282 | rm -f conftest* | |
3a629497 | 4283 | fi |
5852c051 JB |
4284 | |
4285 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
4286 | if test $ac_cv_struct_tm = sys/time.h; then | |
4287 | cat >> confdefs.h <<\EOF | |
4288 | #define TM_IN_SYS_TIME 1 | |
3a629497 JB |
4289 | EOF |
4290 | ||
5852c051 | 4291 | fi |
3a629497 | 4292 | |
5852c051 | 4293 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
c1c6aa4b | 4294 | echo "configure:4295: checking for tm_zone in struct tm" >&5 |
5852c051 JB |
4295 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
4296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a629497 | 4297 | else |
5852c051 | 4298 | cat > conftest.$ac_ext <<EOF |
c1c6aa4b | 4299 | #line 4300 "configure" |
5852c051 JB |
4300 | #include "confdefs.h" |
4301 | #include <sys/types.h> | |
4302 | #include <$ac_cv_struct_tm> | |
4303 | int main() { | |
4304 | struct tm tm; tm.tm_zone; | |
4305 | ; return 0; } | |
4306 | EOF | |
c1c6aa4b | 4307 | if { (eval echo configure:4308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5852c051 JB |
4308 | rm -rf conftest* |
4309 | ac_cv_struct_tm_zone=yes | |
4310 | else | |
4311 | echo "configure: failed program was:" >&5 | |
4312 | cat conftest.$ac_ext >&5 | |
4313 | rm -rf conftest* | |
4314 | ac_cv_struct_tm_zone=no | |
4315 | fi | |
4316 | rm -f conftest* | |
3a629497 JB |
4317 | fi |
4318 | ||
5852c051 JB |
4319 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
4320 | if test "$ac_cv_struct_tm_zone" = yes; then | |
3a629497 | 4321 | cat >> confdefs.h <<\EOF |
5852c051 | 4322 | #define HAVE_TM_ZONE 1 |
3a629497 JB |
4323 | EOF |
4324 | ||
4325 | else | |
5852c051 | 4326 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
c1c6aa4b | 4327 | echo "configure:4328: checking for tzname" >&5 |
5852c051 | 4328 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3a629497 JB |
4329 | echo $ac_n "(cached) $ac_c" 1>&6 |
4330 | else | |
5852c051 | 4331 | cat > conftest.$ac_ext <<EOF |
c1c6aa4b | 4332 | #line 4333 "configure" |
3a629497 | 4333 | #include "confdefs.h" |
5852c051 JB |
4334 | #include <time.h> |
4335 | #ifndef tzname /* For SGI. */ | |
4336 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4337 | #endif | |
3a629497 | 4338 | int main() { |
5852c051 | 4339 | atoi(*tzname); |
3a629497 JB |
4340 | ; return 0; } |
4341 | EOF | |
c1c6aa4b | 4342 | if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a629497 | 4343 | rm -rf conftest* |
5852c051 | 4344 | ac_cv_var_tzname=yes |
3a629497 JB |
4345 | else |
4346 | echo "configure: failed program was:" >&5 | |
4347 | cat conftest.$ac_ext >&5 | |
4348 | rm -rf conftest* | |
5852c051 | 4349 | ac_cv_var_tzname=no |
3a629497 JB |
4350 | fi |
4351 | rm -f conftest* | |
3a629497 | 4352 | fi |
3a629497 | 4353 | |
5852c051 JB |
4354 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
4355 | if test $ac_cv_var_tzname = yes; then | |
4356 | cat >> confdefs.h <<\EOF | |
4357 | #define HAVE_TZNAME 1 | |
4358 | EOF | |
3a629497 | 4359 | |
5852c051 | 4360 | fi |
3a629497 JB |
4361 | fi |
4362 | ||
3a629497 | 4363 | |
5852c051 | 4364 | echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6 |
c1c6aa4b | 4365 | echo "configure:4366: checking whether we need POSIX to get struct utimbuf" >&5 |
5852c051 | 4366 | if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then |
3a629497 JB |
4367 | echo $ac_n "(cached) $ac_c" 1>&6 |
4368 | else | |
4369 | cat > conftest.$ac_ext <<EOF | |
c1c6aa4b | 4370 | #line 4371 "configure" |
3a629497 | 4371 | #include "confdefs.h" |
3a629497 | 4372 | |
5852c051 JB |
4373 | #ifdef __EMX__ |
4374 | #include <sys/utime.h> | |
3a629497 | 4375 | #else |
5852c051 | 4376 | #include <utime.h> |
3a629497 | 4377 | #endif |
5852c051 | 4378 | struct utime blah; |
3a629497 | 4379 | |
3a629497 | 4380 | EOF |
5852c051 | 4381 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
c1c6aa4b | 4382 | { (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9bd368c0 | 4383 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5852c051 | 4384 | if test -z "$ac_err"; then |
3a629497 | 4385 | rm -rf conftest* |
5852c051 | 4386 | guile_cv_struct_utimbuf_needs_posix=no |
3a629497 | 4387 | else |
5852c051 | 4388 | echo "$ac_err" >&5 |
3a629497 JB |
4389 | echo "configure: failed program was:" >&5 |
4390 | cat conftest.$ac_ext >&5 | |
4391 | rm -rf conftest* | |
5852c051 | 4392 | guile_cv_struct_utimbuf_needs_posix=yes |
3a629497 JB |
4393 | fi |
4394 | rm -f conftest* | |
4395 | fi | |
4396 | ||
5852c051 JB |
4397 | echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6 |
4398 | if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then | |
4399 | cat >> confdefs.h <<\EOF | |
4400 | #define UTIMBUF_NEEDS_POSIX 1 | |
3a629497 JB |
4401 | EOF |
4402 | ||
5852c051 | 4403 | fi |
3a629497 JB |
4404 | |
4405 | #-------------------------------------------------------------------- | |
4406 | # | |
4407 | # Which way does the stack grow? | |
4408 | # | |
4409 | #-------------------------------------------------------------------- | |
4410 | ||
4411 | if test "$cross_compiling" = yes; then | |
4412 | echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2 | |
4413 | else | |
4414 | cat > conftest.$ac_ext <<EOF | |
c1c6aa4b | 4415 | #line 4416 "configure" |
3a629497 JB |
4416 | #include "confdefs.h" |
4417 | aux (l) unsigned long l; | |
4418 | { int x; exit (l >= ((unsigned long)&x)); } | |
4419 | main () { int q; aux((unsigned long)&q); } | |
4420 | EOF | |
c1c6aa4b | 4421 | if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3a629497 JB |
4422 | then |
4423 | cat >> confdefs.h <<\EOF | |
4424 | #define SCM_STACK_GROWS_UP 1 | |
4425 | EOF | |
4426 | ||
4427 | else | |
4428 | echo "configure: failed program was:" >&5 | |
4429 | cat conftest.$ac_ext >&5 | |
4430 | fi | |
4431 | rm -fr conftest* | |
4432 | fi | |
4433 | ||
4434 | ||
3a171311 | 4435 | echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6 |
c1c6aa4b | 4436 | echo "configure:4437: checking whether floats fit in longs" >&5 |
3a171311 JB |
4437 | if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then |
4438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4439 | else | |
4440 | if test "$cross_compiling" = yes; then | |
4441 | guile_cv_type_float_fits_long=guess-yes | |
3a629497 JB |
4442 | else |
4443 | cat > conftest.$ac_ext <<EOF | |
c1c6aa4b | 4444 | #line 4445 "configure" |
3a629497 | 4445 | #include "confdefs.h" |
3a171311 | 4446 | main () { exit (sizeof(float) > sizeof(long)); } |
3a629497 | 4447 | EOF |
c1c6aa4b | 4448 | if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3a629497 | 4449 | then |
3a171311 | 4450 | guile_cv_type_float_fits_long=yes |
3a629497 JB |
4451 | else |
4452 | echo "configure: failed program was:" >&5 | |
4453 | cat conftest.$ac_ext >&5 | |
3a171311 JB |
4454 | rm -fr conftest* |
4455 | guile_cv_type_float_fits_long=no | |
3a629497 JB |
4456 | fi |
4457 | rm -fr conftest* | |
4458 | fi | |
4459 | ||
3a171311 JB |
4460 | fi |
4461 | ||
4462 | echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6 | |
4463 | case $guile_cv_type_float_fits_long in | |
4464 | "yes" ) | |
4465 | cat >> confdefs.h <<\EOF | |
4466 | #define SCM_SINGLES 1 | |
4467 | EOF | |
4468 | ||
4469 | ;; | |
4470 | "guess-yes" ) | |
4471 | cat >> confdefs.h <<\EOF | |
4472 | #define SCM_SINGLES 1 | |
4473 | EOF | |
4474 | ||
4475 | echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2 | |
4476 | echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2 | |
4477 | ;; | |
4478 | esac | |
4479 | ||
3a629497 JB |
4480 | |
4481 | echo $ac_n "checking for struct linger""... $ac_c" 1>&6 | |
c1c6aa4b | 4482 | echo "configure:4483: checking for struct linger" >&5 |
3a629497 JB |
4483 | if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then |
4484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4485 | else | |
4486 | cat > conftest.$ac_ext <<EOF | |
c1c6aa4b | 4487 | #line 4488 "configure" |
3a629497 JB |
4488 | #include "confdefs.h" |
4489 | ||
4490 | #include <sys/types.h> | |
4491 | #include <sys/socket.h> | |
4492 | int main() { | |
4493 | struct linger lgr; lgr.l_linger = 100 | |
4494 | ; return 0; } | |
4495 | EOF | |
c1c6aa4b | 4496 | if { (eval echo configure:4497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3a629497 JB |
4497 | rm -rf conftest* |
4498 | scm_cv_struct_linger="yes" | |
4499 | else | |
4500 | echo "configure: failed program was:" >&5 | |
4501 | cat conftest.$ac_ext >&5 | |
4502 | rm -rf conftest* | |
4503 | scm_cv_struct_linger="no" | |
4504 | fi | |
4505 | rm -f conftest* | |
4506 | fi | |
4507 | ||
4508 | echo "$ac_t""$scm_cv_struct_linger" 1>&6 | |
4509 | if test $scm_cv_struct_linger = yes; then | |
4510 | cat >> confdefs.h <<\EOF | |
4511 | #define HAVE_STRUCT_LINGER 1 | |
4512 | EOF | |
4513 | ||
4514 | fi | |
4515 | ||
4516 | #-------------------------------------------------------------------- | |
4517 | # | |
4518 | # How can you violate a stdio abstraction by setting a stream's fd? | |
4519 | # | |
4520 | #-------------------------------------------------------------------- | |
4521 | ||
3a629497 | 4522 | |
3a629497 JB |
4523 | |
4524 | #-------------------------------------------------------------------- | |
4525 | # How to find out whether a FILE structure contains buffered data. | |
4526 | # From Tk we have the following list: | |
4527 | # _cnt: Most UNIX systems | |
fe75dfc5 | 4528 | # __cnt: HPUX and SCO |
3a629497 JB |
4529 | # _r: BSD |
4530 | # readCount: Sprite | |
4531 | # Or, in GNU libc there are two fields, _gptr and _egptr, which | |
4532 | # have to be compared. | |
4533 | # These can also be known as _IO_read_ptr and _IO_read_end. | |
4534 | #-------------------------------------------------------------------- | |
4535 | ||
3a629497 JB |
4536 | |
4537 | #-------------------------------------------------------------------- | |
4538 | # | |
4539 | # Flags for thread support | |
4540 | # | |
4541 | #-------------------------------------------------------------------- | |
4542 | ||
539c89a1 | 4543 | ### What thread package has the user asked for? |
956055a9 GH |
4544 | # Check whether --with-threads or --without-threads was given. |
4545 | if test "${with_threads+set}" = set; then | |
4546 | withval="$with_threads" | |
539c89a1 | 4547 | : |
956055a9 | 4548 | else |
539c89a1 | 4549 | with_threads=no |
956055a9 | 4550 | fi |
956055a9 | 4551 | |
956055a9 | 4552 | |
539c89a1 JB |
4553 | ### Turn $with_threads into either the name of a threads package, like |
4554 | ### `qt', or `no', meaning that threads should not be supported. | |
e0f54bcc | 4555 | echo $ac_n "checking whether to support threads""... $ac_c" 1>&6 |
c1c6aa4b | 4556 | echo "configure:4557: checking whether to support threads" >&5 |
539c89a1 JB |
4557 | case "$with_threads" in |
4558 | "yes" | "qt" | "coop" | "") | |
4559 | with_threads=qt | |
4560 | ;; | |
4561 | "no" ) | |
4562 | ;; | |
4563 | * ) | |
4564 | { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; } | |
4565 | ;; | |
4566 | esac | |
e0f54bcc | 4567 | echo "$ac_t""$with_threads" 1>&6 |
956055a9 | 4568 | |
539c89a1 JB |
4569 | ## Make sure the threads package we've chosen is actually supported on |
4570 | ## the present platform. | |
4571 | case "${with_threads}" in | |
4572 | "qt" ) | |
4573 | ## This configures the QuickThreads package, and sets or clears | |
4574 | ## the THREAD_PACKAGE variable if qthreads don't configure | |
4575 | ## correctly. | |
4576 | ||
7bc24529 | 4577 | |
956055a9 | 4578 | |
b8f08e26 | 4579 | echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6 |
c1c6aa4b | 4580 | echo "configure:4581: checking QuickThreads configuration" >&5 |
539c89a1 JB |
4581 | # How can we refer to the qt source directory from within the qt build |
4582 | # directory? For headers, we can rely on the fact that the qt src | |
4583 | # directory appears in the #include path. | |
4584 | qtsrcdir="`(cd $srcdir; pwd)`/qt" | |
956055a9 | 4585 | |
539c89a1 JB |
4586 | |
4587 | THREAD_PACKAGE=QT | |
47521807 | 4588 | qthread_asflags='' |
539c89a1 JB |
4589 | case "$host" in |
4590 | i[3456]86-*-*) | |
b8f08e26 | 4591 | port_name=i386 |
539c89a1 JB |
4592 | qtmd_h=md/i386.h |
4593 | qtmds_s=md/i386.s | |
4594 | qtmdc_c=md/null.c | |
4595 | qtdmdb_s= | |
47521807 JB |
4596 | case "$host" in |
4597 | *-*-netbsd* ) | |
4598 | ## NetBSD needs to be told to pass the assembly code through | |
4599 | ## the C preprocessor. Other GCC installations seem to do | |
4600 | ## this by default, but NetBSD's doesn't. We could get the | |
4601 | ## same effect by giving the file a name ending with .S | |
4602 | ## instead of .s, but I don't see how to tell automake to do | |
4603 | ## that. | |
4604 | qthread_asflags='-x assembler-with-cpp' | |
4605 | ;; | |
4606 | esac | |
539c89a1 JB |
4607 | ;; |
4608 | mips-sgi-irix[56]*) | |
b8f08e26 | 4609 | port_name=irix |
539c89a1 JB |
4610 | qtmd_h=md/mips.h |
4611 | qtmds_s=md/mips-irix5.s | |
4612 | qtmdc_c=md/null.c | |
4613 | qtdmdb_s=md/mips_b.s | |
4614 | ;; | |
4615 | mips-*-*) | |
b8f08e26 | 4616 | port_name=mips |
539c89a1 JB |
4617 | qtmd_h=md/mips.h |
4618 | qtmds_s=md/mips.s | |
4619 | qtmdc_c=md/null.c | |
4620 | qtdmdb_s=md/mips_b.s | |
4621 | ;; | |
4622 | sparc-*-sunos*) | |
b8f08e26 | 4623 | port_name=sparc-sunos |
539c89a1 JB |
4624 | qtmd_h=md/sparc.h |
4625 | qtmds_s=md/_sparc.s | |
4626 | qtmdc_c=md/null.c | |
4627 | qtdmdb_s=md/_sparc_b.s | |
4628 | ;; | |
4629 | sparc-*-*) | |
b8f08e26 | 4630 | port_name=sparc |
539c89a1 JB |
4631 | qtmd_h=md/sparc.h |
4632 | qtmds_s=md/sparc.s | |
4633 | qtmdc_c=md/null.c | |
4634 | qtdmdb_s=md/sparc_b.s | |
4635 | ;; | |
6681c45f | 4636 | alpha*-*-*) |
b8f08e26 | 4637 | port_name=alpha |
539c89a1 JB |
4638 | qtmd_h=md/axp.h |
4639 | qtmds_s=md/axp.s | |
4640 | qtmdc_c=md/null.c | |
4641 | qtdmdb_s=md/axp_b.s | |
4642 | ;; | |
4643 | *) | |
4644 | echo "Unknown configuration; threads package disabled" | |
4645 | THREAD_PACKAGE="" | |
4646 | ;; | |
4647 | esac | |
4648 | ||
956055a9 | 4649 | |
539c89a1 JB |
4650 | # Did configuration succeed? |
4651 | if test -n "$THREAD_PACKAGE"; then | |
b8f08e26 | 4652 | echo "$ac_t""$port_name" 1>&6 |
539c89a1 JB |
4653 | QTHREAD_LTLIBS=libqthreads.la |
4654 | THREAD_CPPFLAGS="-I$qtsrcdir -I../qt" | |
4655 | THREAD_LIBS_LOCAL="../qt/libqthreads.la" | |
4656 | THREAD_LIBS_INSTALLED="-lqthreads" | |
b8f08e26 MD |
4657 | else |
4658 | echo "$ac_t""none; disabled" 1>&6 | |
539c89a1 | 4659 | fi |
956055a9 | 4660 | |
539c89a1 JB |
4661 | |
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | ||
4669 | ||
47521807 | 4670 | |
3a629497 | 4671 | |
539c89a1 JB |
4672 | ;; |
4673 | esac | |
3a629497 | 4674 | |
539c89a1 JB |
4675 | ## If we're using threads, bring in some other parts of Guile which |
4676 | ## work with them. | |
4677 | if test "${THREAD_PACKAGE}" != "" ; then | |
3a629497 | 4678 | cat >> confdefs.h <<\EOF |
539c89a1 | 4679 | #define USE_THREADS 1 |
3a629497 JB |
4680 | EOF |
4681 | ||
3a629497 | 4682 | |
539c89a1 JB |
4683 | ## Include the Guile thread interface in the library... |
4684 | LIBOBJS="$LIBOBJS threads.o" | |
3a629497 | 4685 | |
539c89a1 JB |
4686 | ## ... and tell it which package to talk to. |
4687 | case "${THREAD_PACKAGE}" in | |
4688 | "QT" ) | |
4689 | cat >> confdefs.h <<\EOF | |
4690 | #define USE_COOP_THREADS 1 | |
3a629497 JB |
4691 | EOF |
4692 | ||
539c89a1 JB |
4693 | ;; |
4694 | * ) | |
4695 | { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; } | |
4696 | ;; | |
4697 | esac | |
86c5044a | 4698 | |
539c89a1 JB |
4699 | ## Bring in scm_internal_select, if appropriate. |
4700 | if test $ac_cv_func_gettimeofday = yes && | |
4701 | test $ac_cv_func_select = yes; then | |
4702 | LIBOBJS="$LIBOBJS iselect.o" | |
4703 | cat >> confdefs.h <<\EOF | |
86c5044a MD |
4704 | #define GUILE_ISELECT 1 |
4705 | EOF | |
4706 | ||
539c89a1 | 4707 | fi |
86c5044a MD |
4708 | fi |
4709 | ||
749c7da1 | 4710 | |
3a629497 JB |
4711 | ## If we're using GCC, ask for aggressive warnings. |
4712 | case "$GCC" in | |
99be3450 | 4713 | yes ) |
b8f08e26 MD |
4714 | ## We had -Wstrict-prototypes in here for a bit, but Guile does too |
4715 | ## much stuff with generic function pointers for that to really be | |
4716 | ## less than exasperating. | |
0a1b8b15 | 4717 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;; |
3a629497 JB |
4718 | esac |
4719 | ||
4720 | for ac_prog in mawk gawk nawk awk | |
4721 | do | |
4722 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4723 | set dummy $ac_prog; ac_word=$2 | |
4724 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
c1c6aa4b | 4725 | echo "configure:4726: checking for $ac_word" >&5 |
3a629497 JB |
4726 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
4727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4728 | else | |
4729 | if test -n "$AWK"; then | |
4730 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4731 | else | |
9bd368c0 MD |
4732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4733 | ac_dummy="$PATH" | |
4734 | for ac_dir in $ac_dummy; do | |
3a629497 JB |
4735 | test -z "$ac_dir" && ac_dir=. |
4736 | if test -f $ac_dir/$ac_word; then | |
4737 | ac_cv_prog_AWK="$ac_prog" | |
4738 | break | |
4739 | fi | |
4740 | done | |
4741 | IFS="$ac_save_ifs" | |
4742 | fi | |
4743 | fi | |
4744 | AWK="$ac_cv_prog_AWK" | |
4745 | if test -n "$AWK"; then | |
4746 | echo "$ac_t""$AWK" 1>&6 | |
4747 | else | |
4748 | echo "$ac_t""no" 1>&6 | |
4749 | fi | |
4750 | ||
4751 | test -n "$AWK" && break | |
4752 | done | |
4753 | ||
4754 | ||
4755 | ## If we're creating a shared library (using libtool!), then we'll | |
4756 | ## need to generate a list of .lo files corresponding to the .o files | |
4757 | ## given in LIBOBJS. We'll call it LIBLOBJS. | |
4758 | LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`" | |
4759 | ||
3a629497 | 4760 | |
3a629497 | 4761 | |
7c86ae05 | 4762 | |
3a629497 | 4763 | |
539c89a1 | 4764 | GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS" |
3a629497 JB |
4765 | |
4766 | ||
539c89a1 | 4767 | GUILE_STAMP="`date`" |
3a629497 JB |
4768 | |
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | trap '' 1 2 15 | |
4774 | cat > confcache <<\EOF | |
4775 | # This file is a shell script that caches the results of configure | |
4776 | # tests run on this system so they can be shared between configure | |
4777 | # scripts and configure runs. It is not useful on other systems. | |
4778 | # If it contains results you don't want to keep, you may remove or edit it. | |
4779 | # | |
4780 | # By default, configure uses ./config.cache as the cache file, | |
4781 | # creating it if it does not exist already. You can give configure | |
4782 | # the --cache-file=FILE option to use a different cache file; that is | |
4783 | # what configure does when it calls configure scripts in | |
4784 | # subdirectories, so they share the cache. | |
4785 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4786 | # config.status only pays attention to the cache file if you give it the | |
4787 | # --recheck option to rerun configure. | |
4788 | # | |
4789 | EOF | |
4790 | # The following way of writing the cache mishandles newlines in values, | |
4791 | # but we know of no workaround that is simple, portable, and efficient. | |
4792 | # So, don't put newlines in cache variables' values. | |
4793 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4794 | # and sets the high bit in the cache file unless we assign to the vars. | |
4795 | (set) 2>&1 | | |
9bd368c0 | 4796 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
3a629497 JB |
4797 | *ac_space=\ *) |
4798 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4799 | # turns \\\\ into \\, and sed turns \\ into \). | |
4800 | sed -n \ | |
4801 | -e "s/'/'\\\\''/g" \ | |
4802 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4803 | ;; | |
4804 | *) | |
4805 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4806 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4807 | ;; | |
4808 | esac >> confcache | |
4809 | if cmp -s $cache_file confcache; then | |
4810 | : | |
4811 | else | |
4812 | if test -w $cache_file; then | |
4813 | echo "updating cache $cache_file" | |
4814 | cat confcache > $cache_file | |
4815 | else | |
4816 | echo "not updating unwritable cache $cache_file" | |
4817 | fi | |
4818 | fi | |
4819 | rm -f confcache | |
4820 | ||
4821 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4822 | ||
4823 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4824 | # Let make expand exec_prefix. | |
4825 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4826 | ||
4827 | # Any assignment to VPATH causes Sun make to only execute | |
4828 | # the first set of double-colon rules, so remove it if not needed. | |
4829 | # If there is a colon in the path, we need to keep it. | |
4830 | if test "x$srcdir" = x.; then | |
4831 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4832 | fi | |
4833 | ||
4834 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4835 | ||
4836 | DEFS=-DHAVE_CONFIG_H | |
4837 | ||
4838 | # Without the "./", some shells look in PATH for config.status. | |
4839 | : ${CONFIG_STATUS=./config.status} | |
4840 | ||
4841 | echo creating $CONFIG_STATUS | |
4842 | rm -f $CONFIG_STATUS | |
4843 | cat > $CONFIG_STATUS <<EOF | |
4844 | #! /bin/sh | |
4845 | # Generated automatically by configure. | |
4846 | # Run this file to recreate the current configuration. | |
4847 | # This directory was configured as follows, | |
4848 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4849 | # | |
4850 | # $0 $ac_configure_args | |
4851 | # | |
4852 | # Compiler output produced by configure, useful for debugging | |
4853 | # configure, is in ./config.log if it exists. | |
4854 | ||
4855 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4856 | for ac_option | |
4857 | do | |
4858 | case "\$ac_option" in | |
4859 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4860 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4861 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4862 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
9bd368c0 | 4863 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
3a629497 JB |
4864 | exit 0 ;; |
4865 | -help | --help | --hel | --he | --h) | |
4866 | echo "\$ac_cs_usage"; exit 0 ;; | |
4867 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4868 | esac | |
4869 | done | |
4870 | ||
4871 | ac_given_srcdir=$srcdir | |
4872 | ac_given_INSTALL="$INSTALL" | |
4873 | ||
0e6d926d | 4874 | trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
3a629497 JB |
4875 | EOF |
4876 | cat >> $CONFIG_STATUS <<EOF | |
4877 | ||
4878 | # Protect against being on the right side of a sed subst in config.status. | |
4879 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4880 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4881 | $ac_vpsub | |
4882 | $extrasub | |
9bd368c0 | 4883 | s%@SHELL@%$SHELL%g |
3a629497 JB |
4884 | s%@CFLAGS@%$CFLAGS%g |
4885 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4886 | s%@CXXFLAGS@%$CXXFLAGS%g | |
9bd368c0 | 4887 | s%@FFLAGS@%$FFLAGS%g |
3a629497 JB |
4888 | s%@DEFS@%$DEFS%g |
4889 | s%@LDFLAGS@%$LDFLAGS%g | |
4890 | s%@LIBS@%$LIBS%g | |
4891 | s%@exec_prefix@%$exec_prefix%g | |
4892 | s%@prefix@%$prefix%g | |
4893 | s%@program_transform_name@%$program_transform_name%g | |
4894 | s%@bindir@%$bindir%g | |
4895 | s%@sbindir@%$sbindir%g | |
4896 | s%@libexecdir@%$libexecdir%g | |
4897 | s%@datadir@%$datadir%g | |
4898 | s%@sysconfdir@%$sysconfdir%g | |
4899 | s%@sharedstatedir@%$sharedstatedir%g | |
4900 | s%@localstatedir@%$localstatedir%g | |
4901 | s%@libdir@%$libdir%g | |
4902 | s%@includedir@%$includedir%g | |
4903 | s%@oldincludedir@%$oldincludedir%g | |
4904 | s%@infodir@%$infodir%g | |
4905 | s%@mandir@%$mandir%g | |
4906 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d5fb9ed8 | 4907 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
9bd368c0 | 4908 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
3a629497 JB |
4909 | s%@PACKAGE@%$PACKAGE%g |
4910 | s%@VERSION@%$VERSION%g | |
4911 | s%@ACLOCAL@%$ACLOCAL%g | |
4912 | s%@AUTOCONF@%$AUTOCONF%g | |
4913 | s%@AUTOMAKE@%$AUTOMAKE%g | |
4914 | s%@AUTOHEADER@%$AUTOHEADER%g | |
4915 | s%@MAKEINFO@%$MAKEINFO%g | |
4916 | s%@SET_MAKE@%$SET_MAKE%g | |
9bd368c0 MD |
4917 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
4918 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
3a629497 | 4919 | s%@MAINT@%$MAINT%g |
0e8a8468 | 4920 | s%@subdirs@%$subdirs%g |
3a629497 JB |
4921 | s%@CC@%$CC%g |
4922 | s%@CPP@%$CPP%g | |
5aadf8c1 MG |
4923 | s%@host@%$host%g |
4924 | s%@host_alias@%$host_alias%g | |
4925 | s%@host_cpu@%$host_cpu%g | |
4926 | s%@host_vendor@%$host_vendor%g | |
4927 | s%@host_os@%$host_os%g | |
1630ea6c JB |
4928 | s%@build@%$build%g |
4929 | s%@build_alias@%$build_alias%g | |
4930 | s%@build_cpu@%$build_cpu%g | |
4931 | s%@build_vendor@%$build_vendor%g | |
4932 | s%@build_os@%$build_os%g | |
5aadf8c1 MG |
4933 | s%@RANLIB@%$RANLIB%g |
4934 | s%@LD@%$LD%g | |
4935 | s%@NM@%$NM%g | |
4936 | s%@LN_S@%$LN_S%g | |
4937 | s%@LIBTOOL@%$LIBTOOL%g | |
3a629497 JB |
4938 | s%@LIBOBJS@%$LIBOBJS%g |
4939 | s%@ALLOCA@%$ALLOCA%g | |
539c89a1 JB |
4940 | s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g |
4941 | s%@qtmd_h@%$qtmd_h%g | |
4942 | s%@qtmds_s@%$qtmds_s%g | |
4943 | s%@qtmdc_c@%$qtmdc_c%g | |
4944 | s%@qtdmdb_s@%$qtdmdb_s%g | |
47521807 | 4945 | s%@qthread_asflags@%$qthread_asflags%g |
539c89a1 JB |
4946 | s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g |
4947 | s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g | |
4948 | s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g | |
4949 | s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g | |
3a629497 | 4950 | s%@AWK@%$AWK%g |
7c86ae05 JB |
4951 | s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g |
4952 | s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g | |
4953 | s%@GUILE_VERSION@%$GUILE_VERSION%g | |
daa4f38c | 4954 | s%@GUILE_LIBS@%$GUILE_LIBS%g |
7c86ae05 | 4955 | s%@GUILE_STAMP@%$GUILE_STAMP%g |
3a629497 | 4956 | s%@LIBLOBJS@%$LIBLOBJS%g |
3a629497 JB |
4957 | |
4958 | CEOF | |
4959 | EOF | |
4960 | ||
4961 | cat >> $CONFIG_STATUS <<\EOF | |
4962 | ||
4963 | # Split the substitutions into bite-sized pieces for seds with | |
4964 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4965 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4966 | ac_file=1 # Number of current file. | |
4967 | ac_beg=1 # First line for current file. | |
4968 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4969 | ac_more_lines=: | |
4970 | ac_sed_cmds="" | |
4971 | while $ac_more_lines; do | |
4972 | if test $ac_beg -gt 1; then | |
4973 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4974 | else | |
4975 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4976 | fi | |
4977 | if test ! -s conftest.s$ac_file; then | |
4978 | ac_more_lines=false | |
4979 | rm -f conftest.s$ac_file | |
4980 | else | |
4981 | if test -z "$ac_sed_cmds"; then | |
4982 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4983 | else | |
4984 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4985 | fi | |
4986 | ac_file=`expr $ac_file + 1` | |
4987 | ac_beg=$ac_end | |
4988 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4989 | fi | |
4990 | done | |
4991 | if test -z "$ac_sed_cmds"; then | |
4992 | ac_sed_cmds=cat | |
4993 | fi | |
4994 | EOF | |
4995 | ||
4996 | cat >> $CONFIG_STATUS <<EOF | |
4997 | ||
0e6d926d | 4998 | CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"} |
3a629497 JB |
4999 | EOF |
5000 | cat >> $CONFIG_STATUS <<\EOF | |
5001 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5002 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5003 | case "$ac_file" in | |
5004 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5005 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5006 | *) ac_file_in="${ac_file}.in" ;; | |
5007 | esac | |
5008 | ||
5009 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
5010 | ||
5011 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5012 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5013 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5014 | # The file is in a subdirectory. | |
5015 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5016 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5017 | # A "../" for each directory in $ac_dir_suffix. | |
5018 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5019 | else | |
5020 | ac_dir_suffix= ac_dots= | |
5021 | fi | |
5022 | ||
5023 | case "$ac_given_srcdir" in | |
5024 | .) srcdir=. | |
5025 | if test -z "$ac_dots"; then top_srcdir=. | |
5026 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
0f2d19dd JB |
5027 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
5028 | *) # Relative path. | |
5029 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5030 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5031 | esac | |
5032 | ||
733943b9 TT |
5033 | case "$ac_given_INSTALL" in |
5034 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5035 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5036 | esac | |
5037 | ||
0f2d19dd JB |
5038 | echo creating "$ac_file" |
5039 | rm -f "$ac_file" | |
5040 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5041 | case "$ac_file" in | |
5042 | *Makefile*) ac_comsub="1i\\ | |
5043 | # $configure_input" ;; | |
5044 | *) ac_comsub= ;; | |
5045 | esac | |
733943b9 TT |
5046 | |
5047 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
0f2d19dd JB |
5048 | sed -e "$ac_comsub |
5049 | s%@configure_input@%$configure_input%g | |
5050 | s%@srcdir@%$srcdir%g | |
5051 | s%@top_srcdir@%$top_srcdir%g | |
733943b9 TT |
5052 | s%@INSTALL@%$INSTALL%g |
5053 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
0f2d19dd | 5054 | fi; done |
733943b9 | 5055 | rm -f conftest.s* |
0f2d19dd | 5056 | |
3a629497 JB |
5057 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
5058 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5059 | # | |
5060 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5061 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5062 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
5063 | ac_dC='\3' | |
5064 | ac_dD='%g' | |
5065 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
5066 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5067 | ac_uB='\([ ]\)%\1#\2define\3' | |
5068 | ac_uC=' ' | |
5069 | ac_uD='\4%g' | |
5070 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5071 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5072 | ac_eB='$%\1#\2define\3' | |
5073 | ac_eC=' ' | |
5074 | ac_eD='%g' | |
5075 | ||
5076 | if test "${CONFIG_HEADERS+set}" != set; then | |
733943b9 TT |
5077 | EOF |
5078 | cat >> $CONFIG_STATUS <<EOF | |
3a629497 | 5079 | CONFIG_HEADERS="libguile/scmconfig.h" |
733943b9 TT |
5080 | EOF |
5081 | cat >> $CONFIG_STATUS <<\EOF | |
3a629497 JB |
5082 | fi |
5083 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
5084 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5085 | case "$ac_file" in | |
5086 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5087 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5088 | *) ac_file_in="${ac_file}.in" ;; | |
5089 | esac | |
0f2d19dd | 5090 | |
3a629497 | 5091 | echo creating $ac_file |
0f2d19dd | 5092 | |
3a629497 JB |
5093 | rm -f conftest.frag conftest.in conftest.out |
5094 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5095 | cat $ac_file_inputs > conftest.in | |
0f2d19dd | 5096 | |
3a629497 | 5097 | EOF |
0f2d19dd | 5098 | |
3a629497 JB |
5099 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
5100 | # the proper values into config.h.in to produce config.h. And first: | |
5101 | # Protect against being on the right side of a sed subst in config.status. | |
5102 | # Protect against being in an unquoted here document in config.status. | |
5103 | rm -f conftest.vals | |
5104 | cat > conftest.hdr <<\EOF | |
5105 | s/[\\&%]/\\&/g | |
5106 | s%[\\$`]%\\&%g | |
5107 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
5108 | s%ac_d%ac_u%gp | |
5109 | s%ac_u%ac_e%gp | |
5110 | EOF | |
5111 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
5112 | rm -f conftest.hdr | |
5113 | ||
5114 | # This sed command replaces #undef with comments. This is necessary, for | |
5115 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
5116 | # on some systems where configure will not decide to define it. | |
5117 | cat >> conftest.vals <<\EOF | |
5118 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
5119 | EOF | |
0f2d19dd | 5120 | |
3a629497 JB |
5121 | # Break up conftest.vals because some shells have a limit on |
5122 | # the size of here documents, and old seds have small limits too. | |
733943b9 | 5123 | |
3a629497 JB |
5124 | rm -f conftest.tail |
5125 | while : | |
5126 | do | |
5127 | ac_lines=`grep -c . conftest.vals` | |
5128 | # grep -c gives empty output for an empty file on some AIX systems. | |
5129 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
5130 | # Write a limited-size here document to conftest.frag. | |
5131 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
5132 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
5133 | echo 'CEOF | |
5134 | sed -f conftest.frag conftest.in > conftest.out | |
5135 | rm -f conftest.in | |
5136 | mv conftest.out conftest.in | |
5137 | ' >> $CONFIG_STATUS | |
5138 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
5139 | rm -f conftest.vals | |
5140 | mv conftest.tail conftest.vals | |
5141 | done | |
5142 | rm -f conftest.vals | |
0f2d19dd | 5143 | |
3a629497 JB |
5144 | cat >> $CONFIG_STATUS <<\EOF |
5145 | rm -f conftest.frag conftest.h | |
5146 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
5147 | cat conftest.in >> conftest.h | |
5148 | rm -f conftest.in | |
5149 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
5150 | echo "$ac_file is unchanged" | |
5151 | rm -f conftest.h | |
5152 | else | |
5153 | # Remove last slash and all that follows it. Not all systems have dirname. | |
5154 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5155 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5156 | # The file is in a subdirectory. | |
5157 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
0f2d19dd | 5158 | fi |
3a629497 JB |
5159 | rm -f $ac_file |
5160 | mv conftest.h $ac_file | |
5161 | fi | |
5162 | fi; done | |
0f2d19dd | 5163 | |
3a629497 JB |
5164 | EOF |
5165 | cat >> $CONFIG_STATUS <<EOF | |
0f2d19dd | 5166 | |
29860306 | 5167 | |
3a629497 JB |
5168 | EOF |
5169 | cat >> $CONFIG_STATUS <<\EOF | |
5170 | test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h | |
5171 | chmod +x libguile/guile-snarf | |
5172 | exit 0 | |
5173 | EOF | |
5174 | chmod +x $CONFIG_STATUS | |
5175 | rm -fr confdefs* $ac_clean_files | |
5176 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
5177 | ||
0e8a8468 MV |
5178 | if test "$no_recursion" != yes; then |
5179 | ||
5180 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
5181 | ac_sub_configure_args= | |
5182 | ac_prev= | |
5183 | for ac_arg in $ac_configure_args; do | |
5184 | if test -n "$ac_prev"; then | |
5185 | ac_prev= | |
5186 | continue | |
5187 | fi | |
5188 | case "$ac_arg" in | |
5189 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
5190 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
5191 | ac_prev=cache_file ;; | |
5192 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
5193 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5194 | ;; | |
5195 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
5196 | ac_prev=srcdir ;; | |
5197 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5198 | ;; | |
5199 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
5200 | esac | |
5201 | done | |
5202 | ||
5203 | for ac_config_dir in guile-readline; do | |
5204 | ||
5205 | # Do not complain, so a configure script can configure whichever | |
5206 | # parts of a large source tree are present. | |
5207 | if test ! -d $srcdir/$ac_config_dir; then | |
5208 | continue | |
5209 | fi | |
5210 | ||
5211 | echo configuring in $ac_config_dir | |
5212 | ||
5213 | case "$srcdir" in | |
5214 | .) ;; | |
5215 | *) | |
5216 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
5217 | else | |
5218 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
5219 | fi | |
5220 | ;; | |
5221 | esac | |
5222 | ||
5223 | ac_popdir=`pwd` | |
5224 | cd $ac_config_dir | |
5225 | ||
5226 | # A "../" for each directory in /$ac_config_dir. | |
5227 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
5228 | ||
5229 | case "$srcdir" in | |
5230 | .) # No --srcdir option. We are building in place. | |
5231 | ac_sub_srcdir=$srcdir ;; | |
5232 | /*) # Absolute path. | |
5233 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
5234 | *) # Relative path. | |
5235 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
5236 | esac | |
5237 | ||
5238 | # Check for guested configure; otherwise get Cygnus style configure. | |
5239 | if test -f $ac_sub_srcdir/configure; then | |
5240 | ac_sub_configure=$ac_sub_srcdir/configure | |
5241 | elif test -f $ac_sub_srcdir/configure.in; then | |
5242 | ac_sub_configure=$ac_configure | |
5243 | else | |
5244 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
5245 | ac_sub_configure= | |
5246 | fi | |
5247 | ||
5248 | # The recursion is here. | |
5249 | if test -n "$ac_sub_configure"; then | |
5250 | ||
5251 | # Make the cache file name correct relative to the subdirectory. | |
5252 | case "$cache_file" in | |
5253 | /*) ac_sub_cache_file=$cache_file ;; | |
5254 | *) # Relative path. | |
5255 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
5256 | esac | |
5257 | case "$ac_given_INSTALL" in | |
5258 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5259 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5260 | esac | |
5261 | ||
5262 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
5263 | # The eval makes quoting arguments work. | |
5264 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
5265 | then : | |
5266 | else | |
5267 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
5268 | fi | |
5269 | fi | |
5270 | ||
5271 | cd $ac_popdir | |
5272 | done | |
5273 | fi | |
5274 | ||
0f2d19dd | 5275 |