1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.12 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_default_prefix=`pwd`/.. |
---|
15 | ac_help="$ac_help |
---|
16 | --without-readline do not use readline for fancy display" |
---|
17 | ac_help="$ac_help |
---|
18 | --without-MP do not use MP (disables MP links)" |
---|
19 | ac_help="$ac_help |
---|
20 | --without-dbm do not use dbm (disables DBM links)" |
---|
21 | ac_help="$ac_help |
---|
22 | --without-info do not use info for help (use buildin help, instead)" |
---|
23 | ac_help="$ac_help |
---|
24 | --without-dld do not use dld (disables dynamic linking)" |
---|
25 | ac_help="$ac_help |
---|
26 | --without-factory do not use factory (disables poly factorization)" |
---|
27 | ac_help="$ac_help |
---|
28 | --without-libfac do not use libfac (disables primary decompositions)" |
---|
29 | ac_help="$ac_help |
---|
30 | \ |
---|
31 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
32 | where PACKAGE can be gmp, smallgmp, or buildin" |
---|
33 | ac_help="$ac_help |
---|
34 | --with-exp_type=TYPE uses TYPE as type of exponents in polynomials |
---|
35 | -- default type is short |
---|
36 | -- possible other types are char and int" |
---|
37 | |
---|
38 | # Initialize some variables set by options. |
---|
39 | # The variables have the same names as the options, with |
---|
40 | # dashes changed to underlines. |
---|
41 | build=NONE |
---|
42 | cache_file=./config.cache |
---|
43 | exec_prefix=NONE |
---|
44 | host=NONE |
---|
45 | no_create= |
---|
46 | nonopt=NONE |
---|
47 | no_recursion= |
---|
48 | prefix=NONE |
---|
49 | program_prefix=NONE |
---|
50 | program_suffix=NONE |
---|
51 | program_transform_name=s,x,x, |
---|
52 | silent= |
---|
53 | site= |
---|
54 | srcdir= |
---|
55 | target=NONE |
---|
56 | verbose= |
---|
57 | x_includes=NONE |
---|
58 | x_libraries=NONE |
---|
59 | bindir='${exec_prefix}/bin' |
---|
60 | sbindir='${exec_prefix}/sbin' |
---|
61 | libexecdir='${exec_prefix}/libexec' |
---|
62 | datadir='${prefix}/share' |
---|
63 | sysconfdir='${prefix}/etc' |
---|
64 | sharedstatedir='${prefix}/com' |
---|
65 | localstatedir='${prefix}/var' |
---|
66 | libdir='${exec_prefix}/lib' |
---|
67 | includedir='${prefix}/include' |
---|
68 | oldincludedir='/usr/include' |
---|
69 | infodir='${prefix}/info' |
---|
70 | mandir='${prefix}/man' |
---|
71 | |
---|
72 | # Initialize some other variables. |
---|
73 | subdirs= |
---|
74 | MFLAGS= MAKEFLAGS= |
---|
75 | # Maximum number of lines to put in a shell here document. |
---|
76 | ac_max_here_lines=12 |
---|
77 | |
---|
78 | ac_prev= |
---|
79 | for ac_option |
---|
80 | do |
---|
81 | |
---|
82 | # If the previous option needs an argument, assign it. |
---|
83 | if test -n "$ac_prev"; then |
---|
84 | eval "$ac_prev=\$ac_option" |
---|
85 | ac_prev= |
---|
86 | continue |
---|
87 | fi |
---|
88 | |
---|
89 | case "$ac_option" in |
---|
90 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
91 | *) ac_optarg= ;; |
---|
92 | esac |
---|
93 | |
---|
94 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
95 | |
---|
96 | case "$ac_option" in |
---|
97 | |
---|
98 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
99 | ac_prev=bindir ;; |
---|
100 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
101 | bindir="$ac_optarg" ;; |
---|
102 | |
---|
103 | -build | --build | --buil | --bui | --bu) |
---|
104 | ac_prev=build ;; |
---|
105 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
106 | build="$ac_optarg" ;; |
---|
107 | |
---|
108 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
109 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
110 | ac_prev=cache_file ;; |
---|
111 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
112 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
113 | cache_file="$ac_optarg" ;; |
---|
114 | |
---|
115 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
116 | ac_prev=datadir ;; |
---|
117 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
118 | | --da=*) |
---|
119 | datadir="$ac_optarg" ;; |
---|
120 | |
---|
121 | -disable-* | --disable-*) |
---|
122 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
123 | # Reject names that are not valid shell variable names. |
---|
124 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
126 | fi |
---|
127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
128 | eval "enable_${ac_feature}=no" ;; |
---|
129 | |
---|
130 | -enable-* | --enable-*) |
---|
131 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
132 | # Reject names that are not valid shell variable names. |
---|
133 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
134 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
135 | fi |
---|
136 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
137 | case "$ac_option" in |
---|
138 | *=*) ;; |
---|
139 | *) ac_optarg=yes ;; |
---|
140 | esac |
---|
141 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
142 | |
---|
143 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
144 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
145 | | --exec | --exe | --ex) |
---|
146 | ac_prev=exec_prefix ;; |
---|
147 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
148 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
149 | | --exec=* | --exe=* | --ex=*) |
---|
150 | exec_prefix="$ac_optarg" ;; |
---|
151 | |
---|
152 | -gas | --gas | --ga | --g) |
---|
153 | # Obsolete; use --with-gas. |
---|
154 | with_gas=yes ;; |
---|
155 | |
---|
156 | -help | --help | --hel | --he) |
---|
157 | # Omit some internal or obsolete options to make the list less imposing. |
---|
158 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
159 | cat << EOF |
---|
160 | Usage: configure [options] [host] |
---|
161 | Options: [defaults in brackets after descriptions] |
---|
162 | Configuration: |
---|
163 | --cache-file=FILE cache test results in FILE |
---|
164 | --help print this message |
---|
165 | --no-create do not create output files |
---|
166 | --quiet, --silent do not print \`checking...' messages |
---|
167 | --version print the version of autoconf that created configure |
---|
168 | Directory and file names: |
---|
169 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
170 | [$ac_default_prefix] |
---|
171 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
172 | [same as prefix] |
---|
173 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
174 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
175 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
176 | --datadir=DIR read-only architecture-independent data in DIR |
---|
177 | [PREFIX/share] |
---|
178 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
179 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
180 | [PREFIX/com] |
---|
181 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
182 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
183 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
184 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
185 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
186 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
187 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
188 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
189 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
190 | --program-transform-name=PROGRAM |
---|
191 | run sed PROGRAM on installed program names |
---|
192 | EOF |
---|
193 | cat << EOF |
---|
194 | Host type: |
---|
195 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
196 | --host=HOST configure for HOST [guessed] |
---|
197 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
198 | Features and packages: |
---|
199 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
200 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
201 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
202 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
203 | --x-includes=DIR X include files are in DIR |
---|
204 | --x-libraries=DIR X library files are in DIR |
---|
205 | EOF |
---|
206 | if test -n "$ac_help"; then |
---|
207 | echo "--enable and --with options recognized:$ac_help" |
---|
208 | fi |
---|
209 | exit 0 ;; |
---|
210 | |
---|
211 | -host | --host | --hos | --ho) |
---|
212 | ac_prev=host ;; |
---|
213 | -host=* | --host=* | --hos=* | --ho=*) |
---|
214 | host="$ac_optarg" ;; |
---|
215 | |
---|
216 | -includedir | --includedir | --includedi | --included | --include \ |
---|
217 | | --includ | --inclu | --incl | --inc) |
---|
218 | ac_prev=includedir ;; |
---|
219 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
220 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
221 | includedir="$ac_optarg" ;; |
---|
222 | |
---|
223 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
224 | ac_prev=infodir ;; |
---|
225 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
226 | infodir="$ac_optarg" ;; |
---|
227 | |
---|
228 | -libdir | --libdir | --libdi | --libd) |
---|
229 | ac_prev=libdir ;; |
---|
230 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
231 | libdir="$ac_optarg" ;; |
---|
232 | |
---|
233 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
234 | | --libexe | --libex | --libe) |
---|
235 | ac_prev=libexecdir ;; |
---|
236 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
237 | | --libexe=* | --libex=* | --libe=*) |
---|
238 | libexecdir="$ac_optarg" ;; |
---|
239 | |
---|
240 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
241 | | --localstate | --localstat | --localsta | --localst \ |
---|
242 | | --locals | --local | --loca | --loc | --lo) |
---|
243 | ac_prev=localstatedir ;; |
---|
244 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
245 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
246 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
247 | localstatedir="$ac_optarg" ;; |
---|
248 | |
---|
249 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
250 | ac_prev=mandir ;; |
---|
251 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
252 | mandir="$ac_optarg" ;; |
---|
253 | |
---|
254 | -nfp | --nfp | --nf) |
---|
255 | # Obsolete; use --without-fp. |
---|
256 | with_fp=no ;; |
---|
257 | |
---|
258 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
259 | | --no-cr | --no-c) |
---|
260 | no_create=yes ;; |
---|
261 | |
---|
262 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
263 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
264 | no_recursion=yes ;; |
---|
265 | |
---|
266 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
267 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
268 | | --oldin | --oldi | --old | --ol | --o) |
---|
269 | ac_prev=oldincludedir ;; |
---|
270 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
271 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
272 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
273 | oldincludedir="$ac_optarg" ;; |
---|
274 | |
---|
275 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
276 | ac_prev=prefix ;; |
---|
277 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
278 | prefix="$ac_optarg" ;; |
---|
279 | |
---|
280 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
281 | | --program-pre | --program-pr | --program-p) |
---|
282 | ac_prev=program_prefix ;; |
---|
283 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
284 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
285 | program_prefix="$ac_optarg" ;; |
---|
286 | |
---|
287 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
288 | | --program-suf | --program-su | --program-s) |
---|
289 | ac_prev=program_suffix ;; |
---|
290 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
291 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
292 | program_suffix="$ac_optarg" ;; |
---|
293 | |
---|
294 | -program-transform-name | --program-transform-name \ |
---|
295 | | --program-transform-nam | --program-transform-na \ |
---|
296 | | --program-transform-n | --program-transform- \ |
---|
297 | | --program-transform | --program-transfor \ |
---|
298 | | --program-transfo | --program-transf \ |
---|
299 | | --program-trans | --program-tran \ |
---|
300 | | --progr-tra | --program-tr | --program-t) |
---|
301 | ac_prev=program_transform_name ;; |
---|
302 | -program-transform-name=* | --program-transform-name=* \ |
---|
303 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
304 | | --program-transform-n=* | --program-transform-=* \ |
---|
305 | | --program-transform=* | --program-transfor=* \ |
---|
306 | | --program-transfo=* | --program-transf=* \ |
---|
307 | | --program-trans=* | --program-tran=* \ |
---|
308 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
309 | program_transform_name="$ac_optarg" ;; |
---|
310 | |
---|
311 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
312 | | -silent | --silent | --silen | --sile | --sil) |
---|
313 | silent=yes ;; |
---|
314 | |
---|
315 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
316 | ac_prev=sbindir ;; |
---|
317 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
318 | | --sbi=* | --sb=*) |
---|
319 | sbindir="$ac_optarg" ;; |
---|
320 | |
---|
321 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
322 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
323 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
324 | | --sha | --sh) |
---|
325 | ac_prev=sharedstatedir ;; |
---|
326 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
327 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
328 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
329 | | --sha=* | --sh=*) |
---|
330 | sharedstatedir="$ac_optarg" ;; |
---|
331 | |
---|
332 | -site | --site | --sit) |
---|
333 | ac_prev=site ;; |
---|
334 | -site=* | --site=* | --sit=*) |
---|
335 | site="$ac_optarg" ;; |
---|
336 | |
---|
337 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
338 | ac_prev=srcdir ;; |
---|
339 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
340 | srcdir="$ac_optarg" ;; |
---|
341 | |
---|
342 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
343 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
344 | ac_prev=sysconfdir ;; |
---|
345 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
346 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
347 | sysconfdir="$ac_optarg" ;; |
---|
348 | |
---|
349 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
350 | ac_prev=target ;; |
---|
351 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
352 | target="$ac_optarg" ;; |
---|
353 | |
---|
354 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
355 | verbose=yes ;; |
---|
356 | |
---|
357 | -version | --version | --versio | --versi | --vers) |
---|
358 | echo "configure generated by autoconf version 2.12" |
---|
359 | exit 0 ;; |
---|
360 | |
---|
361 | -with-* | --with-*) |
---|
362 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
363 | # Reject names that are not valid shell variable names. |
---|
364 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
365 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
366 | fi |
---|
367 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
368 | case "$ac_option" in |
---|
369 | *=*) ;; |
---|
370 | *) ac_optarg=yes ;; |
---|
371 | esac |
---|
372 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
373 | |
---|
374 | -without-* | --without-*) |
---|
375 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
376 | # Reject names that are not valid shell variable names. |
---|
377 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
378 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
379 | fi |
---|
380 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
381 | eval "with_${ac_package}=no" ;; |
---|
382 | |
---|
383 | --x) |
---|
384 | # Obsolete; use --with-x. |
---|
385 | with_x=yes ;; |
---|
386 | |
---|
387 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
388 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
389 | ac_prev=x_includes ;; |
---|
390 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
391 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
392 | x_includes="$ac_optarg" ;; |
---|
393 | |
---|
394 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
395 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
396 | ac_prev=x_libraries ;; |
---|
397 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
398 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
399 | x_libraries="$ac_optarg" ;; |
---|
400 | |
---|
401 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
402 | ;; |
---|
403 | |
---|
404 | *) |
---|
405 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
406 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
407 | fi |
---|
408 | if test "x$nonopt" != xNONE; then |
---|
409 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
410 | fi |
---|
411 | nonopt="$ac_option" |
---|
412 | ;; |
---|
413 | |
---|
414 | esac |
---|
415 | done |
---|
416 | |
---|
417 | if test -n "$ac_prev"; then |
---|
418 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
419 | fi |
---|
420 | |
---|
421 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
422 | |
---|
423 | # File descriptor usage: |
---|
424 | # 0 standard input |
---|
425 | # 1 file creation |
---|
426 | # 2 errors and warnings |
---|
427 | # 3 some systems may open it to /dev/tty |
---|
428 | # 4 used on the Kubota Titan |
---|
429 | # 6 checking for... messages and results |
---|
430 | # 5 compiler messages saved in config.log |
---|
431 | if test "$silent" = yes; then |
---|
432 | exec 6>/dev/null |
---|
433 | else |
---|
434 | exec 6>&1 |
---|
435 | fi |
---|
436 | exec 5>./config.log |
---|
437 | |
---|
438 | echo "\ |
---|
439 | This file contains any messages produced by compilers while |
---|
440 | running configure, to aid debugging if configure makes a mistake. |
---|
441 | " 1>&5 |
---|
442 | |
---|
443 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
444 | # Also quote any args containing shell metacharacters. |
---|
445 | ac_configure_args= |
---|
446 | for ac_arg |
---|
447 | do |
---|
448 | case "$ac_arg" in |
---|
449 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
450 | | --no-cr | --no-c) ;; |
---|
451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
453 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
454 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
455 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
456 | esac |
---|
457 | done |
---|
458 | |
---|
459 | # NLS nuisances. |
---|
460 | # Only set these to C if already set. These must not be set unconditionally |
---|
461 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
462 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
463 | # Non-C LC_CTYPE values break the ctype check. |
---|
464 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
465 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
466 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
467 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
468 | |
---|
469 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
470 | rm -rf conftest* confdefs.h |
---|
471 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
472 | echo > confdefs.h |
---|
473 | |
---|
474 | # A filename unique to this package, relative to the directory that |
---|
475 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
476 | ac_unique_file=matpol.h |
---|
477 | |
---|
478 | # Find the source files, if location was not specified. |
---|
479 | if test -z "$srcdir"; then |
---|
480 | ac_srcdir_defaulted=yes |
---|
481 | # Try the directory containing this script, then its parent. |
---|
482 | ac_prog=$0 |
---|
483 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
484 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
485 | srcdir=$ac_confdir |
---|
486 | if test ! -r $srcdir/$ac_unique_file; then |
---|
487 | srcdir=.. |
---|
488 | fi |
---|
489 | else |
---|
490 | ac_srcdir_defaulted=no |
---|
491 | fi |
---|
492 | if test ! -r $srcdir/$ac_unique_file; then |
---|
493 | if test "$ac_srcdir_defaulted" = yes; then |
---|
494 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
495 | else |
---|
496 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
497 | fi |
---|
498 | fi |
---|
499 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
500 | |
---|
501 | # Prefer explicitly selected file to automatically selected ones. |
---|
502 | if test -z "$CONFIG_SITE"; then |
---|
503 | if test "x$prefix" != xNONE; then |
---|
504 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
505 | else |
---|
506 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
507 | fi |
---|
508 | fi |
---|
509 | for ac_site_file in $CONFIG_SITE; do |
---|
510 | if test -r "$ac_site_file"; then |
---|
511 | echo "loading site script $ac_site_file" |
---|
512 | . "$ac_site_file" |
---|
513 | fi |
---|
514 | done |
---|
515 | |
---|
516 | if test -r "$cache_file"; then |
---|
517 | echo "loading cache $cache_file" |
---|
518 | . $cache_file |
---|
519 | else |
---|
520 | echo "creating cache $cache_file" |
---|
521 | > $cache_file |
---|
522 | fi |
---|
523 | |
---|
524 | ac_ext=c |
---|
525 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
526 | ac_cpp='$CPP $CPPFLAGS' |
---|
527 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
528 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
529 | cross_compiling=$ac_cv_prog_cc_cross |
---|
530 | |
---|
531 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
532 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
533 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
534 | ac_n= ac_c=' |
---|
535 | ' ac_t=' ' |
---|
536 | else |
---|
537 | ac_n=-n ac_c= ac_t= |
---|
538 | fi |
---|
539 | else |
---|
540 | ac_n= ac_c='\c' ac_t= |
---|
541 | fi |
---|
542 | |
---|
543 | |
---|
544 | |
---|
545 | |
---|
546 | SINGULAR_MAJOR_VERSION=1 |
---|
547 | SINGULAR_MINOR_VERSION=1 |
---|
548 | SINGULAR_SUB_VERSION=8 |
---|
549 | VERSION_DATE="April 1998" |
---|
550 | |
---|
551 | |
---|
552 | |
---|
553 | cat >> confdefs.h <<EOF |
---|
554 | #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} |
---|
555 | EOF |
---|
556 | |
---|
557 | cat >> confdefs.h <<EOF |
---|
558 | #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} |
---|
559 | EOF |
---|
560 | |
---|
561 | cat >> confdefs.h <<EOF |
---|
562 | #define S_VERSION1 "version: ${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}" |
---|
563 | EOF |
---|
564 | |
---|
565 | cat >> confdefs.h <<EOF |
---|
566 | #define S_VERSION2 "${VERSION_DATE}" |
---|
567 | EOF |
---|
568 | |
---|
569 | cat >> confdefs.h <<EOF |
---|
570 | #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} |
---|
571 | EOF |
---|
572 | |
---|
573 | |
---|
574 | |
---|
575 | |
---|
576 | if test "x$datadir" = 'x${prefix}/share'; then |
---|
577 | if test "x${prefix}" = xNONE; then |
---|
578 | singulardatadir=${ac_default_prefix}/share/Singular; |
---|
579 | else |
---|
580 | singulardatadir=${prefix}/share/Singular; |
---|
581 | fi |
---|
582 | else |
---|
583 | singulardatadir=${datadir}/Singular; |
---|
584 | fi |
---|
585 | |
---|
586 | if test "x$infodir" = 'x${prefix}/info'; then |
---|
587 | if test "x${prefix}" = xNONE; then |
---|
588 | singularinfodir=${ac_default_prefix}/info; |
---|
589 | else |
---|
590 | singularinfodir=${prefix}/info; |
---|
591 | fi |
---|
592 | else |
---|
593 | singularinfodir=$infodir; |
---|
594 | fi |
---|
595 | |
---|
596 | |
---|
597 | if test "${CXXFLAGS+set}" != set; then |
---|
598 | ac_cxxflags_set=no |
---|
599 | CXXFLAGS="-O" |
---|
600 | fi |
---|
601 | if test "${CFLAGS+set}" != set; then |
---|
602 | CFLAGS="-O" |
---|
603 | ac_cflags_set=no |
---|
604 | fi |
---|
605 | |
---|
606 | # check whether CXX was set by user as env variable |
---|
607 | if test "${CXX+set}" != set; then |
---|
608 | ac_cxx_set=no |
---|
609 | else |
---|
610 | ac_cxx_set=yes |
---|
611 | fi |
---|
612 | |
---|
613 | # Extract the first word of "flex", so it can be a program name with args. |
---|
614 | set dummy flex; ac_word=$2 |
---|
615 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
616 | echo "configure:617: checking for $ac_word" >&5 |
---|
617 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
618 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
619 | else |
---|
620 | if test -n "$LEX"; then |
---|
621 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
622 | else |
---|
623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
624 | for ac_dir in $PATH; do |
---|
625 | test -z "$ac_dir" && ac_dir=. |
---|
626 | if test -f $ac_dir/$ac_word; then |
---|
627 | ac_cv_prog_LEX="flex" |
---|
628 | break |
---|
629 | fi |
---|
630 | done |
---|
631 | IFS="$ac_save_ifs" |
---|
632 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
---|
633 | fi |
---|
634 | fi |
---|
635 | LEX="$ac_cv_prog_LEX" |
---|
636 | if test -n "$LEX"; then |
---|
637 | echo "$ac_t""$LEX" 1>&6 |
---|
638 | else |
---|
639 | echo "$ac_t""no" 1>&6 |
---|
640 | fi |
---|
641 | |
---|
642 | if test -z "$LEXLIB" |
---|
643 | then |
---|
644 | case "$LEX" in |
---|
645 | flex*) ac_lib=fl ;; |
---|
646 | *) ac_lib=l ;; |
---|
647 | esac |
---|
648 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
---|
649 | echo "configure:650: checking for yywrap in -l$ac_lib" >&5 |
---|
650 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
---|
651 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
652 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
653 | else |
---|
654 | ac_save_LIBS="$LIBS" |
---|
655 | LIBS="-l$ac_lib $LIBS" |
---|
656 | cat > conftest.$ac_ext <<EOF |
---|
657 | #line 658 "configure" |
---|
658 | #include "confdefs.h" |
---|
659 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
660 | /* We use char because int might match the return type of a gcc2 |
---|
661 | builtin and then its argument prototype would still apply. */ |
---|
662 | char yywrap(); |
---|
663 | |
---|
664 | int main() { |
---|
665 | yywrap() |
---|
666 | ; return 0; } |
---|
667 | EOF |
---|
668 | if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
669 | rm -rf conftest* |
---|
670 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
671 | else |
---|
672 | echo "configure: failed program was:" >&5 |
---|
673 | cat conftest.$ac_ext >&5 |
---|
674 | rm -rf conftest* |
---|
675 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
676 | fi |
---|
677 | rm -f conftest* |
---|
678 | LIBS="$ac_save_LIBS" |
---|
679 | |
---|
680 | fi |
---|
681 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
682 | echo "$ac_t""yes" 1>&6 |
---|
683 | LEXLIB="-l$ac_lib" |
---|
684 | else |
---|
685 | echo "$ac_t""no" 1>&6 |
---|
686 | fi |
---|
687 | |
---|
688 | fi |
---|
689 | |
---|
690 | # make sure lex accepts -P option |
---|
691 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
692 | echo $ac_n "checking whether ${ac_cv_prog_LEX} accepts -P""... $ac_c" 1>&6 |
---|
693 | echo "configure:694: checking whether ${ac_cv_prog_LEX} accepts -P" >&5 |
---|
694 | if ${ac_cv_prog_LEX} -P < /dev/null 2>&1| grep flag > /dev/null 2>&1; then |
---|
695 | echo "$ac_t""no" 1>&6 |
---|
696 | echo "configure: warning: Can not run ${ac_cv_prog_LEX} with -P; make might fail" 1>&2 |
---|
697 | LEXP=touch |
---|
698 | else |
---|
699 | echo "$ac_t""yes" 1>&6 |
---|
700 | LEXP=${ac_cv_prog_LEX} |
---|
701 | fi |
---|
702 | fi |
---|
703 | |
---|
704 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
705 | set dummy gcc; ac_word=$2 |
---|
706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
707 | echo "configure:708: checking for $ac_word" >&5 |
---|
708 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
709 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
710 | else |
---|
711 | if test -n "$CC"; then |
---|
712 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
713 | else |
---|
714 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
715 | for ac_dir in $PATH; do |
---|
716 | test -z "$ac_dir" && ac_dir=. |
---|
717 | if test -f $ac_dir/$ac_word; then |
---|
718 | ac_cv_prog_CC="gcc" |
---|
719 | break |
---|
720 | fi |
---|
721 | done |
---|
722 | IFS="$ac_save_ifs" |
---|
723 | fi |
---|
724 | fi |
---|
725 | CC="$ac_cv_prog_CC" |
---|
726 | if test -n "$CC"; then |
---|
727 | echo "$ac_t""$CC" 1>&6 |
---|
728 | else |
---|
729 | echo "$ac_t""no" 1>&6 |
---|
730 | fi |
---|
731 | |
---|
732 | if test -z "$CC"; then |
---|
733 | # Extract the first word of "cc", so it can be a program name with args. |
---|
734 | set dummy cc; ac_word=$2 |
---|
735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
736 | echo "configure:737: checking for $ac_word" >&5 |
---|
737 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
738 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
739 | else |
---|
740 | if test -n "$CC"; then |
---|
741 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
742 | else |
---|
743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
744 | ac_prog_rejected=no |
---|
745 | for ac_dir in $PATH; do |
---|
746 | test -z "$ac_dir" && ac_dir=. |
---|
747 | if test -f $ac_dir/$ac_word; then |
---|
748 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
749 | ac_prog_rejected=yes |
---|
750 | continue |
---|
751 | fi |
---|
752 | ac_cv_prog_CC="cc" |
---|
753 | break |
---|
754 | fi |
---|
755 | done |
---|
756 | IFS="$ac_save_ifs" |
---|
757 | if test $ac_prog_rejected = yes; then |
---|
758 | # We found a bogon in the path, so make sure we never use it. |
---|
759 | set dummy $ac_cv_prog_CC |
---|
760 | shift |
---|
761 | if test $# -gt 0; then |
---|
762 | # We chose a different compiler from the bogus one. |
---|
763 | # However, it has the same basename, so the bogon will be chosen |
---|
764 | # first if we set CC to just the basename; use the full file name. |
---|
765 | shift |
---|
766 | set dummy "$ac_dir/$ac_word" "$@" |
---|
767 | shift |
---|
768 | ac_cv_prog_CC="$@" |
---|
769 | fi |
---|
770 | fi |
---|
771 | fi |
---|
772 | fi |
---|
773 | CC="$ac_cv_prog_CC" |
---|
774 | if test -n "$CC"; then |
---|
775 | echo "$ac_t""$CC" 1>&6 |
---|
776 | else |
---|
777 | echo "$ac_t""no" 1>&6 |
---|
778 | fi |
---|
779 | |
---|
780 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
781 | fi |
---|
782 | |
---|
783 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
784 | echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
785 | |
---|
786 | ac_ext=c |
---|
787 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
788 | ac_cpp='$CPP $CPPFLAGS' |
---|
789 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
790 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
791 | cross_compiling=$ac_cv_prog_cc_cross |
---|
792 | |
---|
793 | cat > conftest.$ac_ext <<EOF |
---|
794 | #line 795 "configure" |
---|
795 | #include "confdefs.h" |
---|
796 | main(){return(0);} |
---|
797 | EOF |
---|
798 | if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
799 | ac_cv_prog_cc_works=yes |
---|
800 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
801 | if (./conftest; exit) 2>/dev/null; then |
---|
802 | ac_cv_prog_cc_cross=no |
---|
803 | else |
---|
804 | ac_cv_prog_cc_cross=yes |
---|
805 | fi |
---|
806 | else |
---|
807 | echo "configure: failed program was:" >&5 |
---|
808 | cat conftest.$ac_ext >&5 |
---|
809 | ac_cv_prog_cc_works=no |
---|
810 | fi |
---|
811 | rm -fr conftest* |
---|
812 | |
---|
813 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
814 | if test $ac_cv_prog_cc_works = no; then |
---|
815 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
816 | fi |
---|
817 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
818 | echo "configure:819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
819 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
820 | cross_compiling=$ac_cv_prog_cc_cross |
---|
821 | |
---|
822 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
823 | echo "configure:824: checking whether we are using GNU C" >&5 |
---|
824 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
825 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
826 | else |
---|
827 | cat > conftest.c <<EOF |
---|
828 | #ifdef __GNUC__ |
---|
829 | yes; |
---|
830 | #endif |
---|
831 | EOF |
---|
832 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
833 | ac_cv_prog_gcc=yes |
---|
834 | else |
---|
835 | ac_cv_prog_gcc=no |
---|
836 | fi |
---|
837 | fi |
---|
838 | |
---|
839 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
840 | |
---|
841 | if test $ac_cv_prog_gcc = yes; then |
---|
842 | GCC=yes |
---|
843 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
844 | ac_save_CFLAGS="$CFLAGS" |
---|
845 | CFLAGS= |
---|
846 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
847 | echo "configure:848: checking whether ${CC-cc} accepts -g" >&5 |
---|
848 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
849 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
850 | else |
---|
851 | echo 'void f(){}' > conftest.c |
---|
852 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
853 | ac_cv_prog_cc_g=yes |
---|
854 | else |
---|
855 | ac_cv_prog_cc_g=no |
---|
856 | fi |
---|
857 | rm -f conftest* |
---|
858 | |
---|
859 | fi |
---|
860 | |
---|
861 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
862 | if test "$ac_test_CFLAGS" = set; then |
---|
863 | CFLAGS="$ac_save_CFLAGS" |
---|
864 | elif test $ac_cv_prog_cc_g = yes; then |
---|
865 | CFLAGS="-g -O2" |
---|
866 | else |
---|
867 | CFLAGS="-O2" |
---|
868 | fi |
---|
869 | else |
---|
870 | GCC= |
---|
871 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
872 | fi |
---|
873 | |
---|
874 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
875 | echo "configure:876: checking how to run the C preprocessor" >&5 |
---|
876 | # On Suns, sometimes $CPP names a directory. |
---|
877 | if test -n "$CPP" && test -d "$CPP"; then |
---|
878 | CPP= |
---|
879 | fi |
---|
880 | if test -z "$CPP"; then |
---|
881 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
882 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
883 | else |
---|
884 | # This must be in double quotes, not single quotes, because CPP may get |
---|
885 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
886 | CPP="${CC-cc} -E" |
---|
887 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
888 | # not just through cpp. |
---|
889 | cat > conftest.$ac_ext <<EOF |
---|
890 | #line 891 "configure" |
---|
891 | #include "confdefs.h" |
---|
892 | #include <assert.h> |
---|
893 | Syntax Error |
---|
894 | EOF |
---|
895 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
896 | { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
897 | ac_err=`grep -v '^ *+' conftest.out` |
---|
898 | if test -z "$ac_err"; then |
---|
899 | : |
---|
900 | else |
---|
901 | echo "$ac_err" >&5 |
---|
902 | echo "configure: failed program was:" >&5 |
---|
903 | cat conftest.$ac_ext >&5 |
---|
904 | rm -rf conftest* |
---|
905 | CPP="${CC-cc} -E -traditional-cpp" |
---|
906 | cat > conftest.$ac_ext <<EOF |
---|
907 | #line 908 "configure" |
---|
908 | #include "confdefs.h" |
---|
909 | #include <assert.h> |
---|
910 | Syntax Error |
---|
911 | EOF |
---|
912 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
913 | { (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
914 | ac_err=`grep -v '^ *+' conftest.out` |
---|
915 | if test -z "$ac_err"; then |
---|
916 | : |
---|
917 | else |
---|
918 | echo "$ac_err" >&5 |
---|
919 | echo "configure: failed program was:" >&5 |
---|
920 | cat conftest.$ac_ext >&5 |
---|
921 | rm -rf conftest* |
---|
922 | CPP=/lib/cpp |
---|
923 | fi |
---|
924 | rm -f conftest* |
---|
925 | fi |
---|
926 | rm -f conftest* |
---|
927 | ac_cv_prog_CPP="$CPP" |
---|
928 | fi |
---|
929 | CPP="$ac_cv_prog_CPP" |
---|
930 | else |
---|
931 | ac_cv_prog_CPP="$CPP" |
---|
932 | fi |
---|
933 | echo "$ac_t""$CPP" 1>&6 |
---|
934 | |
---|
935 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
---|
936 | do |
---|
937 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
938 | set dummy $ac_prog; ac_word=$2 |
---|
939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
940 | echo "configure:941: checking for $ac_word" >&5 |
---|
941 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
942 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
943 | else |
---|
944 | if test -n "$CXX"; then |
---|
945 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
946 | else |
---|
947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
948 | for ac_dir in $PATH; do |
---|
949 | test -z "$ac_dir" && ac_dir=. |
---|
950 | if test -f $ac_dir/$ac_word; then |
---|
951 | ac_cv_prog_CXX="$ac_prog" |
---|
952 | break |
---|
953 | fi |
---|
954 | done |
---|
955 | IFS="$ac_save_ifs" |
---|
956 | fi |
---|
957 | fi |
---|
958 | CXX="$ac_cv_prog_CXX" |
---|
959 | if test -n "$CXX"; then |
---|
960 | echo "$ac_t""$CXX" 1>&6 |
---|
961 | else |
---|
962 | echo "$ac_t""no" 1>&6 |
---|
963 | fi |
---|
964 | |
---|
965 | test -n "$CXX" && break |
---|
966 | done |
---|
967 | test -n "$CXX" || CXX="gcc" |
---|
968 | |
---|
969 | |
---|
970 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
971 | echo "configure:972: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
972 | |
---|
973 | ac_ext=C |
---|
974 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
975 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
976 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
977 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
978 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
979 | |
---|
980 | cat > conftest.$ac_ext <<EOF |
---|
981 | #line 982 "configure" |
---|
982 | #include "confdefs.h" |
---|
983 | main(){return(0);} |
---|
984 | EOF |
---|
985 | if { (eval echo configure:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
986 | ac_cv_prog_cxx_works=yes |
---|
987 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
988 | if (./conftest; exit) 2>/dev/null; then |
---|
989 | ac_cv_prog_cxx_cross=no |
---|
990 | else |
---|
991 | ac_cv_prog_cxx_cross=yes |
---|
992 | fi |
---|
993 | else |
---|
994 | echo "configure: failed program was:" >&5 |
---|
995 | cat conftest.$ac_ext >&5 |
---|
996 | ac_cv_prog_cxx_works=no |
---|
997 | fi |
---|
998 | rm -fr conftest* |
---|
999 | ac_ext=c |
---|
1000 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1001 | ac_cpp='$CPP $CPPFLAGS' |
---|
1002 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1003 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1004 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1005 | |
---|
1006 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
1007 | if test $ac_cv_prog_cxx_works = no; then |
---|
1008 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
1009 | fi |
---|
1010 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1011 | echo "configure:1012: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1012 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
1013 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1014 | |
---|
1015 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
1016 | echo "configure:1017: checking whether we are using GNU C++" >&5 |
---|
1017 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
1018 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1019 | else |
---|
1020 | cat > conftest.C <<EOF |
---|
1021 | #ifdef __GNUC__ |
---|
1022 | yes; |
---|
1023 | #endif |
---|
1024 | EOF |
---|
1025 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1026 | ac_cv_prog_gxx=yes |
---|
1027 | else |
---|
1028 | ac_cv_prog_gxx=no |
---|
1029 | fi |
---|
1030 | fi |
---|
1031 | |
---|
1032 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
1033 | |
---|
1034 | if test $ac_cv_prog_gxx = yes; then |
---|
1035 | GXX=yes |
---|
1036 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
1037 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
1038 | CXXFLAGS= |
---|
1039 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
1040 | echo "configure:1041: checking whether ${CXX-g++} accepts -g" >&5 |
---|
1041 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
1042 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1043 | else |
---|
1044 | echo 'void f(){}' > conftest.cc |
---|
1045 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
1046 | ac_cv_prog_cxx_g=yes |
---|
1047 | else |
---|
1048 | ac_cv_prog_cxx_g=no |
---|
1049 | fi |
---|
1050 | rm -f conftest* |
---|
1051 | |
---|
1052 | fi |
---|
1053 | |
---|
1054 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
1055 | if test "$ac_test_CXXFLAGS" = set; then |
---|
1056 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
1057 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
1058 | CXXFLAGS="-g -O2" |
---|
1059 | else |
---|
1060 | CXXFLAGS="-O2" |
---|
1061 | fi |
---|
1062 | else |
---|
1063 | GXX= |
---|
1064 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
1065 | fi |
---|
1066 | |
---|
1067 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1068 | echo "configure:1069: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1069 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
1070 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1071 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1072 | else |
---|
1073 | cat > conftestmake <<\EOF |
---|
1074 | all: |
---|
1075 | @echo 'ac_maketemp="${MAKE}"' |
---|
1076 | EOF |
---|
1077 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1078 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1079 | if test -n "$ac_maketemp"; then |
---|
1080 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1081 | else |
---|
1082 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1083 | fi |
---|
1084 | rm -f conftestmake |
---|
1085 | fi |
---|
1086 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1087 | echo "$ac_t""yes" 1>&6 |
---|
1088 | SET_MAKE= |
---|
1089 | else |
---|
1090 | echo "$ac_t""no" 1>&6 |
---|
1091 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1092 | fi |
---|
1093 | |
---|
1094 | |
---|
1095 | |
---|
1096 | if test "$ac_cv_c_cross" = yes && test "$target" = "i386-unknown-msdos"; then |
---|
1097 | ac_c_cross_dos=yes |
---|
1098 | DOS_CROSS=yes |
---|
1099 | else |
---|
1100 | ac_c_cross_dos=no |
---|
1101 | DOS_CROSS=no |
---|
1102 | fi |
---|
1103 | |
---|
1104 | |
---|
1105 | if test "$ac_c_cross_dos" = yes; then |
---|
1106 | cat >> confdefs.h <<\EOF |
---|
1107 | #define SINGULAR_DATADIR "share\\Singular" |
---|
1108 | EOF |
---|
1109 | |
---|
1110 | cat >> confdefs.h <<\EOF |
---|
1111 | #define SINGULAR_INFODIR "info" |
---|
1112 | EOF |
---|
1113 | |
---|
1114 | else |
---|
1115 | cat >> confdefs.h <<EOF |
---|
1116 | #define SINGULAR_DATADIR "${singulardatadir}" |
---|
1117 | EOF |
---|
1118 | |
---|
1119 | cat >> confdefs.h <<EOF |
---|
1120 | #define SINGULAR_INFODIR "${singularinfodir}" |
---|
1121 | EOF |
---|
1122 | |
---|
1123 | fi |
---|
1124 | |
---|
1125 | |
---|
1126 | |
---|
1127 | if test ${GXX} = yes && test "${ac_cxx_set}" = no; then |
---|
1128 | CXX=gcc |
---|
1129 | fi |
---|
1130 | |
---|
1131 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
1132 | if test "x$exec_prefix" = xNONE; then |
---|
1133 | if test "x$prefix" = xNONE; then |
---|
1134 | LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}" |
---|
1135 | else |
---|
1136 | LDFLAGS="-L${prefix}/lib ${LDFLAGS}" |
---|
1137 | fi |
---|
1138 | else |
---|
1139 | LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" |
---|
1140 | fi |
---|
1141 | else |
---|
1142 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
1143 | fi |
---|
1144 | |
---|
1145 | if test "$includedir" = '${prefix}/include'; then |
---|
1146 | if test "x$prefix" = xNONE; then |
---|
1147 | CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}" |
---|
1148 | else |
---|
1149 | CPPFLAGS="-I${prefix}/include ${CPPFLAGS}" |
---|
1150 | fi |
---|
1151 | else |
---|
1152 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
1153 | fi |
---|
1154 | |
---|
1155 | if test "$with_info" != no; then |
---|
1156 | # Extract the first word of "info", so it can be a program name with args. |
---|
1157 | set dummy info; ac_word=$2 |
---|
1158 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1159 | echo "configure:1160: checking for $ac_word" >&5 |
---|
1160 | if eval "test \"`echo '$''{'ac_cv_prog_INFO'+set}'`\" = set"; then |
---|
1161 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1162 | else |
---|
1163 | if test -n "$INFO"; then |
---|
1164 | ac_cv_prog_INFO="$INFO" # Let the user override the test. |
---|
1165 | else |
---|
1166 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1167 | for ac_dir in $PATH; do |
---|
1168 | test -z "$ac_dir" && ac_dir=. |
---|
1169 | if test -f $ac_dir/$ac_word; then |
---|
1170 | ac_cv_prog_INFO="info" |
---|
1171 | break |
---|
1172 | fi |
---|
1173 | done |
---|
1174 | IFS="$ac_save_ifs" |
---|
1175 | fi |
---|
1176 | fi |
---|
1177 | INFO="$ac_cv_prog_INFO" |
---|
1178 | if test -n "$INFO"; then |
---|
1179 | echo "$ac_t""$INFO" 1>&6 |
---|
1180 | else |
---|
1181 | echo "$ac_t""no" 1>&6 |
---|
1182 | fi |
---|
1183 | |
---|
1184 | if test -n "$INFO"; then |
---|
1185 | cat >> confdefs.h <<\EOF |
---|
1186 | #define HAVE_INFO 1 |
---|
1187 | EOF |
---|
1188 | |
---|
1189 | fi |
---|
1190 | fi |
---|
1191 | |
---|
1192 | # Extract the first word of "perl5", so it can be a program name with args. |
---|
1193 | set dummy perl5; ac_word=$2 |
---|
1194 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1195 | echo "configure:1196: checking for $ac_word" >&5 |
---|
1196 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
1197 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1198 | else |
---|
1199 | if test -n "$PERL"; then |
---|
1200 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
1201 | else |
---|
1202 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
1203 | for ac_dir in $PATH; do |
---|
1204 | test -z "$ac_dir" && ac_dir=. |
---|
1205 | if test -f $ac_dir/$ac_word; then |
---|
1206 | ac_cv_prog_PERL="perl5" |
---|
1207 | break |
---|
1208 | fi |
---|
1209 | done |
---|
1210 | IFS="$ac_save_ifs" |
---|
1211 | test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl" |
---|
1212 | fi |
---|
1213 | fi |
---|
1214 | PERL="$ac_cv_prog_PERL" |
---|
1215 | if test -n "$PERL"; then |
---|
1216 | echo "$ac_t""$PERL" 1>&6 |
---|
1217 | else |
---|
1218 | echo "$ac_t""no" 1>&6 |
---|
1219 | fi |
---|
1220 | |
---|
1221 | |
---|
1222 | # Check whether --with-readline or --without-readline was given. |
---|
1223 | if test "${with_readline+set}" = set; then |
---|
1224 | withval="$with_readline" |
---|
1225 | : |
---|
1226 | fi |
---|
1227 | |
---|
1228 | |
---|
1229 | # Check whether --with-MP or --without-MP was given. |
---|
1230 | if test "${with_MP+set}" = set; then |
---|
1231 | withval="$with_MP" |
---|
1232 | : |
---|
1233 | fi |
---|
1234 | |
---|
1235 | |
---|
1236 | # Check whether --with-dbm or --without-dbm was given. |
---|
1237 | if test "${with_dbm+set}" = set; then |
---|
1238 | withval="$with_dbm" |
---|
1239 | : |
---|
1240 | fi |
---|
1241 | |
---|
1242 | # Check whether --with-info or --without-info was given. |
---|
1243 | if test "${with_info+set}" = set; then |
---|
1244 | withval="$with_info" |
---|
1245 | : |
---|
1246 | fi |
---|
1247 | |
---|
1248 | # Check whether --with-dld or --without-dld was given. |
---|
1249 | if test "${with_dld+set}" = set; then |
---|
1250 | withval="$with_dld" |
---|
1251 | : |
---|
1252 | fi |
---|
1253 | |
---|
1254 | |
---|
1255 | # Check whether --with-factory or --without-factory was given. |
---|
1256 | if test "${with_factory+set}" = set; then |
---|
1257 | withval="$with_factory" |
---|
1258 | : |
---|
1259 | fi |
---|
1260 | |
---|
1261 | |
---|
1262 | # Check whether --with-libfac or --without-libfac was given. |
---|
1263 | if test "${with_libfac+set}" = set; then |
---|
1264 | withval="$with_libfac" |
---|
1265 | : |
---|
1266 | fi |
---|
1267 | |
---|
1268 | # Check whether --with-apint or --without-apint was given. |
---|
1269 | if test "${with_apint+set}" = set; then |
---|
1270 | withval="$with_apint" |
---|
1271 | : |
---|
1272 | fi |
---|
1273 | |
---|
1274 | # Check whether --with-exp_type or --without-exp_type was given. |
---|
1275 | if test "${with_exp_type+set}" = set; then |
---|
1276 | withval="$with_exp_type" |
---|
1277 | : |
---|
1278 | fi |
---|
1279 | |
---|
1280 | |
---|
1281 | |
---|
1282 | echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 |
---|
1283 | echo "configure:1284: checking for atof in -lm" >&5 |
---|
1284 | ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` |
---|
1285 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1286 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1287 | else |
---|
1288 | ac_save_LIBS="$LIBS" |
---|
1289 | LIBS="-lm $LIBS" |
---|
1290 | cat > conftest.$ac_ext <<EOF |
---|
1291 | #line 1292 "configure" |
---|
1292 | #include "confdefs.h" |
---|
1293 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1294 | /* We use char because int might match the return type of a gcc2 |
---|
1295 | builtin and then its argument prototype would still apply. */ |
---|
1296 | char atof(); |
---|
1297 | |
---|
1298 | int main() { |
---|
1299 | atof() |
---|
1300 | ; return 0; } |
---|
1301 | EOF |
---|
1302 | if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1303 | rm -rf conftest* |
---|
1304 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1305 | else |
---|
1306 | echo "configure: failed program was:" >&5 |
---|
1307 | cat conftest.$ac_ext >&5 |
---|
1308 | rm -rf conftest* |
---|
1309 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1310 | fi |
---|
1311 | rm -f conftest* |
---|
1312 | LIBS="$ac_save_LIBS" |
---|
1313 | |
---|
1314 | fi |
---|
1315 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1316 | echo "$ac_t""yes" 1>&6 |
---|
1317 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1318 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1319 | cat >> confdefs.h <<EOF |
---|
1320 | #define $ac_tr_lib 1 |
---|
1321 | EOF |
---|
1322 | |
---|
1323 | LIBS="-lm $LIBS" |
---|
1324 | |
---|
1325 | else |
---|
1326 | echo "$ac_t""no" 1>&6 |
---|
1327 | fi |
---|
1328 | |
---|
1329 | echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 |
---|
1330 | echo "configure:1331: checking for socket in -lbsd" >&5 |
---|
1331 | ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` |
---|
1332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1333 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1334 | else |
---|
1335 | ac_save_LIBS="$LIBS" |
---|
1336 | LIBS="-lbsd $LIBS" |
---|
1337 | cat > conftest.$ac_ext <<EOF |
---|
1338 | #line 1339 "configure" |
---|
1339 | #include "confdefs.h" |
---|
1340 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1341 | /* We use char because int might match the return type of a gcc2 |
---|
1342 | builtin and then its argument prototype would still apply. */ |
---|
1343 | char socket(); |
---|
1344 | |
---|
1345 | int main() { |
---|
1346 | socket() |
---|
1347 | ; return 0; } |
---|
1348 | EOF |
---|
1349 | if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1350 | rm -rf conftest* |
---|
1351 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1352 | else |
---|
1353 | echo "configure: failed program was:" >&5 |
---|
1354 | cat conftest.$ac_ext >&5 |
---|
1355 | rm -rf conftest* |
---|
1356 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1357 | fi |
---|
1358 | rm -f conftest* |
---|
1359 | LIBS="$ac_save_LIBS" |
---|
1360 | |
---|
1361 | fi |
---|
1362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1363 | echo "$ac_t""yes" 1>&6 |
---|
1364 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1365 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1366 | cat >> confdefs.h <<EOF |
---|
1367 | #define $ac_tr_lib 1 |
---|
1368 | EOF |
---|
1369 | |
---|
1370 | LIBS="-lbsd $LIBS" |
---|
1371 | |
---|
1372 | else |
---|
1373 | echo "$ac_t""no" 1>&6 |
---|
1374 | fi |
---|
1375 | |
---|
1376 | echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 |
---|
1377 | echo "configure:1378: checking for listen in -lsocket" >&5 |
---|
1378 | ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` |
---|
1379 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1380 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1381 | else |
---|
1382 | ac_save_LIBS="$LIBS" |
---|
1383 | LIBS="-lsocket $LIBS" |
---|
1384 | cat > conftest.$ac_ext <<EOF |
---|
1385 | #line 1386 "configure" |
---|
1386 | #include "confdefs.h" |
---|
1387 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1388 | /* We use char because int might match the return type of a gcc2 |
---|
1389 | builtin and then its argument prototype would still apply. */ |
---|
1390 | char listen(); |
---|
1391 | |
---|
1392 | int main() { |
---|
1393 | listen() |
---|
1394 | ; return 0; } |
---|
1395 | EOF |
---|
1396 | if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1397 | rm -rf conftest* |
---|
1398 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1399 | else |
---|
1400 | echo "configure: failed program was:" >&5 |
---|
1401 | cat conftest.$ac_ext >&5 |
---|
1402 | rm -rf conftest* |
---|
1403 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1404 | fi |
---|
1405 | rm -f conftest* |
---|
1406 | LIBS="$ac_save_LIBS" |
---|
1407 | |
---|
1408 | fi |
---|
1409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1410 | echo "$ac_t""yes" 1>&6 |
---|
1411 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1412 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1413 | cat >> confdefs.h <<EOF |
---|
1414 | #define $ac_tr_lib 1 |
---|
1415 | EOF |
---|
1416 | |
---|
1417 | LIBS="-lsocket $LIBS" |
---|
1418 | |
---|
1419 | else |
---|
1420 | echo "$ac_t""no" 1>&6 |
---|
1421 | fi |
---|
1422 | |
---|
1423 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
1424 | echo "configure:1425: checking for gethostbyname in -lnsl" >&5 |
---|
1425 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
1426 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1428 | else |
---|
1429 | ac_save_LIBS="$LIBS" |
---|
1430 | LIBS="-lnsl $LIBS" |
---|
1431 | cat > conftest.$ac_ext <<EOF |
---|
1432 | #line 1433 "configure" |
---|
1433 | #include "confdefs.h" |
---|
1434 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1435 | /* We use char because int might match the return type of a gcc2 |
---|
1436 | builtin and then its argument prototype would still apply. */ |
---|
1437 | char gethostbyname(); |
---|
1438 | |
---|
1439 | int main() { |
---|
1440 | gethostbyname() |
---|
1441 | ; return 0; } |
---|
1442 | EOF |
---|
1443 | if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1444 | rm -rf conftest* |
---|
1445 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1446 | else |
---|
1447 | echo "configure: failed program was:" >&5 |
---|
1448 | cat conftest.$ac_ext >&5 |
---|
1449 | rm -rf conftest* |
---|
1450 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1451 | fi |
---|
1452 | rm -f conftest* |
---|
1453 | LIBS="$ac_save_LIBS" |
---|
1454 | |
---|
1455 | fi |
---|
1456 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1457 | echo "$ac_t""yes" 1>&6 |
---|
1458 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1459 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1460 | cat >> confdefs.h <<EOF |
---|
1461 | #define $ac_tr_lib 1 |
---|
1462 | EOF |
---|
1463 | |
---|
1464 | LIBS="-lnsl $LIBS" |
---|
1465 | |
---|
1466 | else |
---|
1467 | echo "$ac_t""no" 1>&6 |
---|
1468 | fi |
---|
1469 | |
---|
1470 | echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6 |
---|
1471 | echo "configure:1472: checking for index in -lucb" >&5 |
---|
1472 | ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'` |
---|
1473 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1474 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1475 | else |
---|
1476 | ac_save_LIBS="$LIBS" |
---|
1477 | LIBS="-lucb $LIBS" |
---|
1478 | cat > conftest.$ac_ext <<EOF |
---|
1479 | #line 1480 "configure" |
---|
1480 | #include "confdefs.h" |
---|
1481 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1482 | /* We use char because int might match the return type of a gcc2 |
---|
1483 | builtin and then its argument prototype would still apply. */ |
---|
1484 | char ; |
---|
1485 | |
---|
1486 | int main() { |
---|
1487 | index() |
---|
1488 | ; return 0; } |
---|
1489 | EOF |
---|
1490 | if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1491 | rm -rf conftest* |
---|
1492 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1493 | else |
---|
1494 | echo "configure: failed program was:" >&5 |
---|
1495 | cat conftest.$ac_ext >&5 |
---|
1496 | rm -rf conftest* |
---|
1497 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1498 | fi |
---|
1499 | rm -f conftest* |
---|
1500 | LIBS="$ac_save_LIBS" |
---|
1501 | |
---|
1502 | fi |
---|
1503 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1504 | echo "$ac_t""yes" 1>&6 |
---|
1505 | ac_tr_lib=HAVE_LIB`echo ucb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1506 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1507 | cat >> confdefs.h <<EOF |
---|
1508 | #define $ac_tr_lib 1 |
---|
1509 | EOF |
---|
1510 | |
---|
1511 | LIBS="-lucb $LIBS" |
---|
1512 | |
---|
1513 | else |
---|
1514 | echo "$ac_t""no" 1>&6 |
---|
1515 | fi |
---|
1516 | |
---|
1517 | |
---|
1518 | if test "$with_readline" != no; then |
---|
1519 | echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
---|
1520 | echo "configure:1521: checking for tgetent in -lncurses" >&5 |
---|
1521 | ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1522 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1523 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1524 | else |
---|
1525 | ac_save_LIBS="$LIBS" |
---|
1526 | LIBS="-lncurses $LIBS" |
---|
1527 | cat > conftest.$ac_ext <<EOF |
---|
1528 | #line 1529 "configure" |
---|
1529 | #include "confdefs.h" |
---|
1530 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1531 | /* We use char because int might match the return type of a gcc2 |
---|
1532 | builtin and then its argument prototype would still apply. */ |
---|
1533 | char tgetent(); |
---|
1534 | |
---|
1535 | int main() { |
---|
1536 | tgetent() |
---|
1537 | ; return 0; } |
---|
1538 | EOF |
---|
1539 | if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1540 | rm -rf conftest* |
---|
1541 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1542 | else |
---|
1543 | echo "configure: failed program was:" >&5 |
---|
1544 | cat conftest.$ac_ext >&5 |
---|
1545 | rm -rf conftest* |
---|
1546 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1547 | fi |
---|
1548 | rm -f conftest* |
---|
1549 | LIBS="$ac_save_LIBS" |
---|
1550 | |
---|
1551 | fi |
---|
1552 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1553 | echo "$ac_t""yes" 1>&6 |
---|
1554 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1555 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1556 | cat >> confdefs.h <<EOF |
---|
1557 | #define $ac_tr_lib 1 |
---|
1558 | EOF |
---|
1559 | |
---|
1560 | LIBS="-lncurses $LIBS" |
---|
1561 | |
---|
1562 | else |
---|
1563 | echo "$ac_t""no" 1>&6 |
---|
1564 | \ |
---|
1565 | echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
---|
1566 | echo "configure:1567: checking for tgetent in -lcurses" >&5 |
---|
1567 | ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1568 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1569 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1570 | else |
---|
1571 | ac_save_LIBS="$LIBS" |
---|
1572 | LIBS="-lcurses $LIBS" |
---|
1573 | cat > conftest.$ac_ext <<EOF |
---|
1574 | #line 1575 "configure" |
---|
1575 | #include "confdefs.h" |
---|
1576 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1577 | /* We use char because int might match the return type of a gcc2 |
---|
1578 | builtin and then its argument prototype would still apply. */ |
---|
1579 | char tgetent(); |
---|
1580 | |
---|
1581 | int main() { |
---|
1582 | tgetent() |
---|
1583 | ; return 0; } |
---|
1584 | EOF |
---|
1585 | if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1586 | rm -rf conftest* |
---|
1587 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1588 | else |
---|
1589 | echo "configure: failed program was:" >&5 |
---|
1590 | cat conftest.$ac_ext >&5 |
---|
1591 | rm -rf conftest* |
---|
1592 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1593 | fi |
---|
1594 | rm -f conftest* |
---|
1595 | LIBS="$ac_save_LIBS" |
---|
1596 | |
---|
1597 | fi |
---|
1598 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1599 | echo "$ac_t""yes" 1>&6 |
---|
1600 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1601 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1602 | cat >> confdefs.h <<EOF |
---|
1603 | #define $ac_tr_lib 1 |
---|
1604 | EOF |
---|
1605 | |
---|
1606 | LIBS="-lcurses $LIBS" |
---|
1607 | |
---|
1608 | else |
---|
1609 | echo "$ac_t""no" 1>&6 |
---|
1610 | \ |
---|
1611 | echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
---|
1612 | echo "configure:1613: checking for tgetent in -ltermcap" >&5 |
---|
1613 | ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1614 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1615 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1616 | else |
---|
1617 | ac_save_LIBS="$LIBS" |
---|
1618 | LIBS="-ltermcap $LIBS" |
---|
1619 | cat > conftest.$ac_ext <<EOF |
---|
1620 | #line 1621 "configure" |
---|
1621 | #include "confdefs.h" |
---|
1622 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1623 | /* We use char because int might match the return type of a gcc2 |
---|
1624 | builtin and then its argument prototype would still apply. */ |
---|
1625 | char tgetent(); |
---|
1626 | |
---|
1627 | int main() { |
---|
1628 | tgetent() |
---|
1629 | ; return 0; } |
---|
1630 | EOF |
---|
1631 | if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1632 | rm -rf conftest* |
---|
1633 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1634 | else |
---|
1635 | echo "configure: failed program was:" >&5 |
---|
1636 | cat conftest.$ac_ext >&5 |
---|
1637 | rm -rf conftest* |
---|
1638 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1639 | fi |
---|
1640 | rm -f conftest* |
---|
1641 | LIBS="$ac_save_LIBS" |
---|
1642 | |
---|
1643 | fi |
---|
1644 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1645 | echo "$ac_t""yes" 1>&6 |
---|
1646 | ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
1647 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1648 | cat >> confdefs.h <<EOF |
---|
1649 | #define $ac_tr_lib 1 |
---|
1650 | EOF |
---|
1651 | |
---|
1652 | LIBS="-ltermcap $LIBS" |
---|
1653 | |
---|
1654 | else |
---|
1655 | echo "$ac_t""no" 1>&6 |
---|
1656 | fi |
---|
1657 | |
---|
1658 | fi |
---|
1659 | |
---|
1660 | fi |
---|
1661 | |
---|
1662 | echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 |
---|
1663 | echo "configure:1664: checking for rl_abort in -lreadline" >&5 |
---|
1664 | ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` |
---|
1665 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1666 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1667 | else |
---|
1668 | ac_save_LIBS="$LIBS" |
---|
1669 | LIBS="-lreadline $LIBS" |
---|
1670 | cat > conftest.$ac_ext <<EOF |
---|
1671 | #line 1672 "configure" |
---|
1672 | #include "confdefs.h" |
---|
1673 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1674 | /* We use char because int might match the return type of a gcc2 |
---|
1675 | builtin and then its argument prototype would still apply. */ |
---|
1676 | char rl_abort(); |
---|
1677 | |
---|
1678 | int main() { |
---|
1679 | rl_abort() |
---|
1680 | ; return 0; } |
---|
1681 | EOF |
---|
1682 | if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1683 | rm -rf conftest* |
---|
1684 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1685 | else |
---|
1686 | echo "configure: failed program was:" >&5 |
---|
1687 | cat conftest.$ac_ext >&5 |
---|
1688 | rm -rf conftest* |
---|
1689 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1690 | fi |
---|
1691 | rm -f conftest* |
---|
1692 | LIBS="$ac_save_LIBS" |
---|
1693 | |
---|
1694 | fi |
---|
1695 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1696 | echo "$ac_t""yes" 1>&6 |
---|
1697 | ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1698 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1699 | cat >> confdefs.h <<EOF |
---|
1700 | #define $ac_tr_lib 1 |
---|
1701 | EOF |
---|
1702 | |
---|
1703 | LIBS="-lreadline $LIBS" |
---|
1704 | |
---|
1705 | else |
---|
1706 | echo "$ac_t""no" 1>&6 |
---|
1707 | fi |
---|
1708 | |
---|
1709 | if test "$ac_cv_lib_readline_rl_abort" = yes; then |
---|
1710 | for ac_hdr in readline/readline.h readline/history.h sys/file.h |
---|
1711 | do |
---|
1712 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
1713 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1714 | echo "configure:1715: checking for $ac_hdr" >&5 |
---|
1715 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1716 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1717 | else |
---|
1718 | cat > conftest.$ac_ext <<EOF |
---|
1719 | #line 1720 "configure" |
---|
1720 | #include "confdefs.h" |
---|
1721 | #include <$ac_hdr> |
---|
1722 | EOF |
---|
1723 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1724 | { (eval echo configure:1725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1725 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1726 | if test -z "$ac_err"; then |
---|
1727 | rm -rf conftest* |
---|
1728 | eval "ac_cv_header_$ac_safe=yes" |
---|
1729 | else |
---|
1730 | echo "$ac_err" >&5 |
---|
1731 | echo "configure: failed program was:" >&5 |
---|
1732 | cat conftest.$ac_ext >&5 |
---|
1733 | rm -rf conftest* |
---|
1734 | eval "ac_cv_header_$ac_safe=no" |
---|
1735 | fi |
---|
1736 | rm -f conftest* |
---|
1737 | fi |
---|
1738 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1739 | echo "$ac_t""yes" 1>&6 |
---|
1740 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
1741 | cat >> confdefs.h <<EOF |
---|
1742 | #define $ac_tr_hdr 1 |
---|
1743 | EOF |
---|
1744 | ac_readline_ok=yes |
---|
1745 | else |
---|
1746 | echo "$ac_t""no" 1>&6 |
---|
1747 | ac_readline_ok=no; break |
---|
1748 | fi |
---|
1749 | done |
---|
1750 | |
---|
1751 | fi |
---|
1752 | if test "$ac_readline_ok" = yes; then |
---|
1753 | cat >> confdefs.h <<\EOF |
---|
1754 | #define HAVE_READLINE 1 |
---|
1755 | EOF |
---|
1756 | |
---|
1757 | else |
---|
1758 | echo "configure: warning: building without readline: disabling fancy display" 1>&2; |
---|
1759 | cat >> confdefs.h <<\EOF |
---|
1760 | #define HAVE_FEREAD 1 |
---|
1761 | EOF |
---|
1762 | |
---|
1763 | fi |
---|
1764 | else |
---|
1765 | cat >> confdefs.h <<\EOF |
---|
1766 | #define HAVE_FEREAD 1 |
---|
1767 | EOF |
---|
1768 | |
---|
1769 | fi |
---|
1770 | |
---|
1771 | if test "$with_dld" = yes; then |
---|
1772 | echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 |
---|
1773 | echo "configure:1774: checking for dld_init in -ldld" >&5 |
---|
1774 | ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` |
---|
1775 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1776 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1777 | else |
---|
1778 | ac_save_LIBS="$LIBS" |
---|
1779 | LIBS="-ldld $LIBS" |
---|
1780 | cat > conftest.$ac_ext <<EOF |
---|
1781 | #line 1782 "configure" |
---|
1782 | #include "confdefs.h" |
---|
1783 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1784 | /* We use char because int might match the return type of a gcc2 |
---|
1785 | builtin and then its argument prototype would still apply. */ |
---|
1786 | char dld_init(); |
---|
1787 | |
---|
1788 | int main() { |
---|
1789 | dld_init() |
---|
1790 | ; return 0; } |
---|
1791 | EOF |
---|
1792 | if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1793 | rm -rf conftest* |
---|
1794 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1795 | else |
---|
1796 | echo "configure: failed program was:" >&5 |
---|
1797 | cat conftest.$ac_ext >&5 |
---|
1798 | rm -rf conftest* |
---|
1799 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1800 | fi |
---|
1801 | rm -f conftest* |
---|
1802 | LIBS="$ac_save_LIBS" |
---|
1803 | |
---|
1804 | fi |
---|
1805 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1806 | echo "$ac_t""yes" 1>&6 |
---|
1807 | \ |
---|
1808 | echo "configure: warning: building without dld: disabling dynamic linking" 1>&2 |
---|
1809 | else |
---|
1810 | echo "$ac_t""no" 1>&6 |
---|
1811 | fi |
---|
1812 | |
---|
1813 | fi |
---|
1814 | |
---|
1815 | NEED_LIBS=$LIBS |
---|
1816 | |
---|
1817 | echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6 |
---|
1818 | echo "configure:1819: checking for mpq_init in -lgmp" >&5 |
---|
1819 | ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'` |
---|
1820 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1821 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1822 | else |
---|
1823 | ac_save_LIBS="$LIBS" |
---|
1824 | LIBS="-lgmp $LIBS" |
---|
1825 | cat > conftest.$ac_ext <<EOF |
---|
1826 | #line 1827 "configure" |
---|
1827 | #include "confdefs.h" |
---|
1828 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1829 | /* We use char because int might match the return type of a gcc2 |
---|
1830 | builtin and then its argument prototype would still apply. */ |
---|
1831 | char mpq_init(); |
---|
1832 | |
---|
1833 | int main() { |
---|
1834 | mpq_init() |
---|
1835 | ; return 0; } |
---|
1836 | EOF |
---|
1837 | if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1838 | rm -rf conftest* |
---|
1839 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1840 | else |
---|
1841 | echo "configure: failed program was:" >&5 |
---|
1842 | cat conftest.$ac_ext >&5 |
---|
1843 | rm -rf conftest* |
---|
1844 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1845 | fi |
---|
1846 | rm -f conftest* |
---|
1847 | LIBS="$ac_save_LIBS" |
---|
1848 | |
---|
1849 | fi |
---|
1850 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1851 | echo "$ac_t""yes" 1>&6 |
---|
1852 | ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1853 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1854 | cat >> confdefs.h <<EOF |
---|
1855 | #define $ac_tr_lib 1 |
---|
1856 | EOF |
---|
1857 | |
---|
1858 | LIBS="-lgmp $LIBS" |
---|
1859 | |
---|
1860 | else |
---|
1861 | echo "$ac_t""no" 1>&6 |
---|
1862 | fi |
---|
1863 | |
---|
1864 | if test "ac_cv_lib_gmp_mpq_init" = yes && test "$with-apint" = smallgmp; then |
---|
1865 | LIBS=NEED_LIBS |
---|
1866 | fi |
---|
1867 | echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6 |
---|
1868 | echo "configure:1869: checking for mpz_init in -lsmallgmp" >&5 |
---|
1869 | ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'` |
---|
1870 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1871 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1872 | else |
---|
1873 | ac_save_LIBS="$LIBS" |
---|
1874 | LIBS="-lsmallgmp $LIBS" |
---|
1875 | cat > conftest.$ac_ext <<EOF |
---|
1876 | #line 1877 "configure" |
---|
1877 | #include "confdefs.h" |
---|
1878 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1879 | /* We use char because int might match the return type of a gcc2 |
---|
1880 | builtin and then its argument prototype would still apply. */ |
---|
1881 | char mpz_init(); |
---|
1882 | |
---|
1883 | int main() { |
---|
1884 | mpz_init() |
---|
1885 | ; return 0; } |
---|
1886 | EOF |
---|
1887 | if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1888 | rm -rf conftest* |
---|
1889 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1890 | else |
---|
1891 | echo "configure: failed program was:" >&5 |
---|
1892 | cat conftest.$ac_ext >&5 |
---|
1893 | rm -rf conftest* |
---|
1894 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1895 | fi |
---|
1896 | rm -f conftest* |
---|
1897 | LIBS="$ac_save_LIBS" |
---|
1898 | |
---|
1899 | fi |
---|
1900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1901 | echo "$ac_t""yes" 1>&6 |
---|
1902 | ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1903 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1904 | cat >> confdefs.h <<EOF |
---|
1905 | #define $ac_tr_lib 1 |
---|
1906 | EOF |
---|
1907 | |
---|
1908 | LIBS="-lsmallgmp $LIBS" |
---|
1909 | |
---|
1910 | else |
---|
1911 | echo "$ac_t""no" 1>&6 |
---|
1912 | fi |
---|
1913 | |
---|
1914 | echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 |
---|
1915 | echo "configure:1916: checking for IMP_PutGmpInt in -lMP" >&5 |
---|
1916 | ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` |
---|
1917 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1918 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1919 | else |
---|
1920 | ac_save_LIBS="$LIBS" |
---|
1921 | LIBS="-lMP $LIBS" |
---|
1922 | cat > conftest.$ac_ext <<EOF |
---|
1923 | #line 1924 "configure" |
---|
1924 | #include "confdefs.h" |
---|
1925 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1926 | /* We use char because int might match the return type of a gcc2 |
---|
1927 | builtin and then its argument prototype would still apply. */ |
---|
1928 | char IMP_PutGmpInt(); |
---|
1929 | |
---|
1930 | int main() { |
---|
1931 | IMP_PutGmpInt() |
---|
1932 | ; return 0; } |
---|
1933 | EOF |
---|
1934 | if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1935 | rm -rf conftest* |
---|
1936 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1937 | else |
---|
1938 | echo "configure: failed program was:" >&5 |
---|
1939 | cat conftest.$ac_ext >&5 |
---|
1940 | rm -rf conftest* |
---|
1941 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1942 | fi |
---|
1943 | rm -f conftest* |
---|
1944 | LIBS="$ac_save_LIBS" |
---|
1945 | |
---|
1946 | fi |
---|
1947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1948 | echo "$ac_t""yes" 1>&6 |
---|
1949 | ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1950 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1951 | cat >> confdefs.h <<EOF |
---|
1952 | #define $ac_tr_lib 1 |
---|
1953 | EOF |
---|
1954 | |
---|
1955 | LIBS="-lMP $LIBS" |
---|
1956 | |
---|
1957 | else |
---|
1958 | echo "$ac_t""no" 1>&6 |
---|
1959 | fi |
---|
1960 | |
---|
1961 | echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 |
---|
1962 | echo "configure:1963: checking for MPT_GetTree in -lMPT" >&5 |
---|
1963 | ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` |
---|
1964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1965 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1966 | else |
---|
1967 | ac_save_LIBS="$LIBS" |
---|
1968 | LIBS="-lMPT $LIBS" |
---|
1969 | cat > conftest.$ac_ext <<EOF |
---|
1970 | #line 1971 "configure" |
---|
1971 | #include "confdefs.h" |
---|
1972 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1973 | /* We use char because int might match the return type of a gcc2 |
---|
1974 | builtin and then its argument prototype would still apply. */ |
---|
1975 | char MPT_GetTree(); |
---|
1976 | |
---|
1977 | int main() { |
---|
1978 | MPT_GetTree() |
---|
1979 | ; return 0; } |
---|
1980 | EOF |
---|
1981 | if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
1982 | rm -rf conftest* |
---|
1983 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1984 | else |
---|
1985 | echo "configure: failed program was:" >&5 |
---|
1986 | cat conftest.$ac_ext >&5 |
---|
1987 | rm -rf conftest* |
---|
1988 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1989 | fi |
---|
1990 | rm -f conftest* |
---|
1991 | LIBS="$ac_save_LIBS" |
---|
1992 | |
---|
1993 | fi |
---|
1994 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1995 | echo "$ac_t""yes" 1>&6 |
---|
1996 | ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1997 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1998 | cat >> confdefs.h <<EOF |
---|
1999 | #define $ac_tr_lib 1 |
---|
2000 | EOF |
---|
2001 | |
---|
2002 | LIBS="-lMPT $LIBS" |
---|
2003 | |
---|
2004 | else |
---|
2005 | echo "$ac_t""no" 1>&6 |
---|
2006 | fi |
---|
2007 | |
---|
2008 | echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 |
---|
2009 | echo "configure:2010: checking for atof in -lsingcf" >&5 |
---|
2010 | ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` |
---|
2011 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2012 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2013 | else |
---|
2014 | ac_save_LIBS="$LIBS" |
---|
2015 | LIBS="-lsingcf $LIBS" |
---|
2016 | cat > conftest.$ac_ext <<EOF |
---|
2017 | #line 2018 "configure" |
---|
2018 | #include "confdefs.h" |
---|
2019 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2020 | /* We use char because int might match the return type of a gcc2 |
---|
2021 | builtin and then its argument prototype would still apply. */ |
---|
2022 | char atof(); |
---|
2023 | |
---|
2024 | int main() { |
---|
2025 | atof() |
---|
2026 | ; return 0; } |
---|
2027 | EOF |
---|
2028 | if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2029 | rm -rf conftest* |
---|
2030 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2031 | else |
---|
2032 | echo "configure: failed program was:" >&5 |
---|
2033 | cat conftest.$ac_ext >&5 |
---|
2034 | rm -rf conftest* |
---|
2035 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2036 | fi |
---|
2037 | rm -f conftest* |
---|
2038 | LIBS="$ac_save_LIBS" |
---|
2039 | |
---|
2040 | fi |
---|
2041 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2042 | echo "$ac_t""yes" 1>&6 |
---|
2043 | ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2044 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2045 | cat >> confdefs.h <<EOF |
---|
2046 | #define $ac_tr_lib 1 |
---|
2047 | EOF |
---|
2048 | |
---|
2049 | LIBS="-lsingcf $LIBS" |
---|
2050 | |
---|
2051 | else |
---|
2052 | echo "$ac_t""no" 1>&6 |
---|
2053 | fi |
---|
2054 | |
---|
2055 | echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 |
---|
2056 | echo "configure:2057: checking for atof in -lsingfac" >&5 |
---|
2057 | ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` |
---|
2058 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2059 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2060 | else |
---|
2061 | ac_save_LIBS="$LIBS" |
---|
2062 | LIBS="-lsingfac $LIBS" |
---|
2063 | cat > conftest.$ac_ext <<EOF |
---|
2064 | #line 2065 "configure" |
---|
2065 | #include "confdefs.h" |
---|
2066 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2067 | /* We use char because int might match the return type of a gcc2 |
---|
2068 | builtin and then its argument prototype would still apply. */ |
---|
2069 | char atof(); |
---|
2070 | |
---|
2071 | int main() { |
---|
2072 | atof() |
---|
2073 | ; return 0; } |
---|
2074 | EOF |
---|
2075 | if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2076 | rm -rf conftest* |
---|
2077 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2078 | else |
---|
2079 | echo "configure: failed program was:" >&5 |
---|
2080 | cat conftest.$ac_ext >&5 |
---|
2081 | rm -rf conftest* |
---|
2082 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2083 | fi |
---|
2084 | rm -f conftest* |
---|
2085 | LIBS="$ac_save_LIBS" |
---|
2086 | |
---|
2087 | fi |
---|
2088 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2089 | echo "$ac_t""yes" 1>&6 |
---|
2090 | ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2091 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2092 | cat >> confdefs.h <<EOF |
---|
2093 | #define $ac_tr_lib 1 |
---|
2094 | EOF |
---|
2095 | |
---|
2096 | LIBS="-lsingfac $LIBS" |
---|
2097 | |
---|
2098 | else |
---|
2099 | echo "$ac_t""no" 1>&6 |
---|
2100 | fi |
---|
2101 | |
---|
2102 | |
---|
2103 | for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h |
---|
2104 | do |
---|
2105 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2106 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2107 | echo "configure:2108: checking for $ac_hdr" >&5 |
---|
2108 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2109 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2110 | else |
---|
2111 | cat > conftest.$ac_ext <<EOF |
---|
2112 | #line 2113 "configure" |
---|
2113 | #include "confdefs.h" |
---|
2114 | #include <$ac_hdr> |
---|
2115 | EOF |
---|
2116 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2117 | { (eval echo configure:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2118 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2119 | if test -z "$ac_err"; then |
---|
2120 | rm -rf conftest* |
---|
2121 | eval "ac_cv_header_$ac_safe=yes" |
---|
2122 | else |
---|
2123 | echo "$ac_err" >&5 |
---|
2124 | echo "configure: failed program was:" >&5 |
---|
2125 | cat conftest.$ac_ext >&5 |
---|
2126 | rm -rf conftest* |
---|
2127 | eval "ac_cv_header_$ac_safe=no" |
---|
2128 | fi |
---|
2129 | rm -f conftest* |
---|
2130 | fi |
---|
2131 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2132 | echo "$ac_t""yes" 1>&6 |
---|
2133 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2134 | cat >> confdefs.h <<EOF |
---|
2135 | #define $ac_tr_hdr 1 |
---|
2136 | EOF |
---|
2137 | |
---|
2138 | else |
---|
2139 | echo "$ac_t""no" 1>&6 |
---|
2140 | fi |
---|
2141 | done |
---|
2142 | |
---|
2143 | |
---|
2144 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
2145 | test "$ac_cv_header_gmp_h" = yes; then |
---|
2146 | ac_gmp_ok=yes |
---|
2147 | fi |
---|
2148 | |
---|
2149 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
2150 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
2151 | test "$ac_cv_header_gmp_h" = yes; then |
---|
2152 | ac_smallgmp_ok=yes |
---|
2153 | fi |
---|
2154 | |
---|
2155 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
2156 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
2157 | test "$ac_cv_header_MP_h" = yes && \ |
---|
2158 | test "$ac_cv_header_MPT_h" = yes; then |
---|
2159 | ac_MP_ok=yes |
---|
2160 | fi |
---|
2161 | |
---|
2162 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
2163 | test "$ac_cv_header_factory_h" = yes; then |
---|
2164 | ac_factory_ok=yes |
---|
2165 | fi |
---|
2166 | |
---|
2167 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
2168 | test "$ac_cv_header_factor_h" = yes; then |
---|
2169 | ac_libfac_ok=yes |
---|
2170 | fi |
---|
2171 | |
---|
2172 | if test "$with_apint" != buildin; then |
---|
2173 | if test "$with_apint" = gmp; then |
---|
2174 | if test "$ac_gmp_ok" = yes; then |
---|
2175 | ac_will_have_gmp=yes |
---|
2176 | elif test "$enable_gmp" = yes; then |
---|
2177 | ac_will_have_gmp=yes |
---|
2178 | echo "configure: warning: install gmp before making Singular" 1>&2 |
---|
2179 | else |
---|
2180 | { echo "configure: error: Can not use with gmp: lib/header not found" 1>&2; exit 1; } |
---|
2181 | fi |
---|
2182 | elif test "$with_apint" = smallgmp; then |
---|
2183 | if test "$ac_smallgmp_ok" = yes; then |
---|
2184 | ac_will_have_gmp=yes |
---|
2185 | ac_will_have_smallgmp=yes |
---|
2186 | elif test "$enable_smallgmp" = yes; then |
---|
2187 | ac_will_have_gmp=yes |
---|
2188 | ac_will_have_smallgmp=yes |
---|
2189 | echo "configure: warning: install smallgmp before making Singular" 1>&2 |
---|
2190 | else |
---|
2191 | { echo "configure: error: Can not use with smallgmp: lib/header not found" 1>&2; exit 1; } |
---|
2192 | fi |
---|
2193 | elif test "$ac_gmp_ok" = yes; then |
---|
2194 | ac_will_have_gmp=yes |
---|
2195 | elif test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then |
---|
2196 | ac_will_have_gmp=yes |
---|
2197 | ac_will_have_smallgmp=yes |
---|
2198 | elif test "$enable_gmp" = yes; then |
---|
2199 | ac_will_have_gmp=yes |
---|
2200 | fi |
---|
2201 | fi |
---|
2202 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
2203 | echo "configure:2204: checking which apint package to use" >&5 |
---|
2204 | if test "$ac_will_have_gmp" = yes; then |
---|
2205 | cat >> confdefs.h <<\EOF |
---|
2206 | #define HAVE_GMP 1 |
---|
2207 | EOF |
---|
2208 | |
---|
2209 | if test "$ac_will_have_smallgmp" = yes; then |
---|
2210 | NEED_LIBS="-lsmallgmp ${NEED_LIBS}" |
---|
2211 | echo "$ac_t""smallgmp" 1>&6 |
---|
2212 | cat >> confdefs.h <<\EOF |
---|
2213 | #define HAVE_SMALLGMP 1 |
---|
2214 | EOF |
---|
2215 | |
---|
2216 | else |
---|
2217 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
2218 | echo "$ac_t""gmp" 1>&6 |
---|
2219 | fi |
---|
2220 | else |
---|
2221 | echo "$ac_t""buildin" 1>&6 |
---|
2222 | fi |
---|
2223 | |
---|
2224 | WITH_MP=no |
---|
2225 | if test "$with_MP" != no; then |
---|
2226 | if test "$ac_will_have_gmp" != yes; then |
---|
2227 | echo "configure: warning: Need gmp to build with MP" 1>&2 |
---|
2228 | else |
---|
2229 | if test "$ac_MP_ok" = yes; then |
---|
2230 | WITH_MP=yes |
---|
2231 | elif test "$enable_MP" = yes; then |
---|
2232 | WITH_MP=yes |
---|
2233 | echo "configure: warning: Install MP before making Singular" 1>&2 |
---|
2234 | else |
---|
2235 | echo "configure: warning: Need MP library to build with MP" 1>&2 |
---|
2236 | fi |
---|
2237 | fi |
---|
2238 | fi |
---|
2239 | echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 |
---|
2240 | echo "configure:2241: checking whether to use with MP" >&5 |
---|
2241 | |
---|
2242 | if test "$WITH_MP" = yes; then |
---|
2243 | cat >> confdefs.h <<\EOF |
---|
2244 | #define HAVE_MPSR 1 |
---|
2245 | EOF |
---|
2246 | |
---|
2247 | NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" |
---|
2248 | echo "$ac_t""yes" 1>&6 |
---|
2249 | else |
---|
2250 | echo "$ac_t""no" 1>&6 |
---|
2251 | fi |
---|
2252 | |
---|
2253 | WITH_FACTORY=no |
---|
2254 | if test "$with_factory" != no; then |
---|
2255 | if test "$ac_will_have_gmp" != yes; then |
---|
2256 | echo "configure: warning: Need gmp to build with factory" 1>&2 |
---|
2257 | else |
---|
2258 | if test "$ac_factory_ok" = yes; then |
---|
2259 | WITH_FACTORY=yes |
---|
2260 | elif test "$enable_factory" = yes; then |
---|
2261 | WITH_FACTORY=yes |
---|
2262 | echo "configure: warning: Install factory before making Singular" 1>&2 |
---|
2263 | else |
---|
2264 | echo "configure: warning: Need factory library to build with factory" 1>&2 |
---|
2265 | fi |
---|
2266 | fi |
---|
2267 | fi |
---|
2268 | echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 |
---|
2269 | echo "configure:2270: checking whether to use with factory" >&5 |
---|
2270 | |
---|
2271 | if test "$WITH_FACTORY" = yes; then |
---|
2272 | cat >> confdefs.h <<\EOF |
---|
2273 | #define HAVE_FACTORY 1 |
---|
2274 | EOF |
---|
2275 | |
---|
2276 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
2277 | echo "$ac_t""yes" 1>&6 |
---|
2278 | else |
---|
2279 | echo "$ac_t""no" 1>&6 |
---|
2280 | fi |
---|
2281 | |
---|
2282 | WITH_LIBFAC=no |
---|
2283 | if test "$with_libfac" != no; then |
---|
2284 | if test "$WITH_FACTORY" != yes; then |
---|
2285 | echo "configure: warning: Need factory to build with libfac" 1>&2 |
---|
2286 | else |
---|
2287 | if test "$ac_libfac_ok" = yes; then |
---|
2288 | WITH_LIBFAC=yes |
---|
2289 | elif test "$enable_libfac" = yes; then |
---|
2290 | WITH_LIBFAC=yes |
---|
2291 | echo "configure: warning: Install libfac before making Singular" 1>&2 |
---|
2292 | else |
---|
2293 | echo "configure: warning: Need libfac library to build with libfac" 1>&2 |
---|
2294 | fi |
---|
2295 | fi |
---|
2296 | fi |
---|
2297 | echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 |
---|
2298 | echo "configure:2299: checking whether to use with libfac" >&5 |
---|
2299 | |
---|
2300 | if test "$WITH_LIBFAC" = yes; then |
---|
2301 | cat >> confdefs.h <<\EOF |
---|
2302 | #define HAVE_LIBFAC_P 1 |
---|
2303 | EOF |
---|
2304 | |
---|
2305 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
2306 | echo "$ac_t""yes" 1>&6 |
---|
2307 | else |
---|
2308 | echo "$ac_t""no" 1>&6 |
---|
2309 | fi |
---|
2310 | |
---|
2311 | |
---|
2312 | |
---|
2313 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
2314 | echo "configure:2315: checking for ANSI C header files" >&5 |
---|
2315 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
2316 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2317 | else |
---|
2318 | cat > conftest.$ac_ext <<EOF |
---|
2319 | #line 2320 "configure" |
---|
2320 | #include "confdefs.h" |
---|
2321 | #include <stdlib.h> |
---|
2322 | #include <stdarg.h> |
---|
2323 | #include <string.h> |
---|
2324 | #include <float.h> |
---|
2325 | EOF |
---|
2326 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2327 | { (eval echo configure:2328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2328 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2329 | if test -z "$ac_err"; then |
---|
2330 | rm -rf conftest* |
---|
2331 | ac_cv_header_stdc=yes |
---|
2332 | else |
---|
2333 | echo "$ac_err" >&5 |
---|
2334 | echo "configure: failed program was:" >&5 |
---|
2335 | cat conftest.$ac_ext >&5 |
---|
2336 | rm -rf conftest* |
---|
2337 | ac_cv_header_stdc=no |
---|
2338 | fi |
---|
2339 | rm -f conftest* |
---|
2340 | |
---|
2341 | if test $ac_cv_header_stdc = yes; then |
---|
2342 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2343 | cat > conftest.$ac_ext <<EOF |
---|
2344 | #line 2345 "configure" |
---|
2345 | #include "confdefs.h" |
---|
2346 | #include <string.h> |
---|
2347 | EOF |
---|
2348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2349 | egrep "memchr" >/dev/null 2>&1; then |
---|
2350 | : |
---|
2351 | else |
---|
2352 | rm -rf conftest* |
---|
2353 | ac_cv_header_stdc=no |
---|
2354 | fi |
---|
2355 | rm -f conftest* |
---|
2356 | |
---|
2357 | fi |
---|
2358 | |
---|
2359 | if test $ac_cv_header_stdc = yes; then |
---|
2360 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2361 | cat > conftest.$ac_ext <<EOF |
---|
2362 | #line 2363 "configure" |
---|
2363 | #include "confdefs.h" |
---|
2364 | #include <stdlib.h> |
---|
2365 | EOF |
---|
2366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2367 | egrep "free" >/dev/null 2>&1; then |
---|
2368 | : |
---|
2369 | else |
---|
2370 | rm -rf conftest* |
---|
2371 | ac_cv_header_stdc=no |
---|
2372 | fi |
---|
2373 | rm -f conftest* |
---|
2374 | |
---|
2375 | fi |
---|
2376 | |
---|
2377 | if test $ac_cv_header_stdc = yes; then |
---|
2378 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
2379 | if test "$cross_compiling" = yes; then |
---|
2380 | : |
---|
2381 | else |
---|
2382 | cat > conftest.$ac_ext <<EOF |
---|
2383 | #line 2384 "configure" |
---|
2384 | #include "confdefs.h" |
---|
2385 | #include <ctype.h> |
---|
2386 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
2387 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
2388 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
2389 | int main () { int i; for (i = 0; i < 256; i++) |
---|
2390 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
2391 | exit (0); } |
---|
2392 | |
---|
2393 | EOF |
---|
2394 | if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2395 | then |
---|
2396 | : |
---|
2397 | else |
---|
2398 | echo "configure: failed program was:" >&5 |
---|
2399 | cat conftest.$ac_ext >&5 |
---|
2400 | rm -fr conftest* |
---|
2401 | ac_cv_header_stdc=no |
---|
2402 | fi |
---|
2403 | rm -fr conftest* |
---|
2404 | fi |
---|
2405 | |
---|
2406 | fi |
---|
2407 | fi |
---|
2408 | |
---|
2409 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
2410 | if test $ac_cv_header_stdc = yes; then |
---|
2411 | cat >> confdefs.h <<\EOF |
---|
2412 | #define STDC_HEADERS 1 |
---|
2413 | EOF |
---|
2414 | |
---|
2415 | fi |
---|
2416 | |
---|
2417 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
---|
2418 | echo "configure:2419: checking whether stat file-mode macros are broken" >&5 |
---|
2419 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
---|
2420 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2421 | else |
---|
2422 | cat > conftest.$ac_ext <<EOF |
---|
2423 | #line 2424 "configure" |
---|
2424 | #include "confdefs.h" |
---|
2425 | #include <sys/types.h> |
---|
2426 | #include <sys/stat.h> |
---|
2427 | |
---|
2428 | #if defined(S_ISBLK) && defined(S_IFDIR) |
---|
2429 | # if S_ISBLK (S_IFDIR) |
---|
2430 | You lose. |
---|
2431 | # endif |
---|
2432 | #endif |
---|
2433 | |
---|
2434 | #if defined(S_ISBLK) && defined(S_IFCHR) |
---|
2435 | # if S_ISBLK (S_IFCHR) |
---|
2436 | You lose. |
---|
2437 | # endif |
---|
2438 | #endif |
---|
2439 | |
---|
2440 | #if defined(S_ISLNK) && defined(S_IFREG) |
---|
2441 | # if S_ISLNK (S_IFREG) |
---|
2442 | You lose. |
---|
2443 | # endif |
---|
2444 | #endif |
---|
2445 | |
---|
2446 | #if defined(S_ISSOCK) && defined(S_IFREG) |
---|
2447 | # if S_ISSOCK (S_IFREG) |
---|
2448 | You lose. |
---|
2449 | # endif |
---|
2450 | #endif |
---|
2451 | |
---|
2452 | EOF |
---|
2453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2454 | egrep "You lose" >/dev/null 2>&1; then |
---|
2455 | rm -rf conftest* |
---|
2456 | ac_cv_header_stat_broken=yes |
---|
2457 | else |
---|
2458 | rm -rf conftest* |
---|
2459 | ac_cv_header_stat_broken=no |
---|
2460 | fi |
---|
2461 | rm -f conftest* |
---|
2462 | |
---|
2463 | fi |
---|
2464 | |
---|
2465 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
---|
2466 | if test $ac_cv_header_stat_broken = yes; then |
---|
2467 | cat >> confdefs.h <<\EOF |
---|
2468 | #define STAT_MACROS_BROKEN 1 |
---|
2469 | EOF |
---|
2470 | |
---|
2471 | fi |
---|
2472 | |
---|
2473 | for ac_hdr in limits.h unistd.h |
---|
2474 | do |
---|
2475 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2476 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2477 | echo "configure:2478: checking for $ac_hdr" >&5 |
---|
2478 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2479 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2480 | else |
---|
2481 | cat > conftest.$ac_ext <<EOF |
---|
2482 | #line 2483 "configure" |
---|
2483 | #include "confdefs.h" |
---|
2484 | #include <$ac_hdr> |
---|
2485 | EOF |
---|
2486 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2487 | { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2488 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2489 | if test -z "$ac_err"; then |
---|
2490 | rm -rf conftest* |
---|
2491 | eval "ac_cv_header_$ac_safe=yes" |
---|
2492 | else |
---|
2493 | echo "$ac_err" >&5 |
---|
2494 | echo "configure: failed program was:" >&5 |
---|
2495 | cat conftest.$ac_ext >&5 |
---|
2496 | rm -rf conftest* |
---|
2497 | eval "ac_cv_header_$ac_safe=no" |
---|
2498 | fi |
---|
2499 | rm -f conftest* |
---|
2500 | fi |
---|
2501 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2502 | echo "$ac_t""yes" 1>&6 |
---|
2503 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2504 | cat >> confdefs.h <<EOF |
---|
2505 | #define $ac_tr_hdr 1 |
---|
2506 | EOF |
---|
2507 | |
---|
2508 | else |
---|
2509 | echo "$ac_t""no" 1>&6 |
---|
2510 | { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } |
---|
2511 | fi |
---|
2512 | done |
---|
2513 | |
---|
2514 | |
---|
2515 | for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h |
---|
2516 | do |
---|
2517 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2518 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2519 | echo "configure:2520: checking for $ac_hdr" >&5 |
---|
2520 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2521 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2522 | else |
---|
2523 | cat > conftest.$ac_ext <<EOF |
---|
2524 | #line 2525 "configure" |
---|
2525 | #include "confdefs.h" |
---|
2526 | #include <$ac_hdr> |
---|
2527 | EOF |
---|
2528 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2529 | { (eval echo configure:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2530 | ac_err=`grep -v '^ *+' conftest.out` |
---|
2531 | if test -z "$ac_err"; then |
---|
2532 | rm -rf conftest* |
---|
2533 | eval "ac_cv_header_$ac_safe=yes" |
---|
2534 | else |
---|
2535 | echo "$ac_err" >&5 |
---|
2536 | echo "configure: failed program was:" >&5 |
---|
2537 | cat conftest.$ac_ext >&5 |
---|
2538 | rm -rf conftest* |
---|
2539 | eval "ac_cv_header_$ac_safe=no" |
---|
2540 | fi |
---|
2541 | rm -f conftest* |
---|
2542 | fi |
---|
2543 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2544 | echo "$ac_t""yes" 1>&6 |
---|
2545 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2546 | cat >> confdefs.h <<EOF |
---|
2547 | #define $ac_tr_hdr 1 |
---|
2548 | EOF |
---|
2549 | |
---|
2550 | else |
---|
2551 | echo "$ac_t""no" 1>&6 |
---|
2552 | fi |
---|
2553 | done |
---|
2554 | |
---|
2555 | |
---|
2556 | WITH_DBM=no |
---|
2557 | echo $ac_n "checking whether to build with dbm links""... $ac_c" 1>&6 |
---|
2558 | echo "configure:2559: checking whether to build with dbm links" >&5 |
---|
2559 | if test "$with_dbm" != no; then |
---|
2560 | cat >> confdefs.h <<\EOF |
---|
2561 | #define HAVE_DBM 1 |
---|
2562 | EOF |
---|
2563 | |
---|
2564 | WITH_DBM=yes |
---|
2565 | |
---|
2566 | echo "$ac_t""yes" 1>&6 |
---|
2567 | else |
---|
2568 | echo "$ac_t""no" 1>&6 |
---|
2569 | fi |
---|
2570 | |
---|
2571 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
2572 | echo "configure:2573: checking for working const" >&5 |
---|
2573 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
2574 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2575 | else |
---|
2576 | cat > conftest.$ac_ext <<EOF |
---|
2577 | #line 2578 "configure" |
---|
2578 | #include "confdefs.h" |
---|
2579 | |
---|
2580 | int main() { |
---|
2581 | |
---|
2582 | /* Ultrix mips cc rejects this. */ |
---|
2583 | typedef int charset[2]; const charset x; |
---|
2584 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2585 | char const *const *ccp; |
---|
2586 | char **p; |
---|
2587 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2588 | struct point {int x, y;}; |
---|
2589 | static struct point const zero = {0,0}; |
---|
2590 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2591 | It does not let you subtract one const X* pointer from another in an arm |
---|
2592 | of an if-expression whose if-part is not a constant expression */ |
---|
2593 | const char *g = "string"; |
---|
2594 | ccp = &g + (g ? g-g : 0); |
---|
2595 | /* HPUX 7.0 cc rejects these. */ |
---|
2596 | ++ccp; |
---|
2597 | p = (char**) ccp; |
---|
2598 | ccp = (char const *const *) p; |
---|
2599 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2600 | char *t; |
---|
2601 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2602 | |
---|
2603 | *t++ = 0; |
---|
2604 | } |
---|
2605 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2606 | int x[] = {25, 17}; |
---|
2607 | const int *foo = &x[0]; |
---|
2608 | ++foo; |
---|
2609 | } |
---|
2610 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2611 | typedef const int *iptr; |
---|
2612 | iptr p = 0; |
---|
2613 | ++p; |
---|
2614 | } |
---|
2615 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2616 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2617 | struct s { int j; const int *ap[3]; }; |
---|
2618 | struct s *b; b->j = 5; |
---|
2619 | } |
---|
2620 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2621 | const int foo = 10; |
---|
2622 | } |
---|
2623 | |
---|
2624 | ; return 0; } |
---|
2625 | EOF |
---|
2626 | if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2627 | rm -rf conftest* |
---|
2628 | ac_cv_c_const=yes |
---|
2629 | else |
---|
2630 | echo "configure: failed program was:" >&5 |
---|
2631 | cat conftest.$ac_ext >&5 |
---|
2632 | rm -rf conftest* |
---|
2633 | ac_cv_c_const=no |
---|
2634 | fi |
---|
2635 | rm -f conftest* |
---|
2636 | fi |
---|
2637 | |
---|
2638 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
2639 | if test $ac_cv_c_const = no; then |
---|
2640 | cat >> confdefs.h <<\EOF |
---|
2641 | #define const |
---|
2642 | EOF |
---|
2643 | |
---|
2644 | fi |
---|
2645 | |
---|
2646 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2647 | echo "configure:2648: checking for inline" >&5 |
---|
2648 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2649 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2650 | else |
---|
2651 | ac_cv_c_inline=no |
---|
2652 | for ac_kw in inline __inline__ __inline; do |
---|
2653 | cat > conftest.$ac_ext <<EOF |
---|
2654 | #line 2655 "configure" |
---|
2655 | #include "confdefs.h" |
---|
2656 | |
---|
2657 | int main() { |
---|
2658 | } $ac_kw foo() { |
---|
2659 | ; return 0; } |
---|
2660 | EOF |
---|
2661 | if { (eval echo configure:2662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2662 | rm -rf conftest* |
---|
2663 | ac_cv_c_inline=$ac_kw; break |
---|
2664 | else |
---|
2665 | echo "configure: failed program was:" >&5 |
---|
2666 | cat conftest.$ac_ext >&5 |
---|
2667 | fi |
---|
2668 | rm -f conftest* |
---|
2669 | done |
---|
2670 | |
---|
2671 | fi |
---|
2672 | |
---|
2673 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2674 | case "$ac_cv_c_inline" in |
---|
2675 | inline | yes) ;; |
---|
2676 | no) cat >> confdefs.h <<\EOF |
---|
2677 | #define inline |
---|
2678 | EOF |
---|
2679 | ;; |
---|
2680 | *) cat >> confdefs.h <<EOF |
---|
2681 | #define inline $ac_cv_c_inline |
---|
2682 | EOF |
---|
2683 | ;; |
---|
2684 | esac |
---|
2685 | |
---|
2686 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
2687 | echo "configure:2688: checking for size_t" >&5 |
---|
2688 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
2689 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2690 | else |
---|
2691 | cat > conftest.$ac_ext <<EOF |
---|
2692 | #line 2693 "configure" |
---|
2693 | #include "confdefs.h" |
---|
2694 | #include <sys/types.h> |
---|
2695 | #if STDC_HEADERS |
---|
2696 | #include <stdlib.h> |
---|
2697 | #include <stddef.h> |
---|
2698 | #endif |
---|
2699 | EOF |
---|
2700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2701 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2702 | rm -rf conftest* |
---|
2703 | ac_cv_type_size_t=yes |
---|
2704 | else |
---|
2705 | rm -rf conftest* |
---|
2706 | ac_cv_type_size_t=no |
---|
2707 | fi |
---|
2708 | rm -f conftest* |
---|
2709 | |
---|
2710 | fi |
---|
2711 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2712 | if test $ac_cv_type_size_t = no; then |
---|
2713 | cat >> confdefs.h <<\EOF |
---|
2714 | #define size_t unsigned |
---|
2715 | EOF |
---|
2716 | |
---|
2717 | fi |
---|
2718 | |
---|
2719 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
2720 | echo "configure:2721: checking whether time.h and sys/time.h may both be included" >&5 |
---|
2721 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
2722 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2723 | else |
---|
2724 | cat > conftest.$ac_ext <<EOF |
---|
2725 | #line 2726 "configure" |
---|
2726 | #include "confdefs.h" |
---|
2727 | #include <sys/types.h> |
---|
2728 | #include <sys/time.h> |
---|
2729 | #include <time.h> |
---|
2730 | int main() { |
---|
2731 | struct tm *tp; |
---|
2732 | ; return 0; } |
---|
2733 | EOF |
---|
2734 | if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2735 | rm -rf conftest* |
---|
2736 | ac_cv_header_time=yes |
---|
2737 | else |
---|
2738 | echo "configure: failed program was:" >&5 |
---|
2739 | cat conftest.$ac_ext >&5 |
---|
2740 | rm -rf conftest* |
---|
2741 | ac_cv_header_time=no |
---|
2742 | fi |
---|
2743 | rm -f conftest* |
---|
2744 | fi |
---|
2745 | |
---|
2746 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
2747 | if test $ac_cv_header_time = yes; then |
---|
2748 | cat >> confdefs.h <<\EOF |
---|
2749 | #define TIME_WITH_SYS_TIME 1 |
---|
2750 | EOF |
---|
2751 | |
---|
2752 | fi |
---|
2753 | |
---|
2754 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
---|
2755 | echo "configure:2756: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
2756 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
---|
2757 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2758 | else |
---|
2759 | cat > conftest.$ac_ext <<EOF |
---|
2760 | #line 2761 "configure" |
---|
2761 | #include "confdefs.h" |
---|
2762 | #include <sys/types.h> |
---|
2763 | #include <time.h> |
---|
2764 | int main() { |
---|
2765 | struct tm *tp; tp->tm_sec; |
---|
2766 | ; return 0; } |
---|
2767 | EOF |
---|
2768 | if { (eval echo configure:2769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2769 | rm -rf conftest* |
---|
2770 | ac_cv_struct_tm=time.h |
---|
2771 | else |
---|
2772 | echo "configure: failed program was:" >&5 |
---|
2773 | cat conftest.$ac_ext >&5 |
---|
2774 | rm -rf conftest* |
---|
2775 | ac_cv_struct_tm=sys/time.h |
---|
2776 | fi |
---|
2777 | rm -f conftest* |
---|
2778 | fi |
---|
2779 | |
---|
2780 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
---|
2781 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
2782 | cat >> confdefs.h <<\EOF |
---|
2783 | #define TM_IN_SYS_TIME 1 |
---|
2784 | EOF |
---|
2785 | |
---|
2786 | fi |
---|
2787 | |
---|
2788 | |
---|
2789 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
2790 | # for constant arguments. Useless! |
---|
2791 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
2792 | echo "configure:2793: checking for working alloca.h" >&5 |
---|
2793 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
2794 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2795 | else |
---|
2796 | cat > conftest.$ac_ext <<EOF |
---|
2797 | #line 2798 "configure" |
---|
2798 | #include "confdefs.h" |
---|
2799 | #include <alloca.h> |
---|
2800 | int main() { |
---|
2801 | char *p = alloca(2 * sizeof(int)); |
---|
2802 | ; return 0; } |
---|
2803 | EOF |
---|
2804 | if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2805 | rm -rf conftest* |
---|
2806 | ac_cv_header_alloca_h=yes |
---|
2807 | else |
---|
2808 | echo "configure: failed program was:" >&5 |
---|
2809 | cat conftest.$ac_ext >&5 |
---|
2810 | rm -rf conftest* |
---|
2811 | ac_cv_header_alloca_h=no |
---|
2812 | fi |
---|
2813 | rm -f conftest* |
---|
2814 | fi |
---|
2815 | |
---|
2816 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
2817 | if test $ac_cv_header_alloca_h = yes; then |
---|
2818 | cat >> confdefs.h <<\EOF |
---|
2819 | #define HAVE_ALLOCA_H 1 |
---|
2820 | EOF |
---|
2821 | |
---|
2822 | fi |
---|
2823 | |
---|
2824 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
2825 | echo "configure:2826: checking for alloca" >&5 |
---|
2826 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
2827 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2828 | else |
---|
2829 | cat > conftest.$ac_ext <<EOF |
---|
2830 | #line 2831 "configure" |
---|
2831 | #include "confdefs.h" |
---|
2832 | |
---|
2833 | #ifdef __GNUC__ |
---|
2834 | # define alloca __builtin_alloca |
---|
2835 | #else |
---|
2836 | # if HAVE_ALLOCA_H |
---|
2837 | # include <alloca.h> |
---|
2838 | # else |
---|
2839 | # ifdef _AIX |
---|
2840 | #pragma alloca |
---|
2841 | # else |
---|
2842 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
2843 | char *alloca (); |
---|
2844 | # endif |
---|
2845 | # endif |
---|
2846 | # endif |
---|
2847 | #endif |
---|
2848 | |
---|
2849 | int main() { |
---|
2850 | char *p = (char *) alloca(1); |
---|
2851 | ; return 0; } |
---|
2852 | EOF |
---|
2853 | if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2854 | rm -rf conftest* |
---|
2855 | ac_cv_func_alloca_works=yes |
---|
2856 | else |
---|
2857 | echo "configure: failed program was:" >&5 |
---|
2858 | cat conftest.$ac_ext >&5 |
---|
2859 | rm -rf conftest* |
---|
2860 | ac_cv_func_alloca_works=no |
---|
2861 | fi |
---|
2862 | rm -f conftest* |
---|
2863 | fi |
---|
2864 | |
---|
2865 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
2866 | if test $ac_cv_func_alloca_works = yes; then |
---|
2867 | cat >> confdefs.h <<\EOF |
---|
2868 | #define HAVE_ALLOCA 1 |
---|
2869 | EOF |
---|
2870 | |
---|
2871 | fi |
---|
2872 | |
---|
2873 | if test $ac_cv_func_alloca_works = no; then |
---|
2874 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
2875 | # that cause trouble. Some versions do not even contain alloca or |
---|
2876 | # contain a buggy version. If you still want to use their alloca, |
---|
2877 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
2878 | ALLOCA=alloca.o |
---|
2879 | cat >> confdefs.h <<\EOF |
---|
2880 | #define C_ALLOCA 1 |
---|
2881 | EOF |
---|
2882 | |
---|
2883 | |
---|
2884 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
2885 | echo "configure:2886: checking whether alloca needs Cray hooks" >&5 |
---|
2886 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
2887 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2888 | else |
---|
2889 | cat > conftest.$ac_ext <<EOF |
---|
2890 | #line 2891 "configure" |
---|
2891 | #include "confdefs.h" |
---|
2892 | #if defined(CRAY) && ! defined(CRAY2) |
---|
2893 | webecray |
---|
2894 | #else |
---|
2895 | wenotbecray |
---|
2896 | #endif |
---|
2897 | |
---|
2898 | EOF |
---|
2899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2900 | egrep "webecray" >/dev/null 2>&1; then |
---|
2901 | rm -rf conftest* |
---|
2902 | ac_cv_os_cray=yes |
---|
2903 | else |
---|
2904 | rm -rf conftest* |
---|
2905 | ac_cv_os_cray=no |
---|
2906 | fi |
---|
2907 | rm -f conftest* |
---|
2908 | |
---|
2909 | fi |
---|
2910 | |
---|
2911 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
2912 | if test $ac_cv_os_cray = yes; then |
---|
2913 | for ac_func in _getb67 GETB67 getb67; do |
---|
2914 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2915 | echo "configure:2916: checking for $ac_func" >&5 |
---|
2916 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2917 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2918 | else |
---|
2919 | cat > conftest.$ac_ext <<EOF |
---|
2920 | #line 2921 "configure" |
---|
2921 | #include "confdefs.h" |
---|
2922 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2923 | which can conflict with char $ac_func(); below. */ |
---|
2924 | #include <assert.h> |
---|
2925 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2926 | /* We use char because int might match the return type of a gcc2 |
---|
2927 | builtin and then its argument prototype would still apply. */ |
---|
2928 | char $ac_func(); |
---|
2929 | |
---|
2930 | int main() { |
---|
2931 | |
---|
2932 | /* The GNU C library defines this for functions which it implements |
---|
2933 | to always fail with ENOSYS. Some functions are actually named |
---|
2934 | something starting with __ and the normal name is an alias. */ |
---|
2935 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2936 | choke me |
---|
2937 | #else |
---|
2938 | $ac_func(); |
---|
2939 | #endif |
---|
2940 | |
---|
2941 | ; return 0; } |
---|
2942 | EOF |
---|
2943 | if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
2944 | rm -rf conftest* |
---|
2945 | eval "ac_cv_func_$ac_func=yes" |
---|
2946 | else |
---|
2947 | echo "configure: failed program was:" >&5 |
---|
2948 | cat conftest.$ac_ext >&5 |
---|
2949 | rm -rf conftest* |
---|
2950 | eval "ac_cv_func_$ac_func=no" |
---|
2951 | fi |
---|
2952 | rm -f conftest* |
---|
2953 | fi |
---|
2954 | |
---|
2955 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2956 | echo "$ac_t""yes" 1>&6 |
---|
2957 | cat >> confdefs.h <<EOF |
---|
2958 | #define CRAY_STACKSEG_END $ac_func |
---|
2959 | EOF |
---|
2960 | |
---|
2961 | break |
---|
2962 | else |
---|
2963 | echo "$ac_t""no" 1>&6 |
---|
2964 | fi |
---|
2965 | |
---|
2966 | done |
---|
2967 | fi |
---|
2968 | |
---|
2969 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
2970 | echo "configure:2971: checking stack direction for C alloca" >&5 |
---|
2971 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
2972 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2973 | else |
---|
2974 | if test "$cross_compiling" = yes; then |
---|
2975 | ac_cv_c_stack_direction=0 |
---|
2976 | else |
---|
2977 | cat > conftest.$ac_ext <<EOF |
---|
2978 | #line 2979 "configure" |
---|
2979 | #include "confdefs.h" |
---|
2980 | find_stack_direction () |
---|
2981 | { |
---|
2982 | static char *addr = 0; |
---|
2983 | auto char dummy; |
---|
2984 | if (addr == 0) |
---|
2985 | { |
---|
2986 | addr = &dummy; |
---|
2987 | return find_stack_direction (); |
---|
2988 | } |
---|
2989 | else |
---|
2990 | return (&dummy > addr) ? 1 : -1; |
---|
2991 | } |
---|
2992 | main () |
---|
2993 | { |
---|
2994 | exit (find_stack_direction() < 0); |
---|
2995 | } |
---|
2996 | EOF |
---|
2997 | if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
2998 | then |
---|
2999 | ac_cv_c_stack_direction=1 |
---|
3000 | else |
---|
3001 | echo "configure: failed program was:" >&5 |
---|
3002 | cat conftest.$ac_ext >&5 |
---|
3003 | rm -fr conftest* |
---|
3004 | ac_cv_c_stack_direction=-1 |
---|
3005 | fi |
---|
3006 | rm -fr conftest* |
---|
3007 | fi |
---|
3008 | |
---|
3009 | fi |
---|
3010 | |
---|
3011 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
3012 | cat >> confdefs.h <<EOF |
---|
3013 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
3014 | EOF |
---|
3015 | |
---|
3016 | fi |
---|
3017 | |
---|
3018 | if test $ac_cv_prog_gcc = yes; then |
---|
3019 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
---|
3020 | echo "configure:3021: checking whether ${CC-cc} needs -traditional" >&5 |
---|
3021 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
---|
3022 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3023 | else |
---|
3024 | ac_pattern="Autoconf.*'x'" |
---|
3025 | cat > conftest.$ac_ext <<EOF |
---|
3026 | #line 3027 "configure" |
---|
3027 | #include "confdefs.h" |
---|
3028 | #include <sgtty.h> |
---|
3029 | Autoconf TIOCGETP |
---|
3030 | EOF |
---|
3031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3032 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
3033 | rm -rf conftest* |
---|
3034 | ac_cv_prog_gcc_traditional=yes |
---|
3035 | else |
---|
3036 | rm -rf conftest* |
---|
3037 | ac_cv_prog_gcc_traditional=no |
---|
3038 | fi |
---|
3039 | rm -f conftest* |
---|
3040 | |
---|
3041 | |
---|
3042 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
3043 | cat > conftest.$ac_ext <<EOF |
---|
3044 | #line 3045 "configure" |
---|
3045 | #include "confdefs.h" |
---|
3046 | #include <termio.h> |
---|
3047 | Autoconf TCGETA |
---|
3048 | EOF |
---|
3049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3050 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
3051 | rm -rf conftest* |
---|
3052 | ac_cv_prog_gcc_traditional=yes |
---|
3053 | fi |
---|
3054 | rm -f conftest* |
---|
3055 | |
---|
3056 | fi |
---|
3057 | fi |
---|
3058 | |
---|
3059 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
---|
3060 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
3061 | CC="$CC -traditional" |
---|
3062 | fi |
---|
3063 | fi |
---|
3064 | |
---|
3065 | for ac_hdr in unistd.h |
---|
3066 | do |
---|
3067 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3068 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3069 | echo "configure:3070: checking for $ac_hdr" >&5 |
---|
3070 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3071 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3072 | else |
---|
3073 | cat > conftest.$ac_ext <<EOF |
---|
3074 | #line 3075 "configure" |
---|
3075 | #include "confdefs.h" |
---|
3076 | #include <$ac_hdr> |
---|
3077 | EOF |
---|
3078 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3079 | { (eval echo configure:3080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3080 | ac_err=`grep -v '^ *+' conftest.out` |
---|
3081 | if test -z "$ac_err"; then |
---|
3082 | rm -rf conftest* |
---|
3083 | eval "ac_cv_header_$ac_safe=yes" |
---|
3084 | else |
---|
3085 | echo "$ac_err" >&5 |
---|
3086 | echo "configure: failed program was:" >&5 |
---|
3087 | cat conftest.$ac_ext >&5 |
---|
3088 | rm -rf conftest* |
---|
3089 | eval "ac_cv_header_$ac_safe=no" |
---|
3090 | fi |
---|
3091 | rm -f conftest* |
---|
3092 | fi |
---|
3093 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3094 | echo "$ac_t""yes" 1>&6 |
---|
3095 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3096 | cat >> confdefs.h <<EOF |
---|
3097 | #define $ac_tr_hdr 1 |
---|
3098 | EOF |
---|
3099 | |
---|
3100 | else |
---|
3101 | echo "$ac_t""no" 1>&6 |
---|
3102 | fi |
---|
3103 | done |
---|
3104 | |
---|
3105 | for ac_func in getpagesize |
---|
3106 | do |
---|
3107 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3108 | echo "configure:3109: checking for $ac_func" >&5 |
---|
3109 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3110 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3111 | else |
---|
3112 | cat > conftest.$ac_ext <<EOF |
---|
3113 | #line 3114 "configure" |
---|
3114 | #include "confdefs.h" |
---|
3115 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3116 | which can conflict with char $ac_func(); below. */ |
---|
3117 | #include <assert.h> |
---|
3118 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3119 | /* We use char because int might match the return type of a gcc2 |
---|
3120 | builtin and then its argument prototype would still apply. */ |
---|
3121 | char $ac_func(); |
---|
3122 | |
---|
3123 | int main() { |
---|
3124 | |
---|
3125 | /* The GNU C library defines this for functions which it implements |
---|
3126 | to always fail with ENOSYS. Some functions are actually named |
---|
3127 | something starting with __ and the normal name is an alias. */ |
---|
3128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3129 | choke me |
---|
3130 | #else |
---|
3131 | $ac_func(); |
---|
3132 | #endif |
---|
3133 | |
---|
3134 | ; return 0; } |
---|
3135 | EOF |
---|
3136 | if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3137 | rm -rf conftest* |
---|
3138 | eval "ac_cv_func_$ac_func=yes" |
---|
3139 | else |
---|
3140 | echo "configure: failed program was:" >&5 |
---|
3141 | cat conftest.$ac_ext >&5 |
---|
3142 | rm -rf conftest* |
---|
3143 | eval "ac_cv_func_$ac_func=no" |
---|
3144 | fi |
---|
3145 | rm -f conftest* |
---|
3146 | fi |
---|
3147 | |
---|
3148 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3149 | echo "$ac_t""yes" 1>&6 |
---|
3150 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3151 | cat >> confdefs.h <<EOF |
---|
3152 | #define $ac_tr_func 1 |
---|
3153 | EOF |
---|
3154 | |
---|
3155 | else |
---|
3156 | echo "$ac_t""no" 1>&6 |
---|
3157 | fi |
---|
3158 | done |
---|
3159 | |
---|
3160 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
3161 | echo "configure:3162: checking for working mmap" >&5 |
---|
3162 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
3163 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3164 | else |
---|
3165 | if test "$cross_compiling" = yes; then |
---|
3166 | ac_cv_func_mmap_fixed_mapped=no |
---|
3167 | else |
---|
3168 | cat > conftest.$ac_ext <<EOF |
---|
3169 | #line 3170 "configure" |
---|
3170 | #include "confdefs.h" |
---|
3171 | |
---|
3172 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
3173 | Here is a matrix of mmap possibilities: |
---|
3174 | mmap private not fixed |
---|
3175 | mmap private fixed at somewhere currently unmapped |
---|
3176 | mmap private fixed at somewhere already mapped |
---|
3177 | mmap shared not fixed |
---|
3178 | mmap shared fixed at somewhere currently unmapped |
---|
3179 | mmap shared fixed at somewhere already mapped |
---|
3180 | For private mappings, we should verify that changes cannot be read() |
---|
3181 | back from the file, nor mmap's back from the file at a different |
---|
3182 | address. (There have been systems where private was not correctly |
---|
3183 | implemented like the infamous i386 svr4.0, and systems where the |
---|
3184 | VM page cache was not coherent with the filesystem buffer cache |
---|
3185 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
3186 | For shared mappings, we should conversely verify that changes get |
---|
3187 | propogated back to all the places they're supposed to be. |
---|
3188 | |
---|
3189 | Grep wants private fixed already mapped. |
---|
3190 | The main things grep needs to know about mmap are: |
---|
3191 | * does it exist and is it safe to write into the mmap'd area |
---|
3192 | * how to use it (BSD variants) */ |
---|
3193 | #include <sys/types.h> |
---|
3194 | #include <fcntl.h> |
---|
3195 | #include <sys/mman.h> |
---|
3196 | |
---|
3197 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
3198 | #ifndef HAVE_GETPAGESIZE |
---|
3199 | # ifdef HAVE_UNISTD_H |
---|
3200 | # include <unistd.h> |
---|
3201 | # endif |
---|
3202 | |
---|
3203 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
3204 | # ifndef HAVE_SYS_PARAM_H |
---|
3205 | # define HAVE_SYS_PARAM_H 1 |
---|
3206 | # endif |
---|
3207 | |
---|
3208 | # ifdef _SC_PAGESIZE |
---|
3209 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
3210 | # else /* no _SC_PAGESIZE */ |
---|
3211 | # ifdef HAVE_SYS_PARAM_H |
---|
3212 | # include <sys/param.h> |
---|
3213 | # ifdef EXEC_PAGESIZE |
---|
3214 | # define getpagesize() EXEC_PAGESIZE |
---|
3215 | # else /* no EXEC_PAGESIZE */ |
---|
3216 | # ifdef NBPG |
---|
3217 | # define getpagesize() NBPG * CLSIZE |
---|
3218 | # ifndef CLSIZE |
---|
3219 | # define CLSIZE 1 |
---|
3220 | # endif /* no CLSIZE */ |
---|
3221 | # else /* no NBPG */ |
---|
3222 | # ifdef NBPC |
---|
3223 | # define getpagesize() NBPC |
---|
3224 | # else /* no NBPC */ |
---|
3225 | # ifdef PAGESIZE |
---|
3226 | # define getpagesize() PAGESIZE |
---|
3227 | # endif /* PAGESIZE */ |
---|
3228 | # endif /* no NBPC */ |
---|
3229 | # endif /* no NBPG */ |
---|
3230 | # endif /* no EXEC_PAGESIZE */ |
---|
3231 | # else /* no HAVE_SYS_PARAM_H */ |
---|
3232 | # define getpagesize() 8192 /* punt totally */ |
---|
3233 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
3234 | # endif /* no _SC_PAGESIZE */ |
---|
3235 | |
---|
3236 | #endif /* no HAVE_GETPAGESIZE */ |
---|
3237 | |
---|
3238 | #ifdef __cplusplus |
---|
3239 | extern "C" { void *malloc(unsigned); } |
---|
3240 | #else |
---|
3241 | char *malloc(); |
---|
3242 | #endif |
---|
3243 | |
---|
3244 | int |
---|
3245 | main() |
---|
3246 | { |
---|
3247 | char *data, *data2, *data3; |
---|
3248 | int i, pagesize; |
---|
3249 | int fd; |
---|
3250 | |
---|
3251 | pagesize = getpagesize(); |
---|
3252 | |
---|
3253 | /* |
---|
3254 | * First, make a file with some known garbage in it. |
---|
3255 | */ |
---|
3256 | data = malloc(pagesize); |
---|
3257 | if (!data) |
---|
3258 | exit(1); |
---|
3259 | for (i = 0; i < pagesize; ++i) |
---|
3260 | *(data + i) = rand(); |
---|
3261 | umask(0); |
---|
3262 | fd = creat("conftestmmap", 0600); |
---|
3263 | if (fd < 0) |
---|
3264 | exit(1); |
---|
3265 | if (write(fd, data, pagesize) != pagesize) |
---|
3266 | exit(1); |
---|
3267 | close(fd); |
---|
3268 | |
---|
3269 | /* |
---|
3270 | * Next, try to mmap the file at a fixed address which |
---|
3271 | * already has something else allocated at it. If we can, |
---|
3272 | * also make sure that we see the same garbage. |
---|
3273 | */ |
---|
3274 | fd = open("conftestmmap", O_RDWR); |
---|
3275 | if (fd < 0) |
---|
3276 | exit(1); |
---|
3277 | data2 = malloc(2 * pagesize); |
---|
3278 | if (!data2) |
---|
3279 | exit(1); |
---|
3280 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
3281 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
3282 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
3283 | exit(1); |
---|
3284 | for (i = 0; i < pagesize; ++i) |
---|
3285 | if (*(data + i) != *(data2 + i)) |
---|
3286 | exit(1); |
---|
3287 | |
---|
3288 | /* |
---|
3289 | * Finally, make sure that changes to the mapped area |
---|
3290 | * do not percolate back to the file as seen by read(). |
---|
3291 | * (This is a bug on some variants of i386 svr4.0.) |
---|
3292 | */ |
---|
3293 | for (i = 0; i < pagesize; ++i) |
---|
3294 | *(data2 + i) = *(data2 + i) + 1; |
---|
3295 | data3 = malloc(pagesize); |
---|
3296 | if (!data3) |
---|
3297 | exit(1); |
---|
3298 | if (read(fd, data3, pagesize) != pagesize) |
---|
3299 | exit(1); |
---|
3300 | for (i = 0; i < pagesize; ++i) |
---|
3301 | if (*(data + i) != *(data3 + i)) |
---|
3302 | exit(1); |
---|
3303 | close(fd); |
---|
3304 | unlink("conftestmmap"); |
---|
3305 | exit(0); |
---|
3306 | } |
---|
3307 | |
---|
3308 | EOF |
---|
3309 | if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3310 | then |
---|
3311 | ac_cv_func_mmap_fixed_mapped=yes |
---|
3312 | else |
---|
3313 | echo "configure: failed program was:" >&5 |
---|
3314 | cat conftest.$ac_ext >&5 |
---|
3315 | rm -fr conftest* |
---|
3316 | ac_cv_func_mmap_fixed_mapped=no |
---|
3317 | fi |
---|
3318 | rm -fr conftest* |
---|
3319 | fi |
---|
3320 | |
---|
3321 | fi |
---|
3322 | |
---|
3323 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
3324 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
3325 | cat >> confdefs.h <<\EOF |
---|
3326 | #define HAVE_MMAP 1 |
---|
3327 | EOF |
---|
3328 | |
---|
3329 | fi |
---|
3330 | |
---|
3331 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
3332 | echo "configure:3333: checking return type of signal handlers" >&5 |
---|
3333 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
3334 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3335 | else |
---|
3336 | cat > conftest.$ac_ext <<EOF |
---|
3337 | #line 3338 "configure" |
---|
3338 | #include "confdefs.h" |
---|
3339 | #include <sys/types.h> |
---|
3340 | #include <signal.h> |
---|
3341 | #ifdef signal |
---|
3342 | #undef signal |
---|
3343 | #endif |
---|
3344 | #ifdef __cplusplus |
---|
3345 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
3346 | #else |
---|
3347 | void (*signal ()) (); |
---|
3348 | #endif |
---|
3349 | |
---|
3350 | int main() { |
---|
3351 | int i; |
---|
3352 | ; return 0; } |
---|
3353 | EOF |
---|
3354 | if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3355 | rm -rf conftest* |
---|
3356 | ac_cv_type_signal=void |
---|
3357 | else |
---|
3358 | echo "configure: failed program was:" >&5 |
---|
3359 | cat conftest.$ac_ext >&5 |
---|
3360 | rm -rf conftest* |
---|
3361 | ac_cv_type_signal=int |
---|
3362 | fi |
---|
3363 | rm -f conftest* |
---|
3364 | fi |
---|
3365 | |
---|
3366 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
3367 | cat >> confdefs.h <<EOF |
---|
3368 | #define RETSIGTYPE $ac_cv_type_signal |
---|
3369 | EOF |
---|
3370 | |
---|
3371 | |
---|
3372 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
3373 | echo "configure:3374: checking for vprintf" >&5 |
---|
3374 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
3375 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3376 | else |
---|
3377 | cat > conftest.$ac_ext <<EOF |
---|
3378 | #line 3379 "configure" |
---|
3379 | #include "confdefs.h" |
---|
3380 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3381 | which can conflict with char vprintf(); below. */ |
---|
3382 | #include <assert.h> |
---|
3383 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3384 | /* We use char because int might match the return type of a gcc2 |
---|
3385 | builtin and then its argument prototype would still apply. */ |
---|
3386 | char vprintf(); |
---|
3387 | |
---|
3388 | int main() { |
---|
3389 | |
---|
3390 | /* The GNU C library defines this for functions which it implements |
---|
3391 | to always fail with ENOSYS. Some functions are actually named |
---|
3392 | something starting with __ and the normal name is an alias. */ |
---|
3393 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
3394 | choke me |
---|
3395 | #else |
---|
3396 | vprintf(); |
---|
3397 | #endif |
---|
3398 | |
---|
3399 | ; return 0; } |
---|
3400 | EOF |
---|
3401 | if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3402 | rm -rf conftest* |
---|
3403 | eval "ac_cv_func_vprintf=yes" |
---|
3404 | else |
---|
3405 | echo "configure: failed program was:" >&5 |
---|
3406 | cat conftest.$ac_ext >&5 |
---|
3407 | rm -rf conftest* |
---|
3408 | eval "ac_cv_func_vprintf=no" |
---|
3409 | fi |
---|
3410 | rm -f conftest* |
---|
3411 | fi |
---|
3412 | |
---|
3413 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
3414 | echo "$ac_t""yes" 1>&6 |
---|
3415 | cat >> confdefs.h <<\EOF |
---|
3416 | #define HAVE_VPRINTF 1 |
---|
3417 | EOF |
---|
3418 | |
---|
3419 | else |
---|
3420 | echo "$ac_t""no" 1>&6 |
---|
3421 | fi |
---|
3422 | |
---|
3423 | if test "$ac_cv_func_vprintf" != yes; then |
---|
3424 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
3425 | echo "configure:3426: checking for _doprnt" >&5 |
---|
3426 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
3427 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3428 | else |
---|
3429 | cat > conftest.$ac_ext <<EOF |
---|
3430 | #line 3431 "configure" |
---|
3431 | #include "confdefs.h" |
---|
3432 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3433 | which can conflict with char _doprnt(); below. */ |
---|
3434 | #include <assert.h> |
---|
3435 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3436 | /* We use char because int might match the return type of a gcc2 |
---|
3437 | builtin and then its argument prototype would still apply. */ |
---|
3438 | char _doprnt(); |
---|
3439 | |
---|
3440 | int main() { |
---|
3441 | |
---|
3442 | /* The GNU C library defines this for functions which it implements |
---|
3443 | to always fail with ENOSYS. Some functions are actually named |
---|
3444 | something starting with __ and the normal name is an alias. */ |
---|
3445 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
3446 | choke me |
---|
3447 | #else |
---|
3448 | _doprnt(); |
---|
3449 | #endif |
---|
3450 | |
---|
3451 | ; return 0; } |
---|
3452 | EOF |
---|
3453 | if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3454 | rm -rf conftest* |
---|
3455 | eval "ac_cv_func__doprnt=yes" |
---|
3456 | else |
---|
3457 | echo "configure: failed program was:" >&5 |
---|
3458 | cat conftest.$ac_ext >&5 |
---|
3459 | rm -rf conftest* |
---|
3460 | eval "ac_cv_func__doprnt=no" |
---|
3461 | fi |
---|
3462 | rm -f conftest* |
---|
3463 | fi |
---|
3464 | |
---|
3465 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
3466 | echo "$ac_t""yes" 1>&6 |
---|
3467 | cat >> confdefs.h <<\EOF |
---|
3468 | #define HAVE_DOPRNT 1 |
---|
3469 | EOF |
---|
3470 | |
---|
3471 | else |
---|
3472 | echo "$ac_t""no" 1>&6 |
---|
3473 | fi |
---|
3474 | |
---|
3475 | fi |
---|
3476 | |
---|
3477 | for ac_func in gettimeofday atexit bcopy getcwd getwd sbrk readlink |
---|
3478 | do |
---|
3479 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3480 | echo "configure:3481: checking for $ac_func" >&5 |
---|
3481 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3482 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3483 | else |
---|
3484 | cat > conftest.$ac_ext <<EOF |
---|
3485 | #line 3486 "configure" |
---|
3486 | #include "confdefs.h" |
---|
3487 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3488 | which can conflict with char $ac_func(); below. */ |
---|
3489 | #include <assert.h> |
---|
3490 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3491 | /* We use char because int might match the return type of a gcc2 |
---|
3492 | builtin and then its argument prototype would still apply. */ |
---|
3493 | char $ac_func(); |
---|
3494 | |
---|
3495 | int main() { |
---|
3496 | |
---|
3497 | /* The GNU C library defines this for functions which it implements |
---|
3498 | to always fail with ENOSYS. Some functions are actually named |
---|
3499 | something starting with __ and the normal name is an alias. */ |
---|
3500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3501 | choke me |
---|
3502 | #else |
---|
3503 | $ac_func(); |
---|
3504 | #endif |
---|
3505 | |
---|
3506 | ; return 0; } |
---|
3507 | EOF |
---|
3508 | if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
3509 | rm -rf conftest* |
---|
3510 | eval "ac_cv_func_$ac_func=yes" |
---|
3511 | else |
---|
3512 | echo "configure: failed program was:" >&5 |
---|
3513 | cat conftest.$ac_ext >&5 |
---|
3514 | rm -rf conftest* |
---|
3515 | eval "ac_cv_func_$ac_func=no" |
---|
3516 | fi |
---|
3517 | rm -f conftest* |
---|
3518 | fi |
---|
3519 | |
---|
3520 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3521 | echo "$ac_t""yes" 1>&6 |
---|
3522 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3523 | cat >> confdefs.h <<EOF |
---|
3524 | #define $ac_tr_func 1 |
---|
3525 | EOF |
---|
3526 | |
---|
3527 | else |
---|
3528 | echo "$ac_t""no" 1>&6 |
---|
3529 | fi |
---|
3530 | done |
---|
3531 | |
---|
3532 | |
---|
3533 | |
---|
3534 | echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 |
---|
3535 | echo "configure:3536: checking whether your machine has correct arithmetic shifts" >&5 |
---|
3536 | if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then |
---|
3537 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3538 | else |
---|
3539 | if test "$cross_compiling" = yes; then |
---|
3540 | if test "$ac_c_cross_dos" = yes; then |
---|
3541 | ac_cv_shift=yes; |
---|
3542 | else |
---|
3543 | echo "$ac_t""no" 1>&6 |
---|
3544 | { echo "configure: error: cross compilation without default value" 1>&2; exit 1; } |
---|
3545 | fi |
---|
3546 | else |
---|
3547 | cat > conftest.$ac_ext <<EOF |
---|
3548 | #line 3549 "configure" |
---|
3549 | #include "confdefs.h" |
---|
3550 | int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } |
---|
3551 | EOF |
---|
3552 | if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3553 | then |
---|
3554 | ac_cv_shift=yes |
---|
3555 | else |
---|
3556 | echo "configure: failed program was:" >&5 |
---|
3557 | cat conftest.$ac_ext >&5 |
---|
3558 | rm -fr conftest* |
---|
3559 | ac_cv_shift=no |
---|
3560 | fi |
---|
3561 | rm -fr conftest* |
---|
3562 | fi |
---|
3563 | |
---|
3564 | fi |
---|
3565 | |
---|
3566 | |
---|
3567 | if test "$ac_cv_shift" = yes; then |
---|
3568 | echo "$ac_t""yes" 1>&6 |
---|
3569 | else |
---|
3570 | echo "$ac_t""no" 1>&6 |
---|
3571 | { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } |
---|
3572 | fi |
---|
3573 | |
---|
3574 | echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 |
---|
3575 | echo "configure:3576: checking whether vsprintf returns number of printed chars" >&5 |
---|
3576 | if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then |
---|
3577 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3578 | else |
---|
3579 | if test "$cross_compiling" = yes; then |
---|
3580 | ac_cv_returns_n_of_chars=no |
---|
3581 | else |
---|
3582 | cat > conftest.$ac_ext <<EOF |
---|
3583 | #line 3584 "configure" |
---|
3584 | #include "confdefs.h" |
---|
3585 | #include <stdio.h> |
---|
3586 | main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } |
---|
3587 | EOF |
---|
3588 | if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3589 | then |
---|
3590 | ac_cv_returns_n_of_chars=yes |
---|
3591 | else |
---|
3592 | echo "configure: failed program was:" >&5 |
---|
3593 | cat conftest.$ac_ext >&5 |
---|
3594 | rm -fr conftest* |
---|
3595 | ac_cv_returns_n_of_chars=no |
---|
3596 | fi |
---|
3597 | rm -fr conftest* |
---|
3598 | fi |
---|
3599 | |
---|
3600 | fi |
---|
3601 | |
---|
3602 | if test "$ac_cv_returns_n_of_chars" = yes; then |
---|
3603 | echo "$ac_t""yes" 1>&6 |
---|
3604 | else |
---|
3605 | echo "$ac_t""no" 1>&6 |
---|
3606 | cat >> confdefs.h <<\EOF |
---|
3607 | #define BSD_SPRINTF 1 |
---|
3608 | EOF |
---|
3609 | |
---|
3610 | fi |
---|
3611 | |
---|
3612 | |
---|
3613 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
---|
3614 | echo "configure:3615: checking size of char" >&5 |
---|
3615 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
---|
3616 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3617 | else |
---|
3618 | if test "$cross_compiling" = yes; then |
---|
3619 | ac_cv_sizeof_char=1 |
---|
3620 | else |
---|
3621 | cat > conftest.$ac_ext <<EOF |
---|
3622 | #line 3623 "configure" |
---|
3623 | #include "confdefs.h" |
---|
3624 | #include <stdio.h> |
---|
3625 | main() |
---|
3626 | { |
---|
3627 | FILE *f=fopen("conftestval", "w"); |
---|
3628 | if (!f) exit(1); |
---|
3629 | fprintf(f, "%d\n", sizeof(char)); |
---|
3630 | exit(0); |
---|
3631 | } |
---|
3632 | EOF |
---|
3633 | if { (eval echo configure:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3634 | then |
---|
3635 | ac_cv_sizeof_char=`cat conftestval` |
---|
3636 | else |
---|
3637 | echo "configure: failed program was:" >&5 |
---|
3638 | cat conftest.$ac_ext >&5 |
---|
3639 | rm -fr conftest* |
---|
3640 | ac_cv_sizeof_char=0 |
---|
3641 | fi |
---|
3642 | rm -fr conftest* |
---|
3643 | fi |
---|
3644 | |
---|
3645 | fi |
---|
3646 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
---|
3647 | cat >> confdefs.h <<EOF |
---|
3648 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
---|
3649 | EOF |
---|
3650 | |
---|
3651 | |
---|
3652 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
---|
3653 | echo "configure:3654: checking size of short" >&5 |
---|
3654 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
---|
3655 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3656 | else |
---|
3657 | if test "$cross_compiling" = yes; then |
---|
3658 | ac_cv_sizeof_short=2 |
---|
3659 | else |
---|
3660 | cat > conftest.$ac_ext <<EOF |
---|
3661 | #line 3662 "configure" |
---|
3662 | #include "confdefs.h" |
---|
3663 | #include <stdio.h> |
---|
3664 | main() |
---|
3665 | { |
---|
3666 | FILE *f=fopen("conftestval", "w"); |
---|
3667 | if (!f) exit(1); |
---|
3668 | fprintf(f, "%d\n", sizeof(short)); |
---|
3669 | exit(0); |
---|
3670 | } |
---|
3671 | EOF |
---|
3672 | if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3673 | then |
---|
3674 | ac_cv_sizeof_short=`cat conftestval` |
---|
3675 | else |
---|
3676 | echo "configure: failed program was:" >&5 |
---|
3677 | cat conftest.$ac_ext >&5 |
---|
3678 | rm -fr conftest* |
---|
3679 | ac_cv_sizeof_short=0 |
---|
3680 | fi |
---|
3681 | rm -fr conftest* |
---|
3682 | fi |
---|
3683 | |
---|
3684 | fi |
---|
3685 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
---|
3686 | cat >> confdefs.h <<EOF |
---|
3687 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
---|
3688 | EOF |
---|
3689 | |
---|
3690 | |
---|
3691 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
---|
3692 | echo "configure:3693: checking size of int" >&5 |
---|
3693 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
---|
3694 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3695 | else |
---|
3696 | if test "$cross_compiling" = yes; then |
---|
3697 | ac_cv_sizeof_int=4 |
---|
3698 | else |
---|
3699 | cat > conftest.$ac_ext <<EOF |
---|
3700 | #line 3701 "configure" |
---|
3701 | #include "confdefs.h" |
---|
3702 | #include <stdio.h> |
---|
3703 | main() |
---|
3704 | { |
---|
3705 | FILE *f=fopen("conftestval", "w"); |
---|
3706 | if (!f) exit(1); |
---|
3707 | fprintf(f, "%d\n", sizeof(int)); |
---|
3708 | exit(0); |
---|
3709 | } |
---|
3710 | EOF |
---|
3711 | if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3712 | then |
---|
3713 | ac_cv_sizeof_int=`cat conftestval` |
---|
3714 | else |
---|
3715 | echo "configure: failed program was:" >&5 |
---|
3716 | cat conftest.$ac_ext >&5 |
---|
3717 | rm -fr conftest* |
---|
3718 | ac_cv_sizeof_int=0 |
---|
3719 | fi |
---|
3720 | rm -fr conftest* |
---|
3721 | fi |
---|
3722 | |
---|
3723 | fi |
---|
3724 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
---|
3725 | cat >> confdefs.h <<EOF |
---|
3726 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
3727 | EOF |
---|
3728 | |
---|
3729 | |
---|
3730 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
3731 | echo "configure:3732: checking size of long" >&5 |
---|
3732 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
3733 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3734 | else |
---|
3735 | if test "$cross_compiling" = yes; then |
---|
3736 | ac_cv_sizeof_long=4 |
---|
3737 | else |
---|
3738 | cat > conftest.$ac_ext <<EOF |
---|
3739 | #line 3740 "configure" |
---|
3740 | #include "confdefs.h" |
---|
3741 | #include <stdio.h> |
---|
3742 | main() |
---|
3743 | { |
---|
3744 | FILE *f=fopen("conftestval", "w"); |
---|
3745 | if (!f) exit(1); |
---|
3746 | fprintf(f, "%d\n", sizeof(long)); |
---|
3747 | exit(0); |
---|
3748 | } |
---|
3749 | EOF |
---|
3750 | if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3751 | then |
---|
3752 | ac_cv_sizeof_long=`cat conftestval` |
---|
3753 | else |
---|
3754 | echo "configure: failed program was:" >&5 |
---|
3755 | cat conftest.$ac_ext >&5 |
---|
3756 | rm -fr conftest* |
---|
3757 | ac_cv_sizeof_long=0 |
---|
3758 | fi |
---|
3759 | rm -fr conftest* |
---|
3760 | fi |
---|
3761 | |
---|
3762 | fi |
---|
3763 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
3764 | cat >> confdefs.h <<EOF |
---|
3765 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
3766 | EOF |
---|
3767 | |
---|
3768 | |
---|
3769 | echo $ac_n "checking size of void*""... $ac_c" 1>&6 |
---|
3770 | echo "configure:3771: checking size of void*" >&5 |
---|
3771 | if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then |
---|
3772 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3773 | else |
---|
3774 | if test "$cross_compiling" = yes; then |
---|
3775 | ac_cv_sizeof_voidp=4 |
---|
3776 | else |
---|
3777 | cat > conftest.$ac_ext <<EOF |
---|
3778 | #line 3779 "configure" |
---|
3779 | #include "confdefs.h" |
---|
3780 | #include <stdio.h> |
---|
3781 | main() |
---|
3782 | { |
---|
3783 | FILE *f=fopen("conftestval", "w"); |
---|
3784 | if (!f) exit(1); |
---|
3785 | fprintf(f, "%d\n", sizeof(void*)); |
---|
3786 | exit(0); |
---|
3787 | } |
---|
3788 | EOF |
---|
3789 | if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3790 | then |
---|
3791 | ac_cv_sizeof_voidp=`cat conftestval` |
---|
3792 | else |
---|
3793 | echo "configure: failed program was:" >&5 |
---|
3794 | cat conftest.$ac_ext >&5 |
---|
3795 | rm -fr conftest* |
---|
3796 | ac_cv_sizeof_voidp=0 |
---|
3797 | fi |
---|
3798 | rm -fr conftest* |
---|
3799 | fi |
---|
3800 | |
---|
3801 | fi |
---|
3802 | echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 |
---|
3803 | cat >> confdefs.h <<EOF |
---|
3804 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
---|
3805 | EOF |
---|
3806 | |
---|
3807 | |
---|
3808 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
---|
3809 | echo "configure:3810: checking whether byte ordering is bigendian" >&5 |
---|
3810 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
---|
3811 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3812 | else |
---|
3813 | ac_cv_c_bigendian=unknown |
---|
3814 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
3815 | cat > conftest.$ac_ext <<EOF |
---|
3816 | #line 3817 "configure" |
---|
3817 | #include "confdefs.h" |
---|
3818 | #include <sys/types.h> |
---|
3819 | #include <sys/param.h> |
---|
3820 | int main() { |
---|
3821 | |
---|
3822 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
---|
3823 | bogus endian macros |
---|
3824 | #endif |
---|
3825 | ; return 0; } |
---|
3826 | EOF |
---|
3827 | if { (eval echo configure:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3828 | rm -rf conftest* |
---|
3829 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
3830 | cat > conftest.$ac_ext <<EOF |
---|
3831 | #line 3832 "configure" |
---|
3832 | #include "confdefs.h" |
---|
3833 | #include <sys/types.h> |
---|
3834 | #include <sys/param.h> |
---|
3835 | int main() { |
---|
3836 | |
---|
3837 | #if BYTE_ORDER != BIG_ENDIAN |
---|
3838 | not big endian |
---|
3839 | #endif |
---|
3840 | ; return 0; } |
---|
3841 | EOF |
---|
3842 | if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3843 | rm -rf conftest* |
---|
3844 | ac_cv_c_bigendian=yes |
---|
3845 | else |
---|
3846 | echo "configure: failed program was:" >&5 |
---|
3847 | cat conftest.$ac_ext >&5 |
---|
3848 | rm -rf conftest* |
---|
3849 | ac_cv_c_bigendian=no |
---|
3850 | fi |
---|
3851 | rm -f conftest* |
---|
3852 | else |
---|
3853 | echo "configure: failed program was:" >&5 |
---|
3854 | cat conftest.$ac_ext >&5 |
---|
3855 | fi |
---|
3856 | rm -f conftest* |
---|
3857 | if test $ac_cv_c_bigendian = unknown; then |
---|
3858 | if test "$cross_compiling" = yes; then |
---|
3859 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
3860 | else |
---|
3861 | cat > conftest.$ac_ext <<EOF |
---|
3862 | #line 3863 "configure" |
---|
3863 | #include "confdefs.h" |
---|
3864 | main () { |
---|
3865 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
3866 | union |
---|
3867 | { |
---|
3868 | long l; |
---|
3869 | char c[sizeof (long)]; |
---|
3870 | } u; |
---|
3871 | u.l = 1; |
---|
3872 | exit (u.c[sizeof (long) - 1] == 1); |
---|
3873 | } |
---|
3874 | EOF |
---|
3875 | if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
3876 | then |
---|
3877 | ac_cv_c_bigendian=no |
---|
3878 | else |
---|
3879 | echo "configure: failed program was:" >&5 |
---|
3880 | cat conftest.$ac_ext >&5 |
---|
3881 | rm -fr conftest* |
---|
3882 | ac_cv_c_bigendian=yes |
---|
3883 | fi |
---|
3884 | rm -fr conftest* |
---|
3885 | fi |
---|
3886 | |
---|
3887 | fi |
---|
3888 | fi |
---|
3889 | |
---|
3890 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
---|
3891 | if test $ac_cv_c_bigendian = yes; then |
---|
3892 | cat >> confdefs.h <<\EOF |
---|
3893 | #define WORDS_BIGENDIAN 1 |
---|
3894 | EOF |
---|
3895 | |
---|
3896 | fi |
---|
3897 | |
---|
3898 | |
---|
3899 | if test "$ac_cv_sizeof_int" != 4; then |
---|
3900 | { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } |
---|
3901 | fi |
---|
3902 | |
---|
3903 | if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then |
---|
3904 | { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } |
---|
3905 | fi |
---|
3906 | |
---|
3907 | echo $ac_n "checking which exponent types to use""... $ac_c" 1>&6 |
---|
3908 | echo "configure:3909: checking which exponent types to use" >&5 |
---|
3909 | if test "$with_exp_type" = "char"; then |
---|
3910 | echo "$ac_t""char" 1>&6 |
---|
3911 | cat >> confdefs.h <<\EOF |
---|
3912 | #define EXPONENT_TYPE char |
---|
3913 | EOF |
---|
3914 | |
---|
3915 | cat >> confdefs.h <<\EOF |
---|
3916 | #define SIZEOF_EXPONENT SIZEOF_CHAR |
---|
3917 | EOF |
---|
3918 | |
---|
3919 | elif test "with_exp_type" = "int"; then |
---|
3920 | echo "$ac_t""int" 1>&6 |
---|
3921 | cat >> confdefs.h <<\EOF |
---|
3922 | #define EXPONENT_TYPE int |
---|
3923 | EOF |
---|
3924 | |
---|
3925 | cat >> confdefs.h <<\EOF |
---|
3926 | #define SIZEOF_EXPONENT SIZEOF_INT |
---|
3927 | EOF |
---|
3928 | |
---|
3929 | else |
---|
3930 | echo "$ac_t""short" 1>&6 |
---|
3931 | cat >> confdefs.h <<\EOF |
---|
3932 | #define EXPONENT_TYPE short |
---|
3933 | EOF |
---|
3934 | |
---|
3935 | cat >> confdefs.h <<\EOF |
---|
3936 | #define SIZEOF_TYPE SIZEOF_SHORT |
---|
3937 | EOF |
---|
3938 | |
---|
3939 | fi |
---|
3940 | |
---|
3941 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
3942 | echo "configure:3943: checking whether _AIX is defined" >&5 |
---|
3943 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
3944 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3945 | else |
---|
3946 | cat > conftest.$ac_ext <<EOF |
---|
3947 | #line 3948 "configure" |
---|
3948 | #include "confdefs.h" |
---|
3949 | #ifdef _AIX |
---|
3950 | yes |
---|
3951 | #endif |
---|
3952 | |
---|
3953 | EOF |
---|
3954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3955 | egrep "yes" >/dev/null 2>&1; then |
---|
3956 | rm -rf conftest* |
---|
3957 | ac_cv_is_aix=yes |
---|
3958 | else |
---|
3959 | rm -rf conftest* |
---|
3960 | ac_cv_is_aix=no |
---|
3961 | fi |
---|
3962 | rm -f conftest* |
---|
3963 | |
---|
3964 | fi |
---|
3965 | |
---|
3966 | if test "$ac_cv_is_aix" = yes; then |
---|
3967 | echo "$ac_t""yes" 1>&6 |
---|
3968 | else |
---|
3969 | echo "$ac_t""no" 1>&6 |
---|
3970 | fi |
---|
3971 | |
---|
3972 | if test ${GXX} = yes; then |
---|
3973 | if test "$ac_cxxflags_set" = no; then |
---|
3974 | CXXFLAGS="-O3 -w -fomit-frame-pointer" |
---|
3975 | fi |
---|
3976 | CXXTEMPLFLAGS="-fno-implicit-templates" |
---|
3977 | if test "$ac_cv_is_aix" = yes; then |
---|
3978 | CXXNOOPTFLAGS="-w" |
---|
3979 | else |
---|
3980 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
3981 | fi |
---|
3982 | STATIC_LDFLAGS="-Xlinker -Bstatic" |
---|
3983 | else |
---|
3984 | CXXTEMPFLAGS="" |
---|
3985 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
3986 | STATIC_LDFLAGS="" |
---|
3987 | fi |
---|
3988 | |
---|
3989 | |
---|
3990 | |
---|
3991 | |
---|
3992 | if test ${GCC} = yes && test "$ac_cflags_set" = no ; then |
---|
3993 | CFLAGS="-O3 -w -fomit-frame-pointer" |
---|
3994 | fi |
---|
3995 | |
---|
3996 | trap '' 1 2 15 |
---|
3997 | cat > confcache <<\EOF |
---|
3998 | # This file is a shell script that caches the results of configure |
---|
3999 | # tests run on this system so they can be shared between configure |
---|
4000 | # scripts and configure runs. It is not useful on other systems. |
---|
4001 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
4002 | # |
---|
4003 | # By default, configure uses ./config.cache as the cache file, |
---|
4004 | # creating it if it does not exist already. You can give configure |
---|
4005 | # the --cache-file=FILE option to use a different cache file; that is |
---|
4006 | # what configure does when it calls configure scripts in |
---|
4007 | # subdirectories, so they share the cache. |
---|
4008 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
4009 | # config.status only pays attention to the cache file if you give it the |
---|
4010 | # --recheck option to rerun configure. |
---|
4011 | # |
---|
4012 | EOF |
---|
4013 | # The following way of writing the cache mishandles newlines in values, |
---|
4014 | # but we know of no workaround that is simple, portable, and efficient. |
---|
4015 | # So, don't put newlines in cache variables' values. |
---|
4016 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
4017 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
4018 | (set) 2>&1 | |
---|
4019 | case `(ac_space=' '; set) 2>&1` in |
---|
4020 | *ac_space=\ *) |
---|
4021 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
4022 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
4023 | sed -n \ |
---|
4024 | -e "s/'/'\\\\''/g" \ |
---|
4025 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
4026 | ;; |
---|
4027 | *) |
---|
4028 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
4029 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
4030 | ;; |
---|
4031 | esac >> confcache |
---|
4032 | if cmp -s $cache_file confcache; then |
---|
4033 | : |
---|
4034 | else |
---|
4035 | if test -w $cache_file; then |
---|
4036 | echo "updating cache $cache_file" |
---|
4037 | cat confcache > $cache_file |
---|
4038 | else |
---|
4039 | echo "not updating unwritable cache $cache_file" |
---|
4040 | fi |
---|
4041 | fi |
---|
4042 | rm -f confcache |
---|
4043 | |
---|
4044 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
4045 | |
---|
4046 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
4047 | # Let make expand exec_prefix. |
---|
4048 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
4049 | |
---|
4050 | # Any assignment to VPATH causes Sun make to only execute |
---|
4051 | # the first set of double-colon rules, so remove it if not needed. |
---|
4052 | # If there is a colon in the path, we need to keep it. |
---|
4053 | if test "x$srcdir" = x.; then |
---|
4054 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
4055 | fi |
---|
4056 | |
---|
4057 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
4058 | |
---|
4059 | DEFS=-DHAVE_CONFIG_H |
---|
4060 | |
---|
4061 | # Without the "./", some shells look in PATH for config.status. |
---|
4062 | : ${CONFIG_STATUS=./config.status} |
---|
4063 | |
---|
4064 | echo creating $CONFIG_STATUS |
---|
4065 | rm -f $CONFIG_STATUS |
---|
4066 | cat > $CONFIG_STATUS <<EOF |
---|
4067 | #! /bin/sh |
---|
4068 | # Generated automatically by configure. |
---|
4069 | # Run this file to recreate the current configuration. |
---|
4070 | # This directory was configured as follows, |
---|
4071 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
4072 | # |
---|
4073 | # $0 $ac_configure_args |
---|
4074 | # |
---|
4075 | # Compiler output produced by configure, useful for debugging |
---|
4076 | # configure, is in ./config.log if it exists. |
---|
4077 | |
---|
4078 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
4079 | for ac_option |
---|
4080 | do |
---|
4081 | case "\$ac_option" in |
---|
4082 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4083 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
4084 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
4085 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
4086 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
4087 | exit 0 ;; |
---|
4088 | -help | --help | --hel | --he | --h) |
---|
4089 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
4090 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
4091 | esac |
---|
4092 | done |
---|
4093 | |
---|
4094 | ac_given_srcdir=$srcdir |
---|
4095 | |
---|
4096 | trap 'rm -fr `echo "Makefile doc/Makefile newdoc/Makefile mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
4097 | EOF |
---|
4098 | cat >> $CONFIG_STATUS <<EOF |
---|
4099 | |
---|
4100 | # Protect against being on the right side of a sed subst in config.status. |
---|
4101 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
4102 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
4103 | $ac_vpsub |
---|
4104 | $extrasub |
---|
4105 | s%@CFLAGS@%$CFLAGS%g |
---|
4106 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
4107 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
4108 | s%@DEFS@%$DEFS%g |
---|
4109 | s%@LDFLAGS@%$LDFLAGS%g |
---|
4110 | s%@LIBS@%$LIBS%g |
---|
4111 | s%@exec_prefix@%$exec_prefix%g |
---|
4112 | s%@prefix@%$prefix%g |
---|
4113 | s%@program_transform_name@%$program_transform_name%g |
---|
4114 | s%@bindir@%$bindir%g |
---|
4115 | s%@sbindir@%$sbindir%g |
---|
4116 | s%@libexecdir@%$libexecdir%g |
---|
4117 | s%@datadir@%$datadir%g |
---|
4118 | s%@sysconfdir@%$sysconfdir%g |
---|
4119 | s%@sharedstatedir@%$sharedstatedir%g |
---|
4120 | s%@localstatedir@%$localstatedir%g |
---|
4121 | s%@libdir@%$libdir%g |
---|
4122 | s%@includedir@%$includedir%g |
---|
4123 | s%@oldincludedir@%$oldincludedir%g |
---|
4124 | s%@infodir@%$infodir%g |
---|
4125 | s%@mandir@%$mandir%g |
---|
4126 | s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g |
---|
4127 | s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g |
---|
4128 | s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g |
---|
4129 | s%@LEX@%$LEX%g |
---|
4130 | s%@LEXLIB@%$LEXLIB%g |
---|
4131 | s%@LEXP@%$LEXP%g |
---|
4132 | s%@CC@%$CC%g |
---|
4133 | s%@CPP@%$CPP%g |
---|
4134 | s%@CXX@%$CXX%g |
---|
4135 | s%@SET_MAKE@%$SET_MAKE%g |
---|
4136 | s%@DOS_CROSS@%$DOS_CROSS%g |
---|
4137 | s%@singulardatadir@%$singulardatadir%g |
---|
4138 | s%@INFO@%$INFO%g |
---|
4139 | s%@PERL@%$PERL%g |
---|
4140 | s%@WITH_MP@%$WITH_MP%g |
---|
4141 | s%@WITH_FACTORY@%$WITH_FACTORY%g |
---|
4142 | s%@WITH_LIBFAC@%$WITH_LIBFAC%g |
---|
4143 | s%@NEED_LIBS@%$NEED_LIBS%g |
---|
4144 | s%@WITH_DBM@%$WITH_DBM%g |
---|
4145 | s%@ALLOCA@%$ALLOCA%g |
---|
4146 | s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g |
---|
4147 | s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g |
---|
4148 | s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g |
---|
4149 | |
---|
4150 | CEOF |
---|
4151 | EOF |
---|
4152 | |
---|
4153 | cat >> $CONFIG_STATUS <<\EOF |
---|
4154 | |
---|
4155 | # Split the substitutions into bite-sized pieces for seds with |
---|
4156 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
4157 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
4158 | ac_file=1 # Number of current file. |
---|
4159 | ac_beg=1 # First line for current file. |
---|
4160 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
4161 | ac_more_lines=: |
---|
4162 | ac_sed_cmds="" |
---|
4163 | while $ac_more_lines; do |
---|
4164 | if test $ac_beg -gt 1; then |
---|
4165 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4166 | else |
---|
4167 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
4168 | fi |
---|
4169 | if test ! -s conftest.s$ac_file; then |
---|
4170 | ac_more_lines=false |
---|
4171 | rm -f conftest.s$ac_file |
---|
4172 | else |
---|
4173 | if test -z "$ac_sed_cmds"; then |
---|
4174 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
4175 | else |
---|
4176 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
4177 | fi |
---|
4178 | ac_file=`expr $ac_file + 1` |
---|
4179 | ac_beg=$ac_end |
---|
4180 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
4181 | fi |
---|
4182 | done |
---|
4183 | if test -z "$ac_sed_cmds"; then |
---|
4184 | ac_sed_cmds=cat |
---|
4185 | fi |
---|
4186 | EOF |
---|
4187 | |
---|
4188 | cat >> $CONFIG_STATUS <<EOF |
---|
4189 | |
---|
4190 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile newdoc/Makefile"} |
---|
4191 | EOF |
---|
4192 | cat >> $CONFIG_STATUS <<\EOF |
---|
4193 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
4194 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4195 | case "$ac_file" in |
---|
4196 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4197 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4198 | *) ac_file_in="${ac_file}.in" ;; |
---|
4199 | esac |
---|
4200 | |
---|
4201 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
4202 | |
---|
4203 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4204 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4205 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4206 | # The file is in a subdirectory. |
---|
4207 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4208 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
4209 | # A "../" for each directory in $ac_dir_suffix. |
---|
4210 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
4211 | else |
---|
4212 | ac_dir_suffix= ac_dots= |
---|
4213 | fi |
---|
4214 | |
---|
4215 | case "$ac_given_srcdir" in |
---|
4216 | .) srcdir=. |
---|
4217 | if test -z "$ac_dots"; then top_srcdir=. |
---|
4218 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
4219 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
4220 | *) # Relative path. |
---|
4221 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
4222 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
4223 | esac |
---|
4224 | |
---|
4225 | |
---|
4226 | echo creating "$ac_file" |
---|
4227 | rm -f "$ac_file" |
---|
4228 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
4229 | case "$ac_file" in |
---|
4230 | *Makefile*) ac_comsub="1i\\ |
---|
4231 | # $configure_input" ;; |
---|
4232 | *) ac_comsub= ;; |
---|
4233 | esac |
---|
4234 | |
---|
4235 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4236 | sed -e "$ac_comsub |
---|
4237 | s%@configure_input@%$configure_input%g |
---|
4238 | s%@srcdir@%$srcdir%g |
---|
4239 | s%@top_srcdir@%$top_srcdir%g |
---|
4240 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
4241 | fi; done |
---|
4242 | rm -f conftest.s* |
---|
4243 | |
---|
4244 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
4245 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
4246 | # |
---|
4247 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
4248 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
4249 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
4250 | ac_dC='\3' |
---|
4251 | ac_dD='%g' |
---|
4252 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
4253 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4254 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
4255 | ac_uC=' ' |
---|
4256 | ac_uD='\4%g' |
---|
4257 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
4258 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
4259 | ac_eB='$%\1#\2define\3' |
---|
4260 | ac_eC=' ' |
---|
4261 | ac_eD='%g' |
---|
4262 | |
---|
4263 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
4264 | EOF |
---|
4265 | cat >> $CONFIG_STATUS <<EOF |
---|
4266 | CONFIG_HEADERS="mod2.h" |
---|
4267 | EOF |
---|
4268 | cat >> $CONFIG_STATUS <<\EOF |
---|
4269 | fi |
---|
4270 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
4271 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
4272 | case "$ac_file" in |
---|
4273 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
4274 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
4275 | *) ac_file_in="${ac_file}.in" ;; |
---|
4276 | esac |
---|
4277 | |
---|
4278 | echo creating $ac_file |
---|
4279 | |
---|
4280 | rm -f conftest.frag conftest.in conftest.out |
---|
4281 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
4282 | cat $ac_file_inputs > conftest.in |
---|
4283 | |
---|
4284 | EOF |
---|
4285 | |
---|
4286 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
4287 | # the proper values into config.h.in to produce config.h. And first: |
---|
4288 | # Protect against being on the right side of a sed subst in config.status. |
---|
4289 | # Protect against being in an unquoted here document in config.status. |
---|
4290 | rm -f conftest.vals |
---|
4291 | cat > conftest.hdr <<\EOF |
---|
4292 | s/[\\&%]/\\&/g |
---|
4293 | s%[\\$`]%\\&%g |
---|
4294 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
4295 | s%ac_d%ac_u%gp |
---|
4296 | s%ac_u%ac_e%gp |
---|
4297 | EOF |
---|
4298 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
4299 | rm -f conftest.hdr |
---|
4300 | |
---|
4301 | # This sed command replaces #undef with comments. This is necessary, for |
---|
4302 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
4303 | # on some systems where configure will not decide to define it. |
---|
4304 | cat >> conftest.vals <<\EOF |
---|
4305 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
4306 | EOF |
---|
4307 | |
---|
4308 | # Break up conftest.vals because some shells have a limit on |
---|
4309 | # the size of here documents, and old seds have small limits too. |
---|
4310 | |
---|
4311 | rm -f conftest.tail |
---|
4312 | while : |
---|
4313 | do |
---|
4314 | ac_lines=`grep -c . conftest.vals` |
---|
4315 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
4316 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
4317 | # Write a limited-size here document to conftest.frag. |
---|
4318 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
4319 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
4320 | echo 'CEOF |
---|
4321 | sed -f conftest.frag conftest.in > conftest.out |
---|
4322 | rm -f conftest.in |
---|
4323 | mv conftest.out conftest.in |
---|
4324 | ' >> $CONFIG_STATUS |
---|
4325 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
4326 | rm -f conftest.vals |
---|
4327 | mv conftest.tail conftest.vals |
---|
4328 | done |
---|
4329 | rm -f conftest.vals |
---|
4330 | |
---|
4331 | cat >> $CONFIG_STATUS <<\EOF |
---|
4332 | rm -f conftest.frag conftest.h |
---|
4333 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
4334 | cat conftest.in >> conftest.h |
---|
4335 | rm -f conftest.in |
---|
4336 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
4337 | echo "$ac_file is unchanged" |
---|
4338 | rm -f conftest.h |
---|
4339 | else |
---|
4340 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
4341 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
4342 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
4343 | # The file is in a subdirectory. |
---|
4344 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
4345 | fi |
---|
4346 | rm -f $ac_file |
---|
4347 | mv conftest.h $ac_file |
---|
4348 | fi |
---|
4349 | fi; done |
---|
4350 | |
---|
4351 | EOF |
---|
4352 | cat >> $CONFIG_STATUS <<EOF |
---|
4353 | |
---|
4354 | EOF |
---|
4355 | cat >> $CONFIG_STATUS <<\EOF |
---|
4356 | \ |
---|
4357 | if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi |
---|
4358 | exit 0 |
---|
4359 | EOF |
---|
4360 | chmod +x $CONFIG_STATUS |
---|
4361 | rm -fr confdefs* $ac_clean_files |
---|
4362 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
4363 | |
---|
4364 | |
---|
4365 | |
---|
4366 | |
---|
4367 | |
---|