1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_default_prefix=`pwd`/.. |
---|
15 | ac_help="$ac_help |
---|
16 | --with-rootdir=DIR use DIR ass compiled-in root directory |
---|
17 | (default is PREFIX)" |
---|
18 | ac_help="$ac_help |
---|
19 | --with-lex=[LEX,no] uses LEX as lex program, default is flex" |
---|
20 | ac_help="$ac_help |
---|
21 | --with-readline=[dynamic,static,no] |
---|
22 | do use dynamic/static/no readline for fancy display" |
---|
23 | ac_help="$ac_help |
---|
24 | --without-Boost do not use Boost " |
---|
25 | ac_help="$ac_help |
---|
26 | --with-stdvec use std::vector " |
---|
27 | ac_help="$ac_help |
---|
28 | --without-MP do not use MP (no MP links)" |
---|
29 | ac_help="$ac_help |
---|
30 | --without-dbm do not use dbm (no DBM links)" |
---|
31 | ac_help="$ac_help |
---|
32 | --without-factory do not use factory (no poly factorization)" |
---|
33 | ac_help="$ac_help |
---|
34 | --without-libfac do not use libfac (no primary decompositions)" |
---|
35 | ac_help="$ac_help |
---|
36 | --with-namespaces do compile namespace support" |
---|
37 | ac_help="$ac_help |
---|
38 | --without-dl do not use dynamic linking, modules, and kernel" |
---|
39 | ac_help="$ac_help |
---|
40 | --with-dynamic-modules do compile with dynamic modules support" |
---|
41 | ac_help="$ac_help |
---|
42 | --without-dynamic-kernel |
---|
43 | do not compile with dynamic kernel parts" |
---|
44 | ac_help="$ac_help |
---|
45 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic" |
---|
46 | ac_help="$ac_help |
---|
47 | --with-svd use libsvd" |
---|
48 | ac_help="$ac_help |
---|
49 | --without-Plural do compile without Plural support" |
---|
50 | ac_help="$ac_help |
---|
51 | --with-NTL build for use with NTL." |
---|
52 | |
---|
53 | # Initialize some variables set by options. |
---|
54 | # The variables have the same names as the options, with |
---|
55 | # dashes changed to underlines. |
---|
56 | build=NONE |
---|
57 | cache_file=./config.cache |
---|
58 | exec_prefix=NONE |
---|
59 | host=NONE |
---|
60 | no_create= |
---|
61 | nonopt=NONE |
---|
62 | no_recursion= |
---|
63 | prefix=NONE |
---|
64 | program_prefix=NONE |
---|
65 | program_suffix=NONE |
---|
66 | program_transform_name=s,x,x, |
---|
67 | silent= |
---|
68 | site= |
---|
69 | srcdir= |
---|
70 | target=NONE |
---|
71 | verbose= |
---|
72 | x_includes=NONE |
---|
73 | x_libraries=NONE |
---|
74 | bindir='${exec_prefix}/bin' |
---|
75 | sbindir='${exec_prefix}/sbin' |
---|
76 | libexecdir='${exec_prefix}/libexec' |
---|
77 | datadir='${prefix}/share' |
---|
78 | sysconfdir='${prefix}/etc' |
---|
79 | sharedstatedir='${prefix}/com' |
---|
80 | localstatedir='${prefix}/var' |
---|
81 | libdir='${exec_prefix}/lib' |
---|
82 | includedir='${prefix}/include' |
---|
83 | oldincludedir='/usr/include' |
---|
84 | infodir='${prefix}/info' |
---|
85 | mandir='${prefix}/man' |
---|
86 | |
---|
87 | # Initialize some other variables. |
---|
88 | subdirs= |
---|
89 | MFLAGS= MAKEFLAGS= |
---|
90 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
91 | # Maximum number of lines to put in a shell here document. |
---|
92 | ac_max_here_lines=12 |
---|
93 | |
---|
94 | ac_prev= |
---|
95 | for ac_option |
---|
96 | do |
---|
97 | |
---|
98 | # If the previous option needs an argument, assign it. |
---|
99 | if test -n "$ac_prev"; then |
---|
100 | eval "$ac_prev=\$ac_option" |
---|
101 | ac_prev= |
---|
102 | continue |
---|
103 | fi |
---|
104 | |
---|
105 | case "$ac_option" in |
---|
106 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
107 | *) ac_optarg= ;; |
---|
108 | esac |
---|
109 | |
---|
110 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
111 | |
---|
112 | case "$ac_option" in |
---|
113 | |
---|
114 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
115 | ac_prev=bindir ;; |
---|
116 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
117 | bindir="$ac_optarg" ;; |
---|
118 | |
---|
119 | -build | --build | --buil | --bui | --bu) |
---|
120 | ac_prev=build ;; |
---|
121 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
122 | build="$ac_optarg" ;; |
---|
123 | |
---|
124 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
125 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
126 | ac_prev=cache_file ;; |
---|
127 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
128 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
129 | cache_file="$ac_optarg" ;; |
---|
130 | |
---|
131 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
132 | ac_prev=datadir ;; |
---|
133 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
134 | | --da=*) |
---|
135 | datadir="$ac_optarg" ;; |
---|
136 | |
---|
137 | -disable-* | --disable-*) |
---|
138 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
139 | # Reject names that are not valid shell variable names. |
---|
140 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
142 | fi |
---|
143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
144 | eval "enable_${ac_feature}=no" ;; |
---|
145 | |
---|
146 | -enable-* | --enable-*) |
---|
147 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
148 | # Reject names that are not valid shell variable names. |
---|
149 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
150 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
151 | fi |
---|
152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
153 | case "$ac_option" in |
---|
154 | *=*) ;; |
---|
155 | *) ac_optarg=yes ;; |
---|
156 | esac |
---|
157 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
158 | |
---|
159 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
160 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
161 | | --exec | --exe | --ex) |
---|
162 | ac_prev=exec_prefix ;; |
---|
163 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
164 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
165 | | --exec=* | --exe=* | --ex=*) |
---|
166 | exec_prefix="$ac_optarg" ;; |
---|
167 | |
---|
168 | -gas | --gas | --ga | --g) |
---|
169 | # Obsolete; use --with-gas. |
---|
170 | with_gas=yes ;; |
---|
171 | |
---|
172 | -help | --help | --hel | --he) |
---|
173 | # Omit some internal or obsolete options to make the list less imposing. |
---|
174 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
175 | cat << EOF |
---|
176 | Usage: configure [options] [host] |
---|
177 | Options: [defaults in brackets after descriptions] |
---|
178 | Configuration: |
---|
179 | --cache-file=FILE cache test results in FILE |
---|
180 | --help print this message |
---|
181 | --no-create do not create output files |
---|
182 | --quiet, --silent do not print \`checking...' messages |
---|
183 | --version print the version of autoconf that created configure |
---|
184 | Directory and file names: |
---|
185 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
186 | [$ac_default_prefix] |
---|
187 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
188 | [same as prefix] |
---|
189 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
190 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
191 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
192 | --datadir=DIR read-only architecture-independent data in DIR |
---|
193 | [PREFIX/share] |
---|
194 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
195 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
196 | [PREFIX/com] |
---|
197 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
198 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
199 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
200 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
201 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
202 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
203 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
204 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
205 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
206 | --program-transform-name=PROGRAM |
---|
207 | run sed PROGRAM on installed program names |
---|
208 | EOF |
---|
209 | cat << EOF |
---|
210 | Host type: |
---|
211 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
212 | --host=HOST configure for HOST [guessed] |
---|
213 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
214 | Features and packages: |
---|
215 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
216 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
217 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
218 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
219 | --x-includes=DIR X include files are in DIR |
---|
220 | --x-libraries=DIR X library files are in DIR |
---|
221 | EOF |
---|
222 | if test -n "$ac_help"; then |
---|
223 | echo "--enable and --with options recognized:$ac_help" |
---|
224 | fi |
---|
225 | exit 0 ;; |
---|
226 | |
---|
227 | -host | --host | --hos | --ho) |
---|
228 | ac_prev=host ;; |
---|
229 | -host=* | --host=* | --hos=* | --ho=*) |
---|
230 | host="$ac_optarg" ;; |
---|
231 | |
---|
232 | -includedir | --includedir | --includedi | --included | --include \ |
---|
233 | | --includ | --inclu | --incl | --inc) |
---|
234 | ac_prev=includedir ;; |
---|
235 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
236 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
237 | includedir="$ac_optarg" ;; |
---|
238 | |
---|
239 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
240 | ac_prev=infodir ;; |
---|
241 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
242 | infodir="$ac_optarg" ;; |
---|
243 | |
---|
244 | -libdir | --libdir | --libdi | --libd) |
---|
245 | ac_prev=libdir ;; |
---|
246 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
247 | libdir="$ac_optarg" ;; |
---|
248 | |
---|
249 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
250 | | --libexe | --libex | --libe) |
---|
251 | ac_prev=libexecdir ;; |
---|
252 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
253 | | --libexe=* | --libex=* | --libe=*) |
---|
254 | libexecdir="$ac_optarg" ;; |
---|
255 | |
---|
256 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
257 | | --localstate | --localstat | --localsta | --localst \ |
---|
258 | | --locals | --local | --loca | --loc | --lo) |
---|
259 | ac_prev=localstatedir ;; |
---|
260 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
261 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
262 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
263 | localstatedir="$ac_optarg" ;; |
---|
264 | |
---|
265 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
266 | ac_prev=mandir ;; |
---|
267 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
268 | mandir="$ac_optarg" ;; |
---|
269 | |
---|
270 | -nfp | --nfp | --nf) |
---|
271 | # Obsolete; use --without-fp. |
---|
272 | with_fp=no ;; |
---|
273 | |
---|
274 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
275 | | --no-cr | --no-c) |
---|
276 | no_create=yes ;; |
---|
277 | |
---|
278 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
279 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
280 | no_recursion=yes ;; |
---|
281 | |
---|
282 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
283 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
284 | | --oldin | --oldi | --old | --ol | --o) |
---|
285 | ac_prev=oldincludedir ;; |
---|
286 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
287 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
288 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
289 | oldincludedir="$ac_optarg" ;; |
---|
290 | |
---|
291 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
292 | ac_prev=prefix ;; |
---|
293 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
294 | prefix="$ac_optarg" ;; |
---|
295 | |
---|
296 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
297 | | --program-pre | --program-pr | --program-p) |
---|
298 | ac_prev=program_prefix ;; |
---|
299 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
300 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
301 | program_prefix="$ac_optarg" ;; |
---|
302 | |
---|
303 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
304 | | --program-suf | --program-su | --program-s) |
---|
305 | ac_prev=program_suffix ;; |
---|
306 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
307 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
308 | program_suffix="$ac_optarg" ;; |
---|
309 | |
---|
310 | -program-transform-name | --program-transform-name \ |
---|
311 | | --program-transform-nam | --program-transform-na \ |
---|
312 | | --program-transform-n | --program-transform- \ |
---|
313 | | --program-transform | --program-transfor \ |
---|
314 | | --program-transfo | --program-transf \ |
---|
315 | | --program-trans | --program-tran \ |
---|
316 | | --progr-tra | --program-tr | --program-t) |
---|
317 | ac_prev=program_transform_name ;; |
---|
318 | -program-transform-name=* | --program-transform-name=* \ |
---|
319 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
320 | | --program-transform-n=* | --program-transform-=* \ |
---|
321 | | --program-transform=* | --program-transfor=* \ |
---|
322 | | --program-transfo=* | --program-transf=* \ |
---|
323 | | --program-trans=* | --program-tran=* \ |
---|
324 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
325 | program_transform_name="$ac_optarg" ;; |
---|
326 | |
---|
327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
328 | | -silent | --silent | --silen | --sile | --sil) |
---|
329 | silent=yes ;; |
---|
330 | |
---|
331 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
332 | ac_prev=sbindir ;; |
---|
333 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
334 | | --sbi=* | --sb=*) |
---|
335 | sbindir="$ac_optarg" ;; |
---|
336 | |
---|
337 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
338 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
339 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
340 | | --sha | --sh) |
---|
341 | ac_prev=sharedstatedir ;; |
---|
342 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
343 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
344 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
345 | | --sha=* | --sh=*) |
---|
346 | sharedstatedir="$ac_optarg" ;; |
---|
347 | |
---|
348 | -site | --site | --sit) |
---|
349 | ac_prev=site ;; |
---|
350 | -site=* | --site=* | --sit=*) |
---|
351 | site="$ac_optarg" ;; |
---|
352 | |
---|
353 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
354 | ac_prev=srcdir ;; |
---|
355 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
356 | srcdir="$ac_optarg" ;; |
---|
357 | |
---|
358 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
359 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
360 | ac_prev=sysconfdir ;; |
---|
361 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
362 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
363 | sysconfdir="$ac_optarg" ;; |
---|
364 | |
---|
365 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
366 | ac_prev=target ;; |
---|
367 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
368 | target="$ac_optarg" ;; |
---|
369 | |
---|
370 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
371 | verbose=yes ;; |
---|
372 | |
---|
373 | -version | --version | --versio | --versi | --vers) |
---|
374 | echo "configure generated by autoconf version 2.13" |
---|
375 | exit 0 ;; |
---|
376 | |
---|
377 | -with-* | --with-*) |
---|
378 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
379 | # Reject names that are not valid shell variable names. |
---|
380 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
381 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
382 | fi |
---|
383 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
384 | case "$ac_option" in |
---|
385 | *=*) ;; |
---|
386 | *) ac_optarg=yes ;; |
---|
387 | esac |
---|
388 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
389 | |
---|
390 | -without-* | --without-*) |
---|
391 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
392 | # Reject names that are not valid shell variable names. |
---|
393 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
394 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
395 | fi |
---|
396 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
397 | eval "with_${ac_package}=no" ;; |
---|
398 | |
---|
399 | --x) |
---|
400 | # Obsolete; use --with-x. |
---|
401 | with_x=yes ;; |
---|
402 | |
---|
403 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
404 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
405 | ac_prev=x_includes ;; |
---|
406 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
407 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
408 | x_includes="$ac_optarg" ;; |
---|
409 | |
---|
410 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
411 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
412 | ac_prev=x_libraries ;; |
---|
413 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
414 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
415 | x_libraries="$ac_optarg" ;; |
---|
416 | |
---|
417 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
418 | ;; |
---|
419 | |
---|
420 | *) |
---|
421 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
422 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
423 | fi |
---|
424 | if test "x$nonopt" != xNONE; then |
---|
425 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
426 | fi |
---|
427 | nonopt="$ac_option" |
---|
428 | ;; |
---|
429 | |
---|
430 | esac |
---|
431 | done |
---|
432 | |
---|
433 | if test -n "$ac_prev"; then |
---|
434 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
435 | fi |
---|
436 | |
---|
437 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
438 | |
---|
439 | # File descriptor usage: |
---|
440 | # 0 standard input |
---|
441 | # 1 file creation |
---|
442 | # 2 errors and warnings |
---|
443 | # 3 some systems may open it to /dev/tty |
---|
444 | # 4 used on the Kubota Titan |
---|
445 | # 6 checking for... messages and results |
---|
446 | # 5 compiler messages saved in config.log |
---|
447 | if test "$silent" = yes; then |
---|
448 | exec 6>/dev/null |
---|
449 | else |
---|
450 | exec 6>&1 |
---|
451 | fi |
---|
452 | exec 5>./config.log |
---|
453 | |
---|
454 | echo "\ |
---|
455 | This file contains any messages produced by compilers while |
---|
456 | running configure, to aid debugging if configure makes a mistake. |
---|
457 | " 1>&5 |
---|
458 | |
---|
459 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
460 | # Also quote any args containing shell metacharacters. |
---|
461 | ac_configure_args= |
---|
462 | for ac_arg |
---|
463 | do |
---|
464 | case "$ac_arg" in |
---|
465 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
466 | | --no-cr | --no-c) ;; |
---|
467 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
468 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
469 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
470 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
471 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
472 | esac |
---|
473 | done |
---|
474 | |
---|
475 | # NLS nuisances. |
---|
476 | # Only set these to C if already set. These must not be set unconditionally |
---|
477 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
478 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
479 | # Non-C LC_CTYPE values break the ctype check. |
---|
480 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
481 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
482 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
483 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
484 | |
---|
485 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
486 | rm -rf conftest* confdefs.h |
---|
487 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
488 | echo > confdefs.h |
---|
489 | |
---|
490 | # A filename unique to this package, relative to the directory that |
---|
491 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
492 | ac_unique_file=tesths.cc |
---|
493 | |
---|
494 | # Find the source files, if location was not specified. |
---|
495 | if test -z "$srcdir"; then |
---|
496 | ac_srcdir_defaulted=yes |
---|
497 | # Try the directory containing this script, then its parent. |
---|
498 | ac_prog=$0 |
---|
499 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
500 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
501 | srcdir=$ac_confdir |
---|
502 | if test ! -r $srcdir/$ac_unique_file; then |
---|
503 | srcdir=.. |
---|
504 | fi |
---|
505 | else |
---|
506 | ac_srcdir_defaulted=no |
---|
507 | fi |
---|
508 | if test ! -r $srcdir/$ac_unique_file; then |
---|
509 | if test "$ac_srcdir_defaulted" = yes; then |
---|
510 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
511 | else |
---|
512 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
513 | fi |
---|
514 | fi |
---|
515 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
516 | |
---|
517 | # Prefer explicitly selected file to automatically selected ones. |
---|
518 | if test -z "$CONFIG_SITE"; then |
---|
519 | if test "x$prefix" != xNONE; then |
---|
520 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
521 | else |
---|
522 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
523 | fi |
---|
524 | fi |
---|
525 | for ac_site_file in $CONFIG_SITE; do |
---|
526 | if test -r "$ac_site_file"; then |
---|
527 | echo "loading site script $ac_site_file" |
---|
528 | . "$ac_site_file" |
---|
529 | fi |
---|
530 | done |
---|
531 | |
---|
532 | if test -r "$cache_file"; then |
---|
533 | echo "loading cache $cache_file" |
---|
534 | . $cache_file |
---|
535 | else |
---|
536 | echo "creating cache $cache_file" |
---|
537 | > $cache_file |
---|
538 | fi |
---|
539 | |
---|
540 | ac_ext=c |
---|
541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
542 | ac_cpp='$CPP $CPPFLAGS' |
---|
543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
545 | cross_compiling=$ac_cv_prog_cc_cross |
---|
546 | |
---|
547 | ac_exeext= |
---|
548 | ac_objext=o |
---|
549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
552 | ac_n= ac_c=' |
---|
553 | ' ac_t=' ' |
---|
554 | else |
---|
555 | ac_n=-n ac_c= ac_t= |
---|
556 | fi |
---|
557 | else |
---|
558 | ac_n= ac_c='\c' ac_t= |
---|
559 | fi |
---|
560 | |
---|
561 | |
---|
562 | |
---|
563 | |
---|
564 | |
---|
565 | |
---|
566 | echo $ac_n "checking CPU for singular""... $ac_c" 1>&6 |
---|
567 | echo "configure:568: checking CPU for singular" >&5 |
---|
568 | ac_cv_singcpuname=`uname -p` |
---|
569 | echo "$ac_t""$ac_cv_singcpuname" 1>&6 |
---|
570 | |
---|
571 | echo $ac_n "checking uname for singular""... $ac_c" 1>&6 |
---|
572 | echo "configure:573: checking uname for singular" >&5 |
---|
573 | if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then |
---|
574 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
575 | else |
---|
576 | ac_cv_singuname="unknown" |
---|
577 | if test -r "singuname.sh"; then |
---|
578 | if (/bin/sh singuname.sh >/dev/null 2>&1) then |
---|
579 | ac_cv_singuname=`/bin/sh singuname.sh` |
---|
580 | fi |
---|
581 | fi |
---|
582 | if test "$ac_cv_singuname" = unknown && test -r "../singuname.sh"; then |
---|
583 | if (/bin/sh ../singuname.sh >/dev/null 2>&1) then |
---|
584 | ac_cv_singuname=`/bin/sh ../singuname.sh` |
---|
585 | fi |
---|
586 | fi |
---|
587 | |
---|
588 | fi |
---|
589 | |
---|
590 | echo "$ac_t""$ac_cv_singuname" 1>&6 |
---|
591 | if test "$ac_cv_singuname" = unknown; then |
---|
592 | echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2 |
---|
593 | ac_cv_singuname="unknown" |
---|
594 | fi |
---|
595 | cat >> confdefs.h <<EOF |
---|
596 | #define S_UNAME "$ac_cv_singuname" |
---|
597 | EOF |
---|
598 | |
---|
599 | SINGUNAME=$ac_cv_singuname |
---|
600 | |
---|
601 | |
---|
602 | if test "$ac_cv_singuname" = ix86-Win; then |
---|
603 | EXEC_EXT=".exe" |
---|
604 | cat >> confdefs.h <<\EOF |
---|
605 | #define SI_CPU_I386 1 |
---|
606 | EOF |
---|
607 | |
---|
608 | |
---|
609 | echo "$ac_t""SI_CPU_I386" 1>&6 |
---|
610 | fi |
---|
611 | |
---|
612 | if test "$ac_cv_ac_cv_singcpuname" = sparc; then |
---|
613 | cat >> confdefs.h <<\EOF |
---|
614 | #define SI_CPU_SPARC 1 |
---|
615 | EOF |
---|
616 | |
---|
617 | |
---|
618 | echo "$ac_t""SI_CPU_SPARC" 1>&6 |
---|
619 | fi |
---|
620 | if test "$ac_cv_singuname" = x86_64-Linux; then |
---|
621 | cat >> confdefs.h <<\EOF |
---|
622 | #define SI_CPU_X86_64 1 |
---|
623 | EOF |
---|
624 | |
---|
625 | |
---|
626 | echo "$ac_t""SI_CPU_X86_64" 1>&6 |
---|
627 | fi |
---|
628 | if test "$ac_cv_singuname" = ix86-Linux; then |
---|
629 | cat >> confdefs.h <<\EOF |
---|
630 | #define SI_CPU_I386 1 |
---|
631 | EOF |
---|
632 | |
---|
633 | |
---|
634 | echo "$ac_t""SI_CPU_I386" 1>&6 |
---|
635 | fi |
---|
636 | if test "$ac_cv_singuname" = IA64-Linux; then |
---|
637 | cat >> confdefs.h <<\EOF |
---|
638 | #define SI_CPU_IA64 1 |
---|
639 | EOF |
---|
640 | |
---|
641 | |
---|
642 | echo "$ac_t""SI_CPU_IA64" 1>&6 |
---|
643 | fi |
---|
644 | if test "$ac_cv_singuname" = ppc-Linux; then |
---|
645 | cat >> confdefs.h <<\EOF |
---|
646 | #define SI_CPU_PPC 1 |
---|
647 | EOF |
---|
648 | |
---|
649 | |
---|
650 | echo "$ac_t""SI_CPU_PPC" 1>&6 |
---|
651 | fi |
---|
652 | if test "$ac_cv_singuname" = ppcMac-darwin; then |
---|
653 | cat >> confdefs.h <<\EOF |
---|
654 | #define SI_CPU_PPC 1 |
---|
655 | EOF |
---|
656 | |
---|
657 | |
---|
658 | echo "$ac_t""SI_CPU_PPC" 1>&6 |
---|
659 | fi |
---|
660 | |
---|
661 | SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` |
---|
662 | |
---|
663 | |
---|
664 | # stupid Win programs do not like dots in their pathnames |
---|
665 | VERSION_SEP="-" |
---|
666 | |
---|
667 | |
---|
668 | SINGULAR_MAJOR_VERSION=${SINGULAR_MAJOR_VERSION:-3} |
---|
669 | SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-1} |
---|
670 | SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-0} |
---|
671 | SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}" |
---|
672 | VERSION_DATE=${VERSION_DATE:-"Aug 2008"} |
---|
673 | |
---|
674 | |
---|
675 | |
---|
676 | |
---|
677 | |
---|
678 | |
---|
679 | cat >> confdefs.h <<EOF |
---|
680 | #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} |
---|
681 | EOF |
---|
682 | |
---|
683 | cat >> confdefs.h <<EOF |
---|
684 | #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} |
---|
685 | EOF |
---|
686 | |
---|
687 | cat >> confdefs.h <<EOF |
---|
688 | #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} |
---|
689 | EOF |
---|
690 | |
---|
691 | cat >> confdefs.h <<EOF |
---|
692 | #define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" |
---|
693 | EOF |
---|
694 | |
---|
695 | cat >> confdefs.h <<EOF |
---|
696 | #define S_VERSION2 "${VERSION_DATE}" |
---|
697 | EOF |
---|
698 | |
---|
699 | cat >> confdefs.h <<EOF |
---|
700 | #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} |
---|
701 | EOF |
---|
702 | |
---|
703 | |
---|
704 | |
---|
705 | if test "${CXXFLAGS+set}" != set; then |
---|
706 | ac_cxxflags_set=no |
---|
707 | CXXFLAGS="-O" |
---|
708 | fi |
---|
709 | if test "${CFLAGS+set}" != set; then |
---|
710 | CFLAGS="-O" |
---|
711 | ac_cflags_set=no |
---|
712 | fi |
---|
713 | |
---|
714 | # check whether CXX was set by user as env variable |
---|
715 | if test "${CXX+set}" != set; then |
---|
716 | ac_cxx_set=no |
---|
717 | else |
---|
718 | ac_cxx_set=yes |
---|
719 | fi |
---|
720 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
721 | set dummy gcc; ac_word=$2 |
---|
722 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
723 | echo "configure:724: checking for $ac_word" >&5 |
---|
724 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
725 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
726 | else |
---|
727 | if test -n "$CC"; then |
---|
728 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
729 | else |
---|
730 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
731 | ac_dummy="$PATH" |
---|
732 | for ac_dir in $ac_dummy; do |
---|
733 | test -z "$ac_dir" && ac_dir=. |
---|
734 | if test -f $ac_dir/$ac_word; then |
---|
735 | ac_cv_prog_CC="gcc" |
---|
736 | break |
---|
737 | fi |
---|
738 | done |
---|
739 | IFS="$ac_save_ifs" |
---|
740 | fi |
---|
741 | fi |
---|
742 | CC="$ac_cv_prog_CC" |
---|
743 | if test -n "$CC"; then |
---|
744 | echo "$ac_t""$CC" 1>&6 |
---|
745 | else |
---|
746 | echo "$ac_t""no" 1>&6 |
---|
747 | fi |
---|
748 | |
---|
749 | if test -z "$CC"; then |
---|
750 | # Extract the first word of "cc", so it can be a program name with args. |
---|
751 | set dummy cc; ac_word=$2 |
---|
752 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
753 | echo "configure:754: checking for $ac_word" >&5 |
---|
754 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
755 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
756 | else |
---|
757 | if test -n "$CC"; then |
---|
758 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
759 | else |
---|
760 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
761 | ac_prog_rejected=no |
---|
762 | ac_dummy="$PATH" |
---|
763 | for ac_dir in $ac_dummy; do |
---|
764 | test -z "$ac_dir" && ac_dir=. |
---|
765 | if test -f $ac_dir/$ac_word; then |
---|
766 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
767 | ac_prog_rejected=yes |
---|
768 | continue |
---|
769 | fi |
---|
770 | ac_cv_prog_CC="cc" |
---|
771 | break |
---|
772 | fi |
---|
773 | done |
---|
774 | IFS="$ac_save_ifs" |
---|
775 | if test $ac_prog_rejected = yes; then |
---|
776 | # We found a bogon in the path, so make sure we never use it. |
---|
777 | set dummy $ac_cv_prog_CC |
---|
778 | shift |
---|
779 | if test $# -gt 0; then |
---|
780 | # We chose a different compiler from the bogus one. |
---|
781 | # However, it has the same basename, so the bogon will be chosen |
---|
782 | # first if we set CC to just the basename; use the full file name. |
---|
783 | shift |
---|
784 | set dummy "$ac_dir/$ac_word" "$@" |
---|
785 | shift |
---|
786 | ac_cv_prog_CC="$@" |
---|
787 | fi |
---|
788 | fi |
---|
789 | fi |
---|
790 | fi |
---|
791 | CC="$ac_cv_prog_CC" |
---|
792 | if test -n "$CC"; then |
---|
793 | echo "$ac_t""$CC" 1>&6 |
---|
794 | else |
---|
795 | echo "$ac_t""no" 1>&6 |
---|
796 | fi |
---|
797 | |
---|
798 | if test -z "$CC"; then |
---|
799 | case "`uname -s`" in |
---|
800 | *win32* | *WIN32*) |
---|
801 | # Extract the first word of "cl", so it can be a program name with args. |
---|
802 | set dummy cl; ac_word=$2 |
---|
803 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
804 | echo "configure:805: checking for $ac_word" >&5 |
---|
805 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
806 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
807 | else |
---|
808 | if test -n "$CC"; then |
---|
809 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
810 | else |
---|
811 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
812 | ac_dummy="$PATH" |
---|
813 | for ac_dir in $ac_dummy; do |
---|
814 | test -z "$ac_dir" && ac_dir=. |
---|
815 | if test -f $ac_dir/$ac_word; then |
---|
816 | ac_cv_prog_CC="cl" |
---|
817 | break |
---|
818 | fi |
---|
819 | done |
---|
820 | IFS="$ac_save_ifs" |
---|
821 | fi |
---|
822 | fi |
---|
823 | CC="$ac_cv_prog_CC" |
---|
824 | if test -n "$CC"; then |
---|
825 | echo "$ac_t""$CC" 1>&6 |
---|
826 | else |
---|
827 | echo "$ac_t""no" 1>&6 |
---|
828 | fi |
---|
829 | ;; |
---|
830 | esac |
---|
831 | fi |
---|
832 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
833 | fi |
---|
834 | |
---|
835 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
836 | echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
837 | |
---|
838 | ac_ext=c |
---|
839 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
840 | ac_cpp='$CPP $CPPFLAGS' |
---|
841 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
842 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
843 | cross_compiling=$ac_cv_prog_cc_cross |
---|
844 | |
---|
845 | cat > conftest.$ac_ext << EOF |
---|
846 | |
---|
847 | #line 848 "configure" |
---|
848 | #include "confdefs.h" |
---|
849 | |
---|
850 | main(){return(0);} |
---|
851 | EOF |
---|
852 | if { (eval echo configure:853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
853 | ac_cv_prog_cc_works=yes |
---|
854 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
855 | if (./conftest; exit) 2>/dev/null; then |
---|
856 | ac_cv_prog_cc_cross=no |
---|
857 | else |
---|
858 | ac_cv_prog_cc_cross=yes |
---|
859 | fi |
---|
860 | else |
---|
861 | echo "configure: failed program was:" >&5 |
---|
862 | cat conftest.$ac_ext >&5 |
---|
863 | ac_cv_prog_cc_works=no |
---|
864 | fi |
---|
865 | rm -fr conftest* |
---|
866 | ac_ext=c |
---|
867 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
868 | ac_cpp='$CPP $CPPFLAGS' |
---|
869 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
870 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
871 | cross_compiling=$ac_cv_prog_cc_cross |
---|
872 | |
---|
873 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
874 | if test $ac_cv_prog_cc_works = no; then |
---|
875 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
876 | fi |
---|
877 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
878 | echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
879 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
880 | cross_compiling=$ac_cv_prog_cc_cross |
---|
881 | |
---|
882 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
883 | echo "configure:884: checking whether we are using GNU C" >&5 |
---|
884 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
885 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
886 | else |
---|
887 | cat > conftest.c <<EOF |
---|
888 | #ifdef __GNUC__ |
---|
889 | yes; |
---|
890 | #endif |
---|
891 | EOF |
---|
892 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
893 | ac_cv_prog_gcc=yes |
---|
894 | else |
---|
895 | ac_cv_prog_gcc=no |
---|
896 | fi |
---|
897 | fi |
---|
898 | |
---|
899 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
900 | |
---|
901 | if test $ac_cv_prog_gcc = yes; then |
---|
902 | GCC=yes |
---|
903 | else |
---|
904 | GCC= |
---|
905 | fi |
---|
906 | |
---|
907 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
908 | ac_save_CFLAGS="$CFLAGS" |
---|
909 | CFLAGS= |
---|
910 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
911 | echo "configure:912: checking whether ${CC-cc} accepts -g" >&5 |
---|
912 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
913 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
914 | else |
---|
915 | echo 'void f(){}' > conftest.c |
---|
916 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
917 | ac_cv_prog_cc_g=yes |
---|
918 | else |
---|
919 | ac_cv_prog_cc_g=no |
---|
920 | fi |
---|
921 | rm -f conftest* |
---|
922 | |
---|
923 | fi |
---|
924 | |
---|
925 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
926 | if test "$ac_test_CFLAGS" = set; then |
---|
927 | CFLAGS="$ac_save_CFLAGS" |
---|
928 | elif test $ac_cv_prog_cc_g = yes; then |
---|
929 | if test "$GCC" = yes; then |
---|
930 | CFLAGS="-g -O2" |
---|
931 | else |
---|
932 | CFLAGS="-g" |
---|
933 | fi |
---|
934 | else |
---|
935 | if test "$GCC" = yes; then |
---|
936 | CFLAGS="-O2" |
---|
937 | else |
---|
938 | CFLAGS= |
---|
939 | fi |
---|
940 | fi |
---|
941 | |
---|
942 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
943 | echo "configure:944: checking how to run the C preprocessor" >&5 |
---|
944 | # On Suns, sometimes $CPP names a directory. |
---|
945 | if test -n "$CPP" && test -d "$CPP"; then |
---|
946 | CPP= |
---|
947 | fi |
---|
948 | if test -z "$CPP"; then |
---|
949 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
950 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
951 | else |
---|
952 | # This must be in double quotes, not single quotes, because CPP may get |
---|
953 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
954 | CPP="${CC-cc} -E" |
---|
955 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
956 | # not just through cpp. |
---|
957 | cat > conftest.$ac_ext <<EOF |
---|
958 | #line 959 "configure" |
---|
959 | #include "confdefs.h" |
---|
960 | #include <assert.h> |
---|
961 | Syntax Error |
---|
962 | EOF |
---|
963 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
964 | { (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
965 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
966 | if test -z "$ac_err"; then |
---|
967 | : |
---|
968 | else |
---|
969 | echo "$ac_err" >&5 |
---|
970 | echo "configure: failed program was:" >&5 |
---|
971 | cat conftest.$ac_ext >&5 |
---|
972 | rm -rf conftest* |
---|
973 | CPP="${CC-cc} -E -traditional-cpp" |
---|
974 | cat > conftest.$ac_ext <<EOF |
---|
975 | #line 976 "configure" |
---|
976 | #include "confdefs.h" |
---|
977 | #include <assert.h> |
---|
978 | Syntax Error |
---|
979 | EOF |
---|
980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
981 | { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
983 | if test -z "$ac_err"; then |
---|
984 | : |
---|
985 | else |
---|
986 | echo "$ac_err" >&5 |
---|
987 | echo "configure: failed program was:" >&5 |
---|
988 | cat conftest.$ac_ext >&5 |
---|
989 | rm -rf conftest* |
---|
990 | CPP="${CC-cc} -nologo -E" |
---|
991 | cat > conftest.$ac_ext <<EOF |
---|
992 | #line 993 "configure" |
---|
993 | #include "confdefs.h" |
---|
994 | #include <assert.h> |
---|
995 | Syntax Error |
---|
996 | EOF |
---|
997 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
998 | { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
999 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1000 | if test -z "$ac_err"; then |
---|
1001 | : |
---|
1002 | else |
---|
1003 | echo "$ac_err" >&5 |
---|
1004 | echo "configure: failed program was:" >&5 |
---|
1005 | cat conftest.$ac_ext >&5 |
---|
1006 | rm -rf conftest* |
---|
1007 | CPP=/lib/cpp |
---|
1008 | fi |
---|
1009 | rm -f conftest* |
---|
1010 | fi |
---|
1011 | rm -f conftest* |
---|
1012 | fi |
---|
1013 | rm -f conftest* |
---|
1014 | ac_cv_prog_CPP="$CPP" |
---|
1015 | fi |
---|
1016 | CPP="$ac_cv_prog_CPP" |
---|
1017 | else |
---|
1018 | ac_cv_prog_CPP="$CPP" |
---|
1019 | fi |
---|
1020 | echo "$ac_t""$CPP" 1>&6 |
---|
1021 | |
---|
1022 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
---|
1023 | do |
---|
1024 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1025 | set dummy $ac_prog; ac_word=$2 |
---|
1026 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1027 | echo "configure:1028: checking for $ac_word" >&5 |
---|
1028 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
1029 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1030 | else |
---|
1031 | if test -n "$CXX"; then |
---|
1032 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1033 | else |
---|
1034 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1035 | ac_dummy="$PATH" |
---|
1036 | for ac_dir in $ac_dummy; do |
---|
1037 | test -z "$ac_dir" && ac_dir=. |
---|
1038 | if test -f $ac_dir/$ac_word; then |
---|
1039 | ac_cv_prog_CXX="$ac_prog" |
---|
1040 | break |
---|
1041 | fi |
---|
1042 | done |
---|
1043 | IFS="$ac_save_ifs" |
---|
1044 | fi |
---|
1045 | fi |
---|
1046 | CXX="$ac_cv_prog_CXX" |
---|
1047 | if test -n "$CXX"; then |
---|
1048 | echo "$ac_t""$CXX" 1>&6 |
---|
1049 | else |
---|
1050 | echo "$ac_t""no" 1>&6 |
---|
1051 | fi |
---|
1052 | |
---|
1053 | test -n "$CXX" && break |
---|
1054 | done |
---|
1055 | test -n "$CXX" || CXX="gcc" |
---|
1056 | |
---|
1057 | |
---|
1058 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1059 | echo "configure:1060: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
1060 | |
---|
1061 | ac_ext=C |
---|
1062 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1063 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1064 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1065 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1066 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1067 | |
---|
1068 | cat > conftest.$ac_ext << EOF |
---|
1069 | |
---|
1070 | #line 1071 "configure" |
---|
1071 | #include "confdefs.h" |
---|
1072 | |
---|
1073 | int main(){return(0);} |
---|
1074 | EOF |
---|
1075 | if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1076 | ac_cv_prog_cxx_works=yes |
---|
1077 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1078 | if (./conftest; exit) 2>/dev/null; then |
---|
1079 | ac_cv_prog_cxx_cross=no |
---|
1080 | else |
---|
1081 | ac_cv_prog_cxx_cross=yes |
---|
1082 | fi |
---|
1083 | else |
---|
1084 | echo "configure: failed program was:" >&5 |
---|
1085 | cat conftest.$ac_ext >&5 |
---|
1086 | ac_cv_prog_cxx_works=no |
---|
1087 | fi |
---|
1088 | rm -fr conftest* |
---|
1089 | ac_ext=c |
---|
1090 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1091 | ac_cpp='$CPP $CPPFLAGS' |
---|
1092 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1093 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1094 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1095 | |
---|
1096 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
1097 | if test $ac_cv_prog_cxx_works = no; then |
---|
1098 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
1099 | fi |
---|
1100 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1101 | echo "configure:1102: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1102 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
1103 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1104 | |
---|
1105 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
1106 | echo "configure:1107: checking whether we are using GNU C++" >&5 |
---|
1107 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
1108 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1109 | else |
---|
1110 | cat > conftest.C <<EOF |
---|
1111 | #ifdef __GNUC__ |
---|
1112 | yes; |
---|
1113 | #endif |
---|
1114 | EOF |
---|
1115 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1116 | ac_cv_prog_gxx=yes |
---|
1117 | else |
---|
1118 | ac_cv_prog_gxx=no |
---|
1119 | fi |
---|
1120 | fi |
---|
1121 | |
---|
1122 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
1123 | |
---|
1124 | if test $ac_cv_prog_gxx = yes; then |
---|
1125 | GXX=yes |
---|
1126 | else |
---|
1127 | GXX= |
---|
1128 | fi |
---|
1129 | |
---|
1130 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
1131 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
1132 | CXXFLAGS= |
---|
1133 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
1134 | echo "configure:1135: checking whether ${CXX-g++} accepts -g" >&5 |
---|
1135 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
1136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1137 | else |
---|
1138 | echo 'void f(){}' > conftest.cc |
---|
1139 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
1140 | ac_cv_prog_cxx_g=yes |
---|
1141 | else |
---|
1142 | ac_cv_prog_cxx_g=no |
---|
1143 | fi |
---|
1144 | rm -f conftest* |
---|
1145 | |
---|
1146 | fi |
---|
1147 | |
---|
1148 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
1149 | if test "$ac_test_CXXFLAGS" = set; then |
---|
1150 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
1151 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
1152 | if test "$GXX" = yes; then |
---|
1153 | CXXFLAGS="-g -O2" |
---|
1154 | else |
---|
1155 | CXXFLAGS="-g" |
---|
1156 | fi |
---|
1157 | else |
---|
1158 | if test "$GXX" = yes; then |
---|
1159 | CXXFLAGS="-O2" |
---|
1160 | else |
---|
1161 | CXXFLAGS= |
---|
1162 | fi |
---|
1163 | fi |
---|
1164 | |
---|
1165 | ac_aux_dir= |
---|
1166 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1167 | if test -f $ac_dir/install-sh; then |
---|
1168 | ac_aux_dir=$ac_dir |
---|
1169 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1170 | break |
---|
1171 | elif test -f $ac_dir/install.sh; then |
---|
1172 | ac_aux_dir=$ac_dir |
---|
1173 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1174 | break |
---|
1175 | fi |
---|
1176 | done |
---|
1177 | if test -z "$ac_aux_dir"; then |
---|
1178 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
1179 | fi |
---|
1180 | ac_config_guess=$ac_aux_dir/config.guess |
---|
1181 | ac_config_sub=$ac_aux_dir/config.sub |
---|
1182 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
1183 | |
---|
1184 | # Find a good install program. We prefer a C program (faster), |
---|
1185 | # so one script is as good as another. But avoid the broken or |
---|
1186 | # incompatible versions: |
---|
1187 | # SysV /etc/install, /usr/sbin/install |
---|
1188 | # SunOS /usr/etc/install |
---|
1189 | # IRIX /sbin/install |
---|
1190 | # AIX /bin/install |
---|
1191 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1192 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1193 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1194 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1195 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1196 | echo "configure:1197: checking for a BSD compatible install" >&5 |
---|
1197 | if test -z "$INSTALL"; then |
---|
1198 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1199 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1200 | else |
---|
1201 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1202 | for ac_dir in $PATH; do |
---|
1203 | # Account for people who put trailing slashes in PATH elements. |
---|
1204 | case "$ac_dir/" in |
---|
1205 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1206 | *) |
---|
1207 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1208 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1209 | # by default. |
---|
1210 | for ac_prog in ginstall scoinst install; do |
---|
1211 | if test -f $ac_dir/$ac_prog; then |
---|
1212 | if test $ac_prog = install && |
---|
1213 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1214 | # AIX install. It has an incompatible calling convention. |
---|
1215 | : |
---|
1216 | else |
---|
1217 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1218 | break 2 |
---|
1219 | fi |
---|
1220 | fi |
---|
1221 | done |
---|
1222 | ;; |
---|
1223 | esac |
---|
1224 | done |
---|
1225 | IFS="$ac_save_IFS" |
---|
1226 | |
---|
1227 | fi |
---|
1228 | if test "${ac_cv_path_install+set}" = set; then |
---|
1229 | INSTALL="$ac_cv_path_install" |
---|
1230 | else |
---|
1231 | # As a last resort, use the slow shell script. We don't cache a |
---|
1232 | # path for INSTALL within a source directory, because that will |
---|
1233 | # break other packages using the cache if that directory is |
---|
1234 | # removed, or if the path is relative. |
---|
1235 | INSTALL="$ac_install_sh" |
---|
1236 | fi |
---|
1237 | fi |
---|
1238 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1239 | |
---|
1240 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1241 | # It thinks the first close brace ends the variable substitution. |
---|
1242 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1243 | |
---|
1244 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1245 | |
---|
1246 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1247 | |
---|
1248 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
1249 | echo "configure:1250: checking for AIX" >&5 |
---|
1250 | cat > conftest.$ac_ext <<EOF |
---|
1251 | #line 1252 "configure" |
---|
1252 | #include "confdefs.h" |
---|
1253 | #ifdef _AIX |
---|
1254 | yes |
---|
1255 | #endif |
---|
1256 | |
---|
1257 | EOF |
---|
1258 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1259 | egrep "yes" >/dev/null 2>&1; then |
---|
1260 | rm -rf conftest* |
---|
1261 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
1262 | #define _ALL_SOURCE 1 |
---|
1263 | EOF |
---|
1264 | |
---|
1265 | else |
---|
1266 | rm -rf conftest* |
---|
1267 | echo "$ac_t""no" 1>&6 |
---|
1268 | fi |
---|
1269 | rm -f conftest* |
---|
1270 | |
---|
1271 | |
---|
1272 | |
---|
1273 | # test for gcc-version: gcc2: prefer CC=gcc, CXX=gcc (if not with boost) |
---|
1274 | # gcc3: CC=gcc CXX=g++ |
---|
1275 | # other: CC=cc CXX=c++ |
---|
1276 | echo $ac_n "checking gcc version""... $ac_c" 1>&6 |
---|
1277 | echo "configure:1278: checking gcc version" >&5 |
---|
1278 | if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then |
---|
1279 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1280 | else |
---|
1281 | ac_cv_c_cp="unknown" |
---|
1282 | if test -r "gccversion.sh"; then |
---|
1283 | ac_cv_c_cpp=`/bin/sh gccversion.sh` |
---|
1284 | fi |
---|
1285 | |
---|
1286 | fi |
---|
1287 | |
---|
1288 | echo "$ac_t""$ac_cv_c_cpp" 1>&6 |
---|
1289 | |
---|
1290 | # we prefer using gcc for compiling C++ files, provided the user did |
---|
1291 | # not overwrite it explicitely |
---|
1292 | if test "${GXX}" = yes && test "${ac_cxx_set}" = no; then |
---|
1293 | if test "${ac_cv_c_cpp}" = gcc2; then |
---|
1294 | CXX=g++ |
---|
1295 | elif test "${ac_cv_c_cpp}" = gcc3; then |
---|
1296 | CXX=g++ |
---|
1297 | fi |
---|
1298 | temp_flags="${CXXFLAGS}" |
---|
1299 | |
---|
1300 | ac_ext=C |
---|
1301 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1302 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1303 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1304 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1305 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
1306 | |
---|
1307 | # check whether gcc accepts --no-rtti |
---|
1308 | echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6 |
---|
1309 | echo "configure:1310: checking whether gcc accepts --no-rtti" >&5 |
---|
1310 | CXXFLAGS="${CXXFLAGS} --no-rtti" |
---|
1311 | if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then |
---|
1312 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1313 | else |
---|
1314 | cat > conftest.$ac_ext <<EOF |
---|
1315 | #line 1316 "configure" |
---|
1316 | #include "confdefs.h" |
---|
1317 | |
---|
1318 | int main() { |
---|
1319 | |
---|
1320 | ; return 0; } |
---|
1321 | EOF |
---|
1322 | if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1323 | rm -rf conftest* |
---|
1324 | ac_cv_cxx_have_rtti=yes |
---|
1325 | else |
---|
1326 | echo "configure: failed program was:" >&5 |
---|
1327 | cat conftest.$ac_ext >&5 |
---|
1328 | rm -rf conftest* |
---|
1329 | ac_cv_cxx_have_rtti=no |
---|
1330 | fi |
---|
1331 | rm -f conftest* |
---|
1332 | |
---|
1333 | fi |
---|
1334 | |
---|
1335 | echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6 |
---|
1336 | if test "${ac_cv_cxx_have_rtti}" != yes; then |
---|
1337 | CXXFLAGS="$temp_flags" |
---|
1338 | else |
---|
1339 | CXXFLAGS="${temp_flags} --no-rtti" |
---|
1340 | temp_flags="${CXXFLAGS}" |
---|
1341 | fi |
---|
1342 | |
---|
1343 | # check whether gcc accepts --no-exceptions |
---|
1344 | echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6 |
---|
1345 | echo "configure:1346: checking whether gcc accepts --no-exceptions" >&5 |
---|
1346 | CXXFLAGS="${CXXFLAGS} --no-exceptions" |
---|
1347 | if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then |
---|
1348 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1349 | else |
---|
1350 | cat > conftest.$ac_ext <<EOF |
---|
1351 | #line 1352 "configure" |
---|
1352 | #include "confdefs.h" |
---|
1353 | |
---|
1354 | int main() { |
---|
1355 | |
---|
1356 | ; return 0; } |
---|
1357 | EOF |
---|
1358 | if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1359 | rm -rf conftest* |
---|
1360 | ac_cv_cxx_have_exceptions=yes |
---|
1361 | else |
---|
1362 | echo "configure: failed program was:" >&5 |
---|
1363 | cat conftest.$ac_ext >&5 |
---|
1364 | rm -rf conftest* |
---|
1365 | ac_cv_cxx_have_exceptions=no |
---|
1366 | fi |
---|
1367 | rm -f conftest* |
---|
1368 | |
---|
1369 | fi |
---|
1370 | |
---|
1371 | echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6 |
---|
1372 | if test "${ac_cv_cxx_have_exceptions}" != yes; then |
---|
1373 | CXXFLAGS="$temp_flags" |
---|
1374 | else |
---|
1375 | CXXFLAGS="${temp_flags} --no-exceptions" |
---|
1376 | temp_flags="${CXXFLAGS}" |
---|
1377 | fi |
---|
1378 | |
---|
1379 | ac_ext=c |
---|
1380 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1381 | ac_cpp='$CPP $CPPFLAGS' |
---|
1382 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1383 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1384 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1385 | |
---|
1386 | CXXFLAGS="$temp_flags" |
---|
1387 | #here is broking something |
---|
1388 | #uncommented breaks CXXFLAGS variable set |
---|
1389 | #only pipes would remain then in CXXFLAGS |
---|
1390 | fi |
---|
1391 | |
---|
1392 | # check whether the compiler accepts -pipe |
---|
1393 | if test x$ac_cv_c_cpp = xgcc2 -o x$ac_cv_c_cpp = xgcc3 |
---|
1394 | then |
---|
1395 | echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 |
---|
1396 | echo "configure:1397: checking whether compiler accepts -pipe" >&5 |
---|
1397 | temp_cflags="${CFLAGS}" |
---|
1398 | CFLAGS="${CFLAGS} -pipe" |
---|
1399 | if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then |
---|
1400 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1401 | else |
---|
1402 | cat > conftest.$ac_ext <<EOF |
---|
1403 | #line 1404 "configure" |
---|
1404 | #include "confdefs.h" |
---|
1405 | |
---|
1406 | int main() { |
---|
1407 | |
---|
1408 | ; return 0; } |
---|
1409 | EOF |
---|
1410 | if { (eval echo configure:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1411 | rm -rf conftest* |
---|
1412 | ac_cv_cxx_have_pipe=yes |
---|
1413 | else |
---|
1414 | echo "configure: failed program was:" >&5 |
---|
1415 | cat conftest.$ac_ext >&5 |
---|
1416 | rm -rf conftest* |
---|
1417 | ac_cv_cxx_have_pipe=no |
---|
1418 | fi |
---|
1419 | rm -f conftest* |
---|
1420 | fi |
---|
1421 | |
---|
1422 | echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6 |
---|
1423 | CFLAGS=${temp_cflags} |
---|
1424 | else |
---|
1425 | ac_cv_cxx_have_pipe="no" |
---|
1426 | fi |
---|
1427 | |
---|
1428 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
1429 | PIPE= |
---|
1430 | else |
---|
1431 | PIPE="-pipe" |
---|
1432 | fi |
---|
1433 | |
---|
1434 | |
---|
1435 | # Customize CFLAGS |
---|
1436 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
1437 | echo "configure:1438: checking whether _AIX is defined" >&5 |
---|
1438 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
1439 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1440 | else |
---|
1441 | cat > conftest.$ac_ext <<EOF |
---|
1442 | #line 1443 "configure" |
---|
1443 | #include "confdefs.h" |
---|
1444 | #ifdef _AIX |
---|
1445 | yes |
---|
1446 | #endif |
---|
1447 | |
---|
1448 | EOF |
---|
1449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1450 | egrep "yes" >/dev/null 2>&1; then |
---|
1451 | rm -rf conftest* |
---|
1452 | ac_cv_is_aix=yes |
---|
1453 | else |
---|
1454 | rm -rf conftest* |
---|
1455 | ac_cv_is_aix=no |
---|
1456 | fi |
---|
1457 | rm -f conftest* |
---|
1458 | |
---|
1459 | fi |
---|
1460 | |
---|
1461 | if test "$ac_cv_is_aix" = yes; then |
---|
1462 | echo "$ac_t""yes" 1>&6 |
---|
1463 | else |
---|
1464 | echo "$ac_t""no" 1>&6 |
---|
1465 | fi |
---|
1466 | |
---|
1467 | # we know best when compiling with gcc |
---|
1468 | if test "${GXX}" = yes; then |
---|
1469 | if test "$ac_cxxflags_set" = no; then |
---|
1470 | CXXFLAGS="-O3 -w -fomit-frame-pointer" |
---|
1471 | fi |
---|
1472 | temp_flags="${CXXFLAGS}" |
---|
1473 | if test "${ac_cv_cxx_have_rtti}" = yes; then |
---|
1474 | CXXFLAGS="${temp_flags} --no-rtti" |
---|
1475 | fi |
---|
1476 | temp_flags="${CXXFLAGS}" |
---|
1477 | CXXTEMPLFLAGS="-fno-implicit-templates" |
---|
1478 | if test "${ac_cv_cxx_have_exceptions}" = yes; then |
---|
1479 | CXXTEMPLFLAGS="${CXXTEMPLFLAGS} --no-exceptions" |
---|
1480 | fi |
---|
1481 | if test "$ac_cv_is_aix" = yes; then |
---|
1482 | CXXNOOPTFLAGS="-w" |
---|
1483 | else |
---|
1484 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
1485 | fi |
---|
1486 | STATIC_LDFLAGS="-static" |
---|
1487 | else |
---|
1488 | CXXTEMPFLAGS="" |
---|
1489 | CXXNOOPTFLAGS=$CXXFLAGS |
---|
1490 | STATIC_LDFLAGS="" |
---|
1491 | fi |
---|
1492 | |
---|
1493 | |
---|
1494 | |
---|
1495 | |
---|
1496 | if test "${GCC}" = yes && test "$ac_cflags_set" = no ; then |
---|
1497 | CFLAGS="-O3 -w -fomit-frame-pointer" |
---|
1498 | fi |
---|
1499 | |
---|
1500 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1501 | echo "configure:1502: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1502 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
1503 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1504 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1505 | else |
---|
1506 | cat > conftestmake <<\EOF |
---|
1507 | all: |
---|
1508 | @echo 'ac_maketemp="${MAKE}"' |
---|
1509 | EOF |
---|
1510 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1511 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1512 | if test -n "$ac_maketemp"; then |
---|
1513 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1514 | else |
---|
1515 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1516 | fi |
---|
1517 | rm -f conftestmake |
---|
1518 | fi |
---|
1519 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1520 | echo "$ac_t""yes" 1>&6 |
---|
1521 | SET_MAKE= |
---|
1522 | else |
---|
1523 | echo "$ac_t""no" 1>&6 |
---|
1524 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1525 | fi |
---|
1526 | |
---|
1527 | |
---|
1528 | |
---|
1529 | |
---|
1530 | |
---|
1531 | # expand prefix |
---|
1532 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1533 | if test "${with_rootdir+set}" != set; then |
---|
1534 | cat >> confdefs.h <<EOF |
---|
1535 | #define S_ROOT_DIR "${prefix}" |
---|
1536 | EOF |
---|
1537 | |
---|
1538 | else |
---|
1539 | cat >> confdefs.h <<EOF |
---|
1540 | #define S_ROOT_DIR "${with_rootdir}" |
---|
1541 | EOF |
---|
1542 | |
---|
1543 | fi |
---|
1544 | |
---|
1545 | # expand exec_prefixad |
---|
1546 | if test "x$exec_prefix" = xNONE; then |
---|
1547 | exec_prefix=${prefix}/${ac_cv_singuname} |
---|
1548 | fi |
---|
1549 | |
---|
1550 | # expand bindir |
---|
1551 | test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}" |
---|
1552 | SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} |
---|
1553 | |
---|
1554 | cat >> confdefs.h <<EOF |
---|
1555 | #define S_BIN_DIR "${bindir}" |
---|
1556 | EOF |
---|
1557 | |
---|
1558 | |
---|
1559 | # expand libdir |
---|
1560 | test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib" |
---|
1561 | |
---|
1562 | # expand includedir |
---|
1563 | test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include" |
---|
1564 | |
---|
1565 | # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure |
---|
1566 | if test "$ac_cv_c_cpp" = gcc3 ; then |
---|
1567 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
1568 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
1569 | else |
---|
1570 | LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib" |
---|
1571 | CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include" |
---|
1572 | fi |
---|
1573 | |
---|
1574 | # this is a work-around to include the right term.h |
---|
1575 | if test "$ac_cv_singuname" = SunOS-5; then |
---|
1576 | CPPFLAGS="-I/usr/xpg4/include ${CPPFLAGS}" |
---|
1577 | fi |
---|
1578 | |
---|
1579 | |
---|
1580 | |
---|
1581 | # lex |
---|
1582 | if test "${with_lex+set}" != set; then |
---|
1583 | echo $ac_n "checking for flex""... $ac_c" 1>&6 |
---|
1584 | echo "configure:1585: checking for flex" >&5 |
---|
1585 | cmd="egrep [2-9]\.[5-9]" |
---|
1586 | if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then |
---|
1587 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1588 | else |
---|
1589 | if (flex --version >/dev/null 2>&1) |
---|
1590 | then |
---|
1591 | if (flex --version | $cmd >/dev/null 2>&1 ) |
---|
1592 | then |
---|
1593 | ac_cv_prog_flex=flex |
---|
1594 | fi |
---|
1595 | fi |
---|
1596 | |
---|
1597 | fi |
---|
1598 | |
---|
1599 | if test "${ac_cv_prog_flex+set}" = set; then |
---|
1600 | echo "$ac_t""flex" 1>&6 |
---|
1601 | LEX=flex |
---|
1602 | |
---|
1603 | else |
---|
1604 | echo "configure: warning: can not find flex with version 2.4.5-2.5.4" 1>&2 |
---|
1605 | fi |
---|
1606 | elif test "${with_lex}" = no; then |
---|
1607 | echo "configure: warning: building without lex -- make might fail" 1>&2 |
---|
1608 | else |
---|
1609 | unset LEX |
---|
1610 | unset ac_cv_prog_LEX |
---|
1611 | for ac_prog in ${with_lex} |
---|
1612 | do |
---|
1613 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1614 | set dummy $ac_prog; ac_word=$2 |
---|
1615 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1616 | echo "configure:1617: checking for $ac_word" >&5 |
---|
1617 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
1618 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1619 | else |
---|
1620 | if test -n "$LEX"; then |
---|
1621 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
1622 | else |
---|
1623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1624 | ac_dummy="$PATH" |
---|
1625 | for ac_dir in $ac_dummy; do |
---|
1626 | test -z "$ac_dir" && ac_dir=. |
---|
1627 | if test -f $ac_dir/$ac_word; then |
---|
1628 | ac_cv_prog_LEX="$ac_prog" |
---|
1629 | break |
---|
1630 | fi |
---|
1631 | done |
---|
1632 | IFS="$ac_save_ifs" |
---|
1633 | fi |
---|
1634 | fi |
---|
1635 | LEX="$ac_cv_prog_LEX" |
---|
1636 | if test -n "$LEX"; then |
---|
1637 | echo "$ac_t""$LEX" 1>&6 |
---|
1638 | else |
---|
1639 | echo "$ac_t""no" 1>&6 |
---|
1640 | fi |
---|
1641 | |
---|
1642 | test -n "$LEX" && break |
---|
1643 | done |
---|
1644 | |
---|
1645 | if test "x${LEX}" = x; then |
---|
1646 | echo "configure: warning: building without lex -- make might fail" 1>&2 |
---|
1647 | fi |
---|
1648 | fi |
---|
1649 | |
---|
1650 | # bison |
---|
1651 | for ac_prog in bison |
---|
1652 | do |
---|
1653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1654 | set dummy $ac_prog; ac_word=$2 |
---|
1655 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1656 | echo "configure:1657: checking for $ac_word" >&5 |
---|
1657 | if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then |
---|
1658 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1659 | else |
---|
1660 | if test -n "$BISON"; then |
---|
1661 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
---|
1662 | else |
---|
1663 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1664 | ac_dummy="$PATH" |
---|
1665 | for ac_dir in $ac_dummy; do |
---|
1666 | test -z "$ac_dir" && ac_dir=. |
---|
1667 | if test -f $ac_dir/$ac_word; then |
---|
1668 | ac_cv_prog_BISON="$ac_prog" |
---|
1669 | break |
---|
1670 | fi |
---|
1671 | done |
---|
1672 | IFS="$ac_save_ifs" |
---|
1673 | fi |
---|
1674 | fi |
---|
1675 | BISON="$ac_cv_prog_BISON" |
---|
1676 | if test -n "$BISON"; then |
---|
1677 | echo "$ac_t""$BISON" 1>&6 |
---|
1678 | else |
---|
1679 | echo "$ac_t""no" 1>&6 |
---|
1680 | fi |
---|
1681 | |
---|
1682 | test -n "$BISON" && break |
---|
1683 | done |
---|
1684 | |
---|
1685 | if test "${BISON+set}" != set; then |
---|
1686 | echo "configure: warning: did not find bison -- make might fail" 1>&2 |
---|
1687 | fi |
---|
1688 | |
---|
1689 | # ln -s |
---|
1690 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1691 | echo "configure:1692: checking whether ln -s works" >&5 |
---|
1692 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1693 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1694 | else |
---|
1695 | rm -f conftestdata |
---|
1696 | if ln -s X conftestdata 2>/dev/null |
---|
1697 | then |
---|
1698 | rm -f conftestdata |
---|
1699 | ac_cv_prog_LN_S="ln -s" |
---|
1700 | else |
---|
1701 | ac_cv_prog_LN_S=ln |
---|
1702 | fi |
---|
1703 | fi |
---|
1704 | LN_S="$ac_cv_prog_LN_S" |
---|
1705 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1706 | echo "$ac_t""yes" 1>&6 |
---|
1707 | else |
---|
1708 | echo "$ac_t""no" 1>&6 |
---|
1709 | fi |
---|
1710 | |
---|
1711 | |
---|
1712 | for ac_prog in perl5 perl |
---|
1713 | do |
---|
1714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1715 | set dummy $ac_prog; ac_word=$2 |
---|
1716 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1717 | echo "configure:1718: checking for $ac_word" >&5 |
---|
1718 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
1719 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1720 | else |
---|
1721 | if test -n "$PERL"; then |
---|
1722 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
1723 | else |
---|
1724 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1725 | ac_dummy="$PATH" |
---|
1726 | for ac_dir in $ac_dummy; do |
---|
1727 | test -z "$ac_dir" && ac_dir=. |
---|
1728 | if test -f $ac_dir/$ac_word; then |
---|
1729 | ac_cv_prog_PERL="$ac_prog" |
---|
1730 | break |
---|
1731 | fi |
---|
1732 | done |
---|
1733 | IFS="$ac_save_ifs" |
---|
1734 | fi |
---|
1735 | fi |
---|
1736 | PERL="$ac_cv_prog_PERL" |
---|
1737 | if test -n "$PERL"; then |
---|
1738 | echo "$ac_t""$PERL" 1>&6 |
---|
1739 | else |
---|
1740 | echo "$ac_t""no" 1>&6 |
---|
1741 | fi |
---|
1742 | |
---|
1743 | test -n "$PERL" && break |
---|
1744 | done |
---|
1745 | |
---|
1746 | |
---|
1747 | # lib checks |
---|
1748 | # under cygwin, we should not explicitly link with -lm, except for |
---|
1749 | # it really is the last thing to link with |
---|
1750 | if test "$ac_cv_singuname" != ix86-Win; then |
---|
1751 | echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 |
---|
1752 | echo "configure:1753: checking for atof in -lm" >&5 |
---|
1753 | ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` |
---|
1754 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1755 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1756 | else |
---|
1757 | ac_save_LIBS="$LIBS" |
---|
1758 | LIBS="-lm $LIBS" |
---|
1759 | cat > conftest.$ac_ext <<EOF |
---|
1760 | #line 1761 "configure" |
---|
1761 | #include "confdefs.h" |
---|
1762 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1763 | /* We use char because int might match the return type of a gcc2 |
---|
1764 | builtin and then its argument prototype would still apply. */ |
---|
1765 | char atof(); |
---|
1766 | |
---|
1767 | int main() { |
---|
1768 | atof() |
---|
1769 | ; return 0; } |
---|
1770 | EOF |
---|
1771 | if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1772 | rm -rf conftest* |
---|
1773 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1774 | else |
---|
1775 | echo "configure: failed program was:" >&5 |
---|
1776 | cat conftest.$ac_ext >&5 |
---|
1777 | rm -rf conftest* |
---|
1778 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1779 | fi |
---|
1780 | rm -f conftest* |
---|
1781 | LIBS="$ac_save_LIBS" |
---|
1782 | |
---|
1783 | fi |
---|
1784 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1785 | echo "$ac_t""yes" 1>&6 |
---|
1786 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1787 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1788 | cat >> confdefs.h <<EOF |
---|
1789 | #define $ac_tr_lib 1 |
---|
1790 | EOF |
---|
1791 | |
---|
1792 | LIBS="-lm $LIBS" |
---|
1793 | |
---|
1794 | else |
---|
1795 | echo "$ac_t""no" 1>&6 |
---|
1796 | fi |
---|
1797 | |
---|
1798 | fi |
---|
1799 | echo $ac_n "checking for in -lnsl""... $ac_c" 1>&6 |
---|
1800 | echo "configure:1801: checking for in -lnsl" >&5 |
---|
1801 | ac_lib_var=`echo nsl'_' | sed 'y%./+-%__p_%'` |
---|
1802 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1803 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1804 | else |
---|
1805 | ac_save_LIBS="$LIBS" |
---|
1806 | LIBS="-lnsl $LIBS" |
---|
1807 | cat > conftest.$ac_ext <<EOF |
---|
1808 | #line 1809 "configure" |
---|
1809 | #include "confdefs.h" |
---|
1810 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1811 | /* We use char because int might match the return type of a gcc2 |
---|
1812 | builtin and then its argument prototype would still apply. */ |
---|
1813 | char (); |
---|
1814 | |
---|
1815 | int main() { |
---|
1816 | () |
---|
1817 | ; return 0; } |
---|
1818 | EOF |
---|
1819 | if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1820 | rm -rf conftest* |
---|
1821 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1822 | else |
---|
1823 | echo "configure: failed program was:" >&5 |
---|
1824 | cat conftest.$ac_ext >&5 |
---|
1825 | rm -rf conftest* |
---|
1826 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1827 | fi |
---|
1828 | rm -f conftest* |
---|
1829 | LIBS="$ac_save_LIBS" |
---|
1830 | |
---|
1831 | fi |
---|
1832 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1833 | echo "$ac_t""yes" 1>&6 |
---|
1834 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1835 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1836 | cat >> confdefs.h <<EOF |
---|
1837 | #define $ac_tr_lib 1 |
---|
1838 | EOF |
---|
1839 | |
---|
1840 | LIBS="-lnsl $LIBS" |
---|
1841 | |
---|
1842 | else |
---|
1843 | echo "$ac_t""no" 1>&6 |
---|
1844 | fi |
---|
1845 | |
---|
1846 | echo $ac_n "checking for in -lsocket""... $ac_c" 1>&6 |
---|
1847 | echo "configure:1848: checking for in -lsocket" >&5 |
---|
1848 | ac_lib_var=`echo socket'_' | sed 'y%./+-%__p_%'` |
---|
1849 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1850 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1851 | else |
---|
1852 | ac_save_LIBS="$LIBS" |
---|
1853 | LIBS="-lsocket $LIBS" |
---|
1854 | cat > conftest.$ac_ext <<EOF |
---|
1855 | #line 1856 "configure" |
---|
1856 | #include "confdefs.h" |
---|
1857 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1858 | /* We use char because int might match the return type of a gcc2 |
---|
1859 | builtin and then its argument prototype would still apply. */ |
---|
1860 | char (); |
---|
1861 | |
---|
1862 | int main() { |
---|
1863 | () |
---|
1864 | ; return 0; } |
---|
1865 | EOF |
---|
1866 | if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1867 | rm -rf conftest* |
---|
1868 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1869 | else |
---|
1870 | echo "configure: failed program was:" >&5 |
---|
1871 | cat conftest.$ac_ext >&5 |
---|
1872 | rm -rf conftest* |
---|
1873 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1874 | fi |
---|
1875 | rm -f conftest* |
---|
1876 | LIBS="$ac_save_LIBS" |
---|
1877 | |
---|
1878 | fi |
---|
1879 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1880 | echo "$ac_t""yes" 1>&6 |
---|
1881 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1882 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1883 | cat >> confdefs.h <<EOF |
---|
1884 | #define $ac_tr_lib 1 |
---|
1885 | EOF |
---|
1886 | |
---|
1887 | LIBS="-lsocket $LIBS" |
---|
1888 | |
---|
1889 | else |
---|
1890 | echo "$ac_t""no" 1>&6 |
---|
1891 | fi |
---|
1892 | |
---|
1893 | SAVE_LIBS=${LIBS} |
---|
1894 | LIBS= |
---|
1895 | |
---|
1896 | echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6 |
---|
1897 | echo "configure:1898: checking for setenv in -lbsd" >&5 |
---|
1898 | ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'` |
---|
1899 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1900 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1901 | else |
---|
1902 | ac_save_LIBS="$LIBS" |
---|
1903 | LIBS="-lbsd $LIBS" |
---|
1904 | cat > conftest.$ac_ext <<EOF |
---|
1905 | #line 1906 "configure" |
---|
1906 | #include "confdefs.h" |
---|
1907 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1908 | /* We use char because int might match the return type of a gcc2 |
---|
1909 | builtin and then its argument prototype would still apply. */ |
---|
1910 | char setenv(); |
---|
1911 | |
---|
1912 | int main() { |
---|
1913 | setenv() |
---|
1914 | ; return 0; } |
---|
1915 | EOF |
---|
1916 | if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1917 | rm -rf conftest* |
---|
1918 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1919 | else |
---|
1920 | echo "configure: failed program was:" >&5 |
---|
1921 | cat conftest.$ac_ext >&5 |
---|
1922 | rm -rf conftest* |
---|
1923 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1924 | fi |
---|
1925 | rm -f conftest* |
---|
1926 | LIBS="$ac_save_LIBS" |
---|
1927 | |
---|
1928 | fi |
---|
1929 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1930 | echo "$ac_t""yes" 1>&6 |
---|
1931 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1932 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1933 | cat >> confdefs.h <<EOF |
---|
1934 | #define $ac_tr_lib 1 |
---|
1935 | EOF |
---|
1936 | |
---|
1937 | LIBS="-lbsd $LIBS" |
---|
1938 | |
---|
1939 | else |
---|
1940 | echo "$ac_t""no" 1>&6 |
---|
1941 | fi |
---|
1942 | |
---|
1943 | echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 |
---|
1944 | echo "configure:1945: checking for listen in -lsocket" >&5 |
---|
1945 | ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` |
---|
1946 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1947 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1948 | else |
---|
1949 | ac_save_LIBS="$LIBS" |
---|
1950 | LIBS="-lsocket $LIBS" |
---|
1951 | cat > conftest.$ac_ext <<EOF |
---|
1952 | #line 1953 "configure" |
---|
1953 | #include "confdefs.h" |
---|
1954 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1955 | /* We use char because int might match the return type of a gcc2 |
---|
1956 | builtin and then its argument prototype would still apply. */ |
---|
1957 | char listen(); |
---|
1958 | |
---|
1959 | int main() { |
---|
1960 | listen() |
---|
1961 | ; return 0; } |
---|
1962 | EOF |
---|
1963 | if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1964 | rm -rf conftest* |
---|
1965 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1966 | else |
---|
1967 | echo "configure: failed program was:" >&5 |
---|
1968 | cat conftest.$ac_ext >&5 |
---|
1969 | rm -rf conftest* |
---|
1970 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1971 | fi |
---|
1972 | rm -f conftest* |
---|
1973 | LIBS="$ac_save_LIBS" |
---|
1974 | |
---|
1975 | fi |
---|
1976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1977 | echo "$ac_t""yes" 1>&6 |
---|
1978 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1979 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1980 | cat >> confdefs.h <<EOF |
---|
1981 | #define $ac_tr_lib 1 |
---|
1982 | EOF |
---|
1983 | |
---|
1984 | LIBS="-lsocket $LIBS" |
---|
1985 | |
---|
1986 | else |
---|
1987 | echo "$ac_t""no" 1>&6 |
---|
1988 | fi |
---|
1989 | |
---|
1990 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
1991 | echo "configure:1992: checking for gethostbyname in -lnsl" >&5 |
---|
1992 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
1993 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1994 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1995 | else |
---|
1996 | ac_save_LIBS="$LIBS" |
---|
1997 | LIBS="-lnsl $LIBS" |
---|
1998 | cat > conftest.$ac_ext <<EOF |
---|
1999 | #line 2000 "configure" |
---|
2000 | #include "confdefs.h" |
---|
2001 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2002 | /* We use char because int might match the return type of a gcc2 |
---|
2003 | builtin and then its argument prototype would still apply. */ |
---|
2004 | char gethostbyname(); |
---|
2005 | |
---|
2006 | int main() { |
---|
2007 | gethostbyname() |
---|
2008 | ; return 0; } |
---|
2009 | EOF |
---|
2010 | if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2011 | rm -rf conftest* |
---|
2012 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2013 | else |
---|
2014 | echo "configure: failed program was:" >&5 |
---|
2015 | cat conftest.$ac_ext >&5 |
---|
2016 | rm -rf conftest* |
---|
2017 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2018 | fi |
---|
2019 | rm -f conftest* |
---|
2020 | LIBS="$ac_save_LIBS" |
---|
2021 | |
---|
2022 | fi |
---|
2023 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2024 | echo "$ac_t""yes" 1>&6 |
---|
2025 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2026 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2027 | cat >> confdefs.h <<EOF |
---|
2028 | #define $ac_tr_lib 1 |
---|
2029 | EOF |
---|
2030 | |
---|
2031 | LIBS="-lnsl $LIBS" |
---|
2032 | |
---|
2033 | else |
---|
2034 | echo "$ac_t""no" 1>&6 |
---|
2035 | fi |
---|
2036 | |
---|
2037 | MP_LIBS=${LIBS} |
---|
2038 | # check for dl lib |
---|
2039 | case "$ac_cv_singuname" in |
---|
2040 | HPUX*) |
---|
2041 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
---|
2042 | echo "configure:2043: checking for shl_load in -ldld" >&5 |
---|
2043 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
---|
2044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2045 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2046 | else |
---|
2047 | ac_save_LIBS="$LIBS" |
---|
2048 | LIBS="-ldld $LIBS" |
---|
2049 | cat > conftest.$ac_ext <<EOF |
---|
2050 | #line 2051 "configure" |
---|
2051 | #include "confdefs.h" |
---|
2052 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2053 | /* We use char because int might match the return type of a gcc2 |
---|
2054 | builtin and then its argument prototype would still apply. */ |
---|
2055 | char shl_load(); |
---|
2056 | |
---|
2057 | int main() { |
---|
2058 | shl_load() |
---|
2059 | ; return 0; } |
---|
2060 | EOF |
---|
2061 | if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2062 | rm -rf conftest* |
---|
2063 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2064 | else |
---|
2065 | echo "configure: failed program was:" >&5 |
---|
2066 | cat conftest.$ac_ext >&5 |
---|
2067 | rm -rf conftest* |
---|
2068 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2069 | fi |
---|
2070 | rm -f conftest* |
---|
2071 | LIBS="$ac_save_LIBS" |
---|
2072 | |
---|
2073 | fi |
---|
2074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2075 | echo "$ac_t""yes" 1>&6 |
---|
2076 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2077 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2078 | cat >> confdefs.h <<EOF |
---|
2079 | #define $ac_tr_lib 1 |
---|
2080 | EOF |
---|
2081 | |
---|
2082 | LIBS="-ldld $LIBS" |
---|
2083 | |
---|
2084 | else |
---|
2085 | echo "$ac_t""no" 1>&6 |
---|
2086 | fi |
---|
2087 | |
---|
2088 | if test "$ac_cv_lib_dld_shl_load" = yes; then |
---|
2089 | LD_DYN_FLAGS="-ldld -Xlinker -E" |
---|
2090 | SFLAGS="-fpic -fPIC -DPIC" |
---|
2091 | SLDFLAGS="-fPIC -DPIC -shared" |
---|
2092 | LD=gcc |
---|
2093 | ac_lib_dl=yes |
---|
2094 | fi |
---|
2095 | ;; |
---|
2096 | *Linux*) |
---|
2097 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
2098 | echo "configure:2099: checking for dlopen in -ldl" >&5 |
---|
2099 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
2100 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2101 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2102 | else |
---|
2103 | ac_save_LIBS="$LIBS" |
---|
2104 | LIBS="-ldl $LIBS" |
---|
2105 | cat > conftest.$ac_ext <<EOF |
---|
2106 | #line 2107 "configure" |
---|
2107 | #include "confdefs.h" |
---|
2108 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2109 | /* We use char because int might match the return type of a gcc2 |
---|
2110 | builtin and then its argument prototype would still apply. */ |
---|
2111 | char dlopen(); |
---|
2112 | |
---|
2113 | int main() { |
---|
2114 | dlopen() |
---|
2115 | ; return 0; } |
---|
2116 | EOF |
---|
2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2118 | rm -rf conftest* |
---|
2119 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2120 | else |
---|
2121 | echo "configure: failed program was:" >&5 |
---|
2122 | cat conftest.$ac_ext >&5 |
---|
2123 | rm -rf conftest* |
---|
2124 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2125 | fi |
---|
2126 | rm -f conftest* |
---|
2127 | LIBS="$ac_save_LIBS" |
---|
2128 | |
---|
2129 | fi |
---|
2130 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2131 | echo "$ac_t""yes" 1>&6 |
---|
2132 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2133 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2134 | cat >> confdefs.h <<EOF |
---|
2135 | #define $ac_tr_lib 1 |
---|
2136 | EOF |
---|
2137 | |
---|
2138 | LIBS="-ldl $LIBS" |
---|
2139 | |
---|
2140 | else |
---|
2141 | echo "$ac_t""no" 1>&6 |
---|
2142 | fi |
---|
2143 | |
---|
2144 | if test "$ac_cv_lib_dl_dlopen" = yes; then |
---|
2145 | LD_DYN_FLAGS="-ldl -rdynamic" |
---|
2146 | SFLAGS="-fpic -DPIC" |
---|
2147 | SLDFLAGS=-shared |
---|
2148 | LD=ld |
---|
2149 | ac_lib_dl=yes |
---|
2150 | fi |
---|
2151 | ;; |
---|
2152 | IRIX-6) |
---|
2153 | LD_DYN_FLAGS="-lc" |
---|
2154 | SFLAGS="-fPIC -DPIC" |
---|
2155 | SLDFLAGS="-w -no_unresolved -_SYSTYPE_SVR4 -n32 -shared" |
---|
2156 | LD=ld |
---|
2157 | ac_lib_dl=yes |
---|
2158 | ;; |
---|
2159 | SunOS-5) |
---|
2160 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
2161 | echo "configure:2162: checking for dlopen in -ldl" >&5 |
---|
2162 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
2163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2165 | else |
---|
2166 | ac_save_LIBS="$LIBS" |
---|
2167 | LIBS="-ldl $LIBS" |
---|
2168 | cat > conftest.$ac_ext <<EOF |
---|
2169 | #line 2170 "configure" |
---|
2170 | #include "confdefs.h" |
---|
2171 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2172 | /* We use char because int might match the return type of a gcc2 |
---|
2173 | builtin and then its argument prototype would still apply. */ |
---|
2174 | char dlopen(); |
---|
2175 | |
---|
2176 | int main() { |
---|
2177 | dlopen() |
---|
2178 | ; return 0; } |
---|
2179 | EOF |
---|
2180 | if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2181 | rm -rf conftest* |
---|
2182 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2183 | else |
---|
2184 | echo "configure: failed program was:" >&5 |
---|
2185 | cat conftest.$ac_ext >&5 |
---|
2186 | rm -rf conftest* |
---|
2187 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2188 | fi |
---|
2189 | rm -f conftest* |
---|
2190 | LIBS="$ac_save_LIBS" |
---|
2191 | |
---|
2192 | fi |
---|
2193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2194 | echo "$ac_t""yes" 1>&6 |
---|
2195 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2196 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2197 | cat >> confdefs.h <<EOF |
---|
2198 | #define $ac_tr_lib 1 |
---|
2199 | EOF |
---|
2200 | |
---|
2201 | LIBS="-ldl $LIBS" |
---|
2202 | |
---|
2203 | else |
---|
2204 | echo "$ac_t""no" 1>&6 |
---|
2205 | fi |
---|
2206 | |
---|
2207 | if test "$ac_cv_lib_dl_dlopen" = yes; then |
---|
2208 | LD_DYN_FLAGS="-ldl" |
---|
2209 | SFLAGS="-fpic -DPIC" |
---|
2210 | SLDFLAGS=-shared |
---|
2211 | LD=$CC |
---|
2212 | ac_lib_dl=yes |
---|
2213 | fi |
---|
2214 | ;; |
---|
2215 | #use export MACOSX_DEPLOYMENT_TARGET=10.3 |
---|
2216 | ppcMac-darwin) |
---|
2217 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
2218 | echo "configure:2219: checking for dlopen in -ldl" >&5 |
---|
2219 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
2220 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2221 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2222 | else |
---|
2223 | ac_save_LIBS="$LIBS" |
---|
2224 | LIBS="-ldl $LIBS" |
---|
2225 | cat > conftest.$ac_ext <<EOF |
---|
2226 | #line 2227 "configure" |
---|
2227 | #include "confdefs.h" |
---|
2228 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2229 | /* We use char because int might match the return type of a gcc2 |
---|
2230 | builtin and then its argument prototype would still apply. */ |
---|
2231 | char dlopen(); |
---|
2232 | |
---|
2233 | int main() { |
---|
2234 | dlopen() |
---|
2235 | ; return 0; } |
---|
2236 | EOF |
---|
2237 | if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2238 | rm -rf conftest* |
---|
2239 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2240 | else |
---|
2241 | echo "configure: failed program was:" >&5 |
---|
2242 | cat conftest.$ac_ext >&5 |
---|
2243 | rm -rf conftest* |
---|
2244 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2245 | fi |
---|
2246 | rm -f conftest* |
---|
2247 | LIBS="$ac_save_LIBS" |
---|
2248 | |
---|
2249 | fi |
---|
2250 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2251 | echo "$ac_t""yes" 1>&6 |
---|
2252 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2253 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2254 | cat >> confdefs.h <<EOF |
---|
2255 | #define $ac_tr_lib 1 |
---|
2256 | EOF |
---|
2257 | |
---|
2258 | LIBS="-ldl $LIBS" |
---|
2259 | |
---|
2260 | else |
---|
2261 | echo "$ac_t""no" 1>&6 |
---|
2262 | fi |
---|
2263 | |
---|
2264 | if test "$ac_cv_lib_dl_dlopen" = yes; then |
---|
2265 | LD_DYN_FLAGS="-ldl -dynamic" |
---|
2266 | SFLAGS="-fpic -DPIC" |
---|
2267 | SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup" |
---|
2268 | LD=libtool |
---|
2269 | ac_lib_dl=yes |
---|
2270 | fi |
---|
2271 | ;; |
---|
2272 | ix86Mac-darwin) |
---|
2273 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
---|
2274 | echo "configure:2275: checking for dlopen in -ldl" >&5 |
---|
2275 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
---|
2276 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2277 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2278 | else |
---|
2279 | ac_save_LIBS="$LIBS" |
---|
2280 | LIBS="-ldl $LIBS" |
---|
2281 | cat > conftest.$ac_ext <<EOF |
---|
2282 | #line 2283 "configure" |
---|
2283 | #include "confdefs.h" |
---|
2284 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2285 | /* We use char because int might match the return type of a gcc2 |
---|
2286 | builtin and then its argument prototype would still apply. */ |
---|
2287 | char dlopen(); |
---|
2288 | |
---|
2289 | int main() { |
---|
2290 | dlopen() |
---|
2291 | ; return 0; } |
---|
2292 | EOF |
---|
2293 | if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2294 | rm -rf conftest* |
---|
2295 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2296 | else |
---|
2297 | echo "configure: failed program was:" >&5 |
---|
2298 | cat conftest.$ac_ext >&5 |
---|
2299 | rm -rf conftest* |
---|
2300 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2301 | fi |
---|
2302 | rm -f conftest* |
---|
2303 | LIBS="$ac_save_LIBS" |
---|
2304 | |
---|
2305 | fi |
---|
2306 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2307 | echo "$ac_t""yes" 1>&6 |
---|
2308 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2309 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2310 | cat >> confdefs.h <<EOF |
---|
2311 | #define $ac_tr_lib 1 |
---|
2312 | EOF |
---|
2313 | |
---|
2314 | LIBS="-ldl $LIBS" |
---|
2315 | |
---|
2316 | else |
---|
2317 | echo "$ac_t""no" 1>&6 |
---|
2318 | fi |
---|
2319 | |
---|
2320 | if test "$ac_cv_lib_dl_dlopen" = yes; then |
---|
2321 | LD_DYN_FLAGS="-ldl -dynamic" |
---|
2322 | SFLAGS="-fpic -DPIC" |
---|
2323 | SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup" |
---|
2324 | LD=libtool |
---|
2325 | ac_lib_dl=yes |
---|
2326 | fi |
---|
2327 | ;; |
---|
2328 | ix86-freebsd) |
---|
2329 | echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 |
---|
2330 | echo "configure:2331: checking for dlopen in -lc" >&5 |
---|
2331 | ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` |
---|
2332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2333 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2334 | else |
---|
2335 | ac_save_LIBS="$LIBS" |
---|
2336 | LIBS="-lc $LIBS" |
---|
2337 | cat > conftest.$ac_ext <<EOF |
---|
2338 | #line 2339 "configure" |
---|
2339 | #include "confdefs.h" |
---|
2340 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2341 | /* We use char because int might match the return type of a gcc2 |
---|
2342 | builtin and then its argument prototype would still apply. */ |
---|
2343 | char dlopen(); |
---|
2344 | |
---|
2345 | int main() { |
---|
2346 | dlopen() |
---|
2347 | ; return 0; } |
---|
2348 | EOF |
---|
2349 | if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2350 | rm -rf conftest* |
---|
2351 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2352 | else |
---|
2353 | echo "configure: failed program was:" >&5 |
---|
2354 | cat conftest.$ac_ext >&5 |
---|
2355 | rm -rf conftest* |
---|
2356 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2357 | fi |
---|
2358 | rm -f conftest* |
---|
2359 | LIBS="$ac_save_LIBS" |
---|
2360 | |
---|
2361 | fi |
---|
2362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2363 | echo "$ac_t""yes" 1>&6 |
---|
2364 | ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
2365 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
2366 | cat >> confdefs.h <<EOF |
---|
2367 | #define $ac_tr_lib 1 |
---|
2368 | EOF |
---|
2369 | |
---|
2370 | LIBS="-lc $LIBS" |
---|
2371 | |
---|
2372 | else |
---|
2373 | echo "$ac_t""no" 1>&6 |
---|
2374 | fi |
---|
2375 | |
---|
2376 | if test "$ac_cv_lib_c_dlopen" = yes; then |
---|
2377 | LD_DYN_FLAGS="-Xlinker -E" |
---|
2378 | SFLAGS="-fpic -DPIC" |
---|
2379 | SLDFLAGS=-shared |
---|
2380 | LD=ld |
---|
2381 | ac_lib_dl=yes |
---|
2382 | fi |
---|
2383 | ;; |
---|
2384 | esac |
---|
2385 | |
---|
2386 | |
---|
2387 | |
---|
2388 | |
---|
2389 | LIBS=${SAVE_LIBS} |
---|
2390 | |
---|
2391 | |
---|
2392 | # heder file checks |
---|
2393 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
2394 | echo "configure:2395: checking for ANSI C header files" >&5 |
---|
2395 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
2396 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2397 | else |
---|
2398 | cat > conftest.$ac_ext <<EOF |
---|
2399 | #line 2400 "configure" |
---|
2400 | #include "confdefs.h" |
---|
2401 | #include <stdlib.h> |
---|
2402 | #include <stdarg.h> |
---|
2403 | #include <string.h> |
---|
2404 | #include <float.h> |
---|
2405 | EOF |
---|
2406 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2407 | { (eval echo configure:2408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2408 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2409 | if test -z "$ac_err"; then |
---|
2410 | rm -rf conftest* |
---|
2411 | ac_cv_header_stdc=yes |
---|
2412 | else |
---|
2413 | echo "$ac_err" >&5 |
---|
2414 | echo "configure: failed program was:" >&5 |
---|
2415 | cat conftest.$ac_ext >&5 |
---|
2416 | rm -rf conftest* |
---|
2417 | ac_cv_header_stdc=no |
---|
2418 | fi |
---|
2419 | rm -f conftest* |
---|
2420 | |
---|
2421 | if test $ac_cv_header_stdc = yes; then |
---|
2422 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
2423 | cat > conftest.$ac_ext <<EOF |
---|
2424 | #line 2425 "configure" |
---|
2425 | #include "confdefs.h" |
---|
2426 | #include <string.h> |
---|
2427 | EOF |
---|
2428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2429 | egrep "memchr" >/dev/null 2>&1; then |
---|
2430 | : |
---|
2431 | else |
---|
2432 | rm -rf conftest* |
---|
2433 | ac_cv_header_stdc=no |
---|
2434 | fi |
---|
2435 | rm -f conftest* |
---|
2436 | |
---|
2437 | fi |
---|
2438 | |
---|
2439 | if test $ac_cv_header_stdc = yes; then |
---|
2440 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
2441 | cat > conftest.$ac_ext <<EOF |
---|
2442 | #line 2443 "configure" |
---|
2443 | #include "confdefs.h" |
---|
2444 | #include <stdlib.h> |
---|
2445 | EOF |
---|
2446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2447 | egrep "free" >/dev/null 2>&1; then |
---|
2448 | : |
---|
2449 | else |
---|
2450 | rm -rf conftest* |
---|
2451 | ac_cv_header_stdc=no |
---|
2452 | fi |
---|
2453 | rm -f conftest* |
---|
2454 | |
---|
2455 | fi |
---|
2456 | |
---|
2457 | if test $ac_cv_header_stdc = yes; then |
---|
2458 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
2459 | if test "$cross_compiling" = yes; then |
---|
2460 | : |
---|
2461 | else |
---|
2462 | cat > conftest.$ac_ext <<EOF |
---|
2463 | #line 2464 "configure" |
---|
2464 | #include "confdefs.h" |
---|
2465 | #include <ctype.h> |
---|
2466 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
2467 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
2468 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
2469 | int main () { int i; for (i = 0; i < 256; i++) |
---|
2470 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
2471 | exit (0); } |
---|
2472 | |
---|
2473 | EOF |
---|
2474 | if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
2475 | then |
---|
2476 | : |
---|
2477 | else |
---|
2478 | echo "configure: failed program was:" >&5 |
---|
2479 | cat conftest.$ac_ext >&5 |
---|
2480 | rm -fr conftest* |
---|
2481 | ac_cv_header_stdc=no |
---|
2482 | fi |
---|
2483 | rm -fr conftest* |
---|
2484 | fi |
---|
2485 | |
---|
2486 | fi |
---|
2487 | fi |
---|
2488 | |
---|
2489 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
2490 | if test $ac_cv_header_stdc = yes; then |
---|
2491 | cat >> confdefs.h <<\EOF |
---|
2492 | #define STDC_HEADERS 1 |
---|
2493 | EOF |
---|
2494 | |
---|
2495 | fi |
---|
2496 | |
---|
2497 | for ac_hdr in limits.h unistd.h |
---|
2498 | do |
---|
2499 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2500 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2501 | echo "configure:2502: checking for $ac_hdr" >&5 |
---|
2502 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2503 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2504 | else |
---|
2505 | cat > conftest.$ac_ext <<EOF |
---|
2506 | #line 2507 "configure" |
---|
2507 | #include "confdefs.h" |
---|
2508 | #include <$ac_hdr> |
---|
2509 | EOF |
---|
2510 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2511 | { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2512 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2513 | if test -z "$ac_err"; then |
---|
2514 | rm -rf conftest* |
---|
2515 | eval "ac_cv_header_$ac_safe=yes" |
---|
2516 | else |
---|
2517 | echo "$ac_err" >&5 |
---|
2518 | echo "configure: failed program was:" >&5 |
---|
2519 | cat conftest.$ac_ext >&5 |
---|
2520 | rm -rf conftest* |
---|
2521 | eval "ac_cv_header_$ac_safe=no" |
---|
2522 | fi |
---|
2523 | rm -f conftest* |
---|
2524 | fi |
---|
2525 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2526 | echo "$ac_t""yes" 1>&6 |
---|
2527 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2528 | cat >> confdefs.h <<EOF |
---|
2529 | #define $ac_tr_hdr 1 |
---|
2530 | EOF |
---|
2531 | |
---|
2532 | else |
---|
2533 | echo "$ac_t""no" 1>&6 |
---|
2534 | { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } |
---|
2535 | fi |
---|
2536 | done |
---|
2537 | |
---|
2538 | |
---|
2539 | for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \ |
---|
2540 | sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \ |
---|
2541 | termios.h term.h readline/readline.h |
---|
2542 | do |
---|
2543 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
2544 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
2545 | echo "configure:2546: checking for $ac_hdr" >&5 |
---|
2546 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
2547 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2548 | else |
---|
2549 | cat > conftest.$ac_ext <<EOF |
---|
2550 | #line 2551 "configure" |
---|
2551 | #include "confdefs.h" |
---|
2552 | #include <$ac_hdr> |
---|
2553 | EOF |
---|
2554 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2555 | { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2556 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2557 | if test -z "$ac_err"; then |
---|
2558 | rm -rf conftest* |
---|
2559 | eval "ac_cv_header_$ac_safe=yes" |
---|
2560 | else |
---|
2561 | echo "$ac_err" >&5 |
---|
2562 | echo "configure: failed program was:" >&5 |
---|
2563 | cat conftest.$ac_ext >&5 |
---|
2564 | rm -rf conftest* |
---|
2565 | eval "ac_cv_header_$ac_safe=no" |
---|
2566 | fi |
---|
2567 | rm -f conftest* |
---|
2568 | fi |
---|
2569 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
2570 | echo "$ac_t""yes" 1>&6 |
---|
2571 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
2572 | cat >> confdefs.h <<EOF |
---|
2573 | #define $ac_tr_hdr 1 |
---|
2574 | EOF |
---|
2575 | |
---|
2576 | else |
---|
2577 | echo "$ac_t""no" 1>&6 |
---|
2578 | fi |
---|
2579 | done |
---|
2580 | |
---|
2581 | |
---|
2582 | # typedefs, structures |
---|
2583 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
2584 | echo "configure:2585: checking for working const" >&5 |
---|
2585 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
2586 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2587 | else |
---|
2588 | cat > conftest.$ac_ext <<EOF |
---|
2589 | #line 2590 "configure" |
---|
2590 | #include "confdefs.h" |
---|
2591 | |
---|
2592 | int main() { |
---|
2593 | |
---|
2594 | /* Ultrix mips cc rejects this. */ |
---|
2595 | typedef int charset[2]; const charset x; |
---|
2596 | /* SunOS 4.1.1 cc rejects this. */ |
---|
2597 | char const *const *ccp; |
---|
2598 | char **p; |
---|
2599 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
2600 | struct point {int x, y;}; |
---|
2601 | static struct point const zero = {0,0}; |
---|
2602 | /* AIX XL C 1.02.0.0 rejects this. |
---|
2603 | It does not let you subtract one const X* pointer from another in an arm |
---|
2604 | of an if-expression whose if-part is not a constant expression */ |
---|
2605 | const char *g = "string"; |
---|
2606 | ccp = &g + (g ? g-g : 0); |
---|
2607 | /* HPUX 7.0 cc rejects these. */ |
---|
2608 | ++ccp; |
---|
2609 | p = (char**) ccp; |
---|
2610 | ccp = (char const *const *) p; |
---|
2611 | { /* SCO 3.2v4 cc rejects this. */ |
---|
2612 | char *t; |
---|
2613 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
2614 | |
---|
2615 | *t++ = 0; |
---|
2616 | } |
---|
2617 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
2618 | int x[] = {25, 17}; |
---|
2619 | const int *foo = &x[0]; |
---|
2620 | ++foo; |
---|
2621 | } |
---|
2622 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
2623 | typedef const int *iptr; |
---|
2624 | iptr p = 0; |
---|
2625 | ++p; |
---|
2626 | } |
---|
2627 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
2628 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
2629 | struct s { int j; const int *ap[3]; }; |
---|
2630 | struct s *b; b->j = 5; |
---|
2631 | } |
---|
2632 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
2633 | const int foo = 10; |
---|
2634 | } |
---|
2635 | |
---|
2636 | ; return 0; } |
---|
2637 | EOF |
---|
2638 | if { (eval echo configure:2639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2639 | rm -rf conftest* |
---|
2640 | ac_cv_c_const=yes |
---|
2641 | else |
---|
2642 | echo "configure: failed program was:" >&5 |
---|
2643 | cat conftest.$ac_ext >&5 |
---|
2644 | rm -rf conftest* |
---|
2645 | ac_cv_c_const=no |
---|
2646 | fi |
---|
2647 | rm -f conftest* |
---|
2648 | fi |
---|
2649 | |
---|
2650 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
2651 | if test $ac_cv_c_const = no; then |
---|
2652 | cat >> confdefs.h <<\EOF |
---|
2653 | #define const |
---|
2654 | EOF |
---|
2655 | |
---|
2656 | fi |
---|
2657 | |
---|
2658 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
2659 | echo "configure:2660: checking for inline" >&5 |
---|
2660 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
2661 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2662 | else |
---|
2663 | ac_cv_c_inline=no |
---|
2664 | for ac_kw in inline __inline__ __inline; do |
---|
2665 | cat > conftest.$ac_ext <<EOF |
---|
2666 | #line 2667 "configure" |
---|
2667 | #include "confdefs.h" |
---|
2668 | |
---|
2669 | int main() { |
---|
2670 | } $ac_kw foo() { |
---|
2671 | ; return 0; } |
---|
2672 | EOF |
---|
2673 | if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2674 | rm -rf conftest* |
---|
2675 | ac_cv_c_inline=$ac_kw; break |
---|
2676 | else |
---|
2677 | echo "configure: failed program was:" >&5 |
---|
2678 | cat conftest.$ac_ext >&5 |
---|
2679 | fi |
---|
2680 | rm -f conftest* |
---|
2681 | done |
---|
2682 | |
---|
2683 | fi |
---|
2684 | |
---|
2685 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
2686 | case "$ac_cv_c_inline" in |
---|
2687 | inline | yes) ;; |
---|
2688 | no) cat >> confdefs.h <<\EOF |
---|
2689 | #define inline |
---|
2690 | EOF |
---|
2691 | ;; |
---|
2692 | *) cat >> confdefs.h <<EOF |
---|
2693 | #define inline $ac_cv_c_inline |
---|
2694 | EOF |
---|
2695 | ;; |
---|
2696 | esac |
---|
2697 | |
---|
2698 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
2699 | echo "configure:2700: checking for size_t" >&5 |
---|
2700 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
2701 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2702 | else |
---|
2703 | cat > conftest.$ac_ext <<EOF |
---|
2704 | #line 2705 "configure" |
---|
2705 | #include "confdefs.h" |
---|
2706 | #include <sys/types.h> |
---|
2707 | #if STDC_HEADERS |
---|
2708 | #include <stdlib.h> |
---|
2709 | #include <stddef.h> |
---|
2710 | #endif |
---|
2711 | EOF |
---|
2712 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2713 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
2714 | rm -rf conftest* |
---|
2715 | ac_cv_type_size_t=yes |
---|
2716 | else |
---|
2717 | rm -rf conftest* |
---|
2718 | ac_cv_type_size_t=no |
---|
2719 | fi |
---|
2720 | rm -f conftest* |
---|
2721 | |
---|
2722 | fi |
---|
2723 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
2724 | if test $ac_cv_type_size_t = no; then |
---|
2725 | cat >> confdefs.h <<\EOF |
---|
2726 | #define size_t unsigned |
---|
2727 | EOF |
---|
2728 | |
---|
2729 | fi |
---|
2730 | |
---|
2731 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
---|
2732 | echo "configure:2733: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
2733 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
---|
2734 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2735 | else |
---|
2736 | cat > conftest.$ac_ext <<EOF |
---|
2737 | #line 2738 "configure" |
---|
2738 | #include "confdefs.h" |
---|
2739 | #include <sys/types.h> |
---|
2740 | #include <time.h> |
---|
2741 | int main() { |
---|
2742 | struct tm *tp; tp->tm_sec; |
---|
2743 | ; return 0; } |
---|
2744 | EOF |
---|
2745 | if { (eval echo configure:2746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2746 | rm -rf conftest* |
---|
2747 | ac_cv_struct_tm=time.h |
---|
2748 | else |
---|
2749 | echo "configure: failed program was:" >&5 |
---|
2750 | cat conftest.$ac_ext >&5 |
---|
2751 | rm -rf conftest* |
---|
2752 | ac_cv_struct_tm=sys/time.h |
---|
2753 | fi |
---|
2754 | rm -f conftest* |
---|
2755 | fi |
---|
2756 | |
---|
2757 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
---|
2758 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
2759 | cat >> confdefs.h <<\EOF |
---|
2760 | #define TM_IN_SYS_TIME 1 |
---|
2761 | EOF |
---|
2762 | |
---|
2763 | fi |
---|
2764 | |
---|
2765 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
---|
2766 | echo "configure:2767: checking whether time.h and sys/time.h may both be included" >&5 |
---|
2767 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
---|
2768 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2769 | else |
---|
2770 | cat > conftest.$ac_ext <<EOF |
---|
2771 | #line 2772 "configure" |
---|
2772 | #include "confdefs.h" |
---|
2773 | #include <sys/types.h> |
---|
2774 | #include <sys/time.h> |
---|
2775 | #include <time.h> |
---|
2776 | int main() { |
---|
2777 | struct tm *tp; |
---|
2778 | ; return 0; } |
---|
2779 | EOF |
---|
2780 | if { (eval echo configure:2781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
2781 | rm -rf conftest* |
---|
2782 | ac_cv_header_time=yes |
---|
2783 | else |
---|
2784 | echo "configure: failed program was:" >&5 |
---|
2785 | cat conftest.$ac_ext >&5 |
---|
2786 | rm -rf conftest* |
---|
2787 | ac_cv_header_time=no |
---|
2788 | fi |
---|
2789 | rm -f conftest* |
---|
2790 | fi |
---|
2791 | |
---|
2792 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
---|
2793 | if test $ac_cv_header_time = yes; then |
---|
2794 | cat >> confdefs.h <<\EOF |
---|
2795 | #define TIME_WITH_SYS_TIME 1 |
---|
2796 | EOF |
---|
2797 | |
---|
2798 | fi |
---|
2799 | |
---|
2800 | |
---|
2801 | # library functions. |
---|
2802 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
2803 | # for constant arguments. Useless! |
---|
2804 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
2805 | echo "configure:2806: checking for working alloca.h" >&5 |
---|
2806 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
2807 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2808 | else |
---|
2809 | cat > conftest.$ac_ext <<EOF |
---|
2810 | #line 2811 "configure" |
---|
2811 | #include "confdefs.h" |
---|
2812 | #include <alloca.h> |
---|
2813 | int main() { |
---|
2814 | char *p = alloca(2 * sizeof(int)); |
---|
2815 | ; return 0; } |
---|
2816 | EOF |
---|
2817 | if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2818 | rm -rf conftest* |
---|
2819 | ac_cv_header_alloca_h=yes |
---|
2820 | else |
---|
2821 | echo "configure: failed program was:" >&5 |
---|
2822 | cat conftest.$ac_ext >&5 |
---|
2823 | rm -rf conftest* |
---|
2824 | ac_cv_header_alloca_h=no |
---|
2825 | fi |
---|
2826 | rm -f conftest* |
---|
2827 | fi |
---|
2828 | |
---|
2829 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
2830 | if test $ac_cv_header_alloca_h = yes; then |
---|
2831 | cat >> confdefs.h <<\EOF |
---|
2832 | #define HAVE_ALLOCA_H 1 |
---|
2833 | EOF |
---|
2834 | |
---|
2835 | fi |
---|
2836 | |
---|
2837 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
2838 | echo "configure:2839: checking for alloca" >&5 |
---|
2839 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
2840 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2841 | else |
---|
2842 | cat > conftest.$ac_ext <<EOF |
---|
2843 | #line 2844 "configure" |
---|
2844 | #include "confdefs.h" |
---|
2845 | |
---|
2846 | #ifdef __GNUC__ |
---|
2847 | # define alloca __builtin_alloca |
---|
2848 | #else |
---|
2849 | # ifdef _MSC_VER |
---|
2850 | # include <malloc.h> |
---|
2851 | # define alloca _alloca |
---|
2852 | # else |
---|
2853 | # if HAVE_ALLOCA_H |
---|
2854 | # include <alloca.h> |
---|
2855 | # else |
---|
2856 | # ifdef _AIX |
---|
2857 | #pragma alloca |
---|
2858 | # else |
---|
2859 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
2860 | char *alloca (); |
---|
2861 | # endif |
---|
2862 | # endif |
---|
2863 | # endif |
---|
2864 | # endif |
---|
2865 | #endif |
---|
2866 | |
---|
2867 | int main() { |
---|
2868 | char *p = (char *) alloca(1); |
---|
2869 | ; return 0; } |
---|
2870 | EOF |
---|
2871 | if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2872 | rm -rf conftest* |
---|
2873 | ac_cv_func_alloca_works=yes |
---|
2874 | else |
---|
2875 | echo "configure: failed program was:" >&5 |
---|
2876 | cat conftest.$ac_ext >&5 |
---|
2877 | rm -rf conftest* |
---|
2878 | ac_cv_func_alloca_works=no |
---|
2879 | fi |
---|
2880 | rm -f conftest* |
---|
2881 | fi |
---|
2882 | |
---|
2883 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
2884 | if test $ac_cv_func_alloca_works = yes; then |
---|
2885 | cat >> confdefs.h <<\EOF |
---|
2886 | #define HAVE_ALLOCA 1 |
---|
2887 | EOF |
---|
2888 | |
---|
2889 | fi |
---|
2890 | |
---|
2891 | if test $ac_cv_func_alloca_works = no; then |
---|
2892 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
2893 | # that cause trouble. Some versions do not even contain alloca or |
---|
2894 | # contain a buggy version. If you still want to use their alloca, |
---|
2895 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
2896 | ALLOCA=alloca.${ac_objext} |
---|
2897 | cat >> confdefs.h <<\EOF |
---|
2898 | #define C_ALLOCA 1 |
---|
2899 | EOF |
---|
2900 | |
---|
2901 | |
---|
2902 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
2903 | echo "configure:2904: checking whether alloca needs Cray hooks" >&5 |
---|
2904 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
2905 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2906 | else |
---|
2907 | cat > conftest.$ac_ext <<EOF |
---|
2908 | #line 2909 "configure" |
---|
2909 | #include "confdefs.h" |
---|
2910 | #if defined(CRAY) && ! defined(CRAY2) |
---|
2911 | webecray |
---|
2912 | #else |
---|
2913 | wenotbecray |
---|
2914 | #endif |
---|
2915 | |
---|
2916 | EOF |
---|
2917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2918 | egrep "webecray" >/dev/null 2>&1; then |
---|
2919 | rm -rf conftest* |
---|
2920 | ac_cv_os_cray=yes |
---|
2921 | else |
---|
2922 | rm -rf conftest* |
---|
2923 | ac_cv_os_cray=no |
---|
2924 | fi |
---|
2925 | rm -f conftest* |
---|
2926 | |
---|
2927 | fi |
---|
2928 | |
---|
2929 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
2930 | if test $ac_cv_os_cray = yes; then |
---|
2931 | for ac_func in _getb67 GETB67 getb67; do |
---|
2932 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2933 | echo "configure:2934: checking for $ac_func" >&5 |
---|
2934 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2935 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2936 | else |
---|
2937 | cat > conftest.$ac_ext <<EOF |
---|
2938 | #line 2939 "configure" |
---|
2939 | #include "confdefs.h" |
---|
2940 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2941 | which can conflict with char $ac_func(); below. */ |
---|
2942 | #include <assert.h> |
---|
2943 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2944 | /* We use char because int might match the return type of a gcc2 |
---|
2945 | builtin and then its argument prototype would still apply. */ |
---|
2946 | char $ac_func(); |
---|
2947 | |
---|
2948 | int main() { |
---|
2949 | |
---|
2950 | /* The GNU C library defines this for functions which it implements |
---|
2951 | to always fail with ENOSYS. Some functions are actually named |
---|
2952 | something starting with __ and the normal name is an alias. */ |
---|
2953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2954 | choke me |
---|
2955 | #else |
---|
2956 | $ac_func(); |
---|
2957 | #endif |
---|
2958 | |
---|
2959 | ; return 0; } |
---|
2960 | EOF |
---|
2961 | if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2962 | rm -rf conftest* |
---|
2963 | eval "ac_cv_func_$ac_func=yes" |
---|
2964 | else |
---|
2965 | echo "configure: failed program was:" >&5 |
---|
2966 | cat conftest.$ac_ext >&5 |
---|
2967 | rm -rf conftest* |
---|
2968 | eval "ac_cv_func_$ac_func=no" |
---|
2969 | fi |
---|
2970 | rm -f conftest* |
---|
2971 | fi |
---|
2972 | |
---|
2973 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2974 | echo "$ac_t""yes" 1>&6 |
---|
2975 | cat >> confdefs.h <<EOF |
---|
2976 | #define CRAY_STACKSEG_END $ac_func |
---|
2977 | EOF |
---|
2978 | |
---|
2979 | break |
---|
2980 | else |
---|
2981 | echo "$ac_t""no" 1>&6 |
---|
2982 | fi |
---|
2983 | |
---|
2984 | done |
---|
2985 | fi |
---|
2986 | |
---|
2987 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
2988 | echo "configure:2989: checking stack direction for C alloca" >&5 |
---|
2989 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
2990 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2991 | else |
---|
2992 | if test "$cross_compiling" = yes; then |
---|
2993 | ac_cv_c_stack_direction=0 |
---|
2994 | else |
---|
2995 | cat > conftest.$ac_ext <<EOF |
---|
2996 | #line 2997 "configure" |
---|
2997 | #include "confdefs.h" |
---|
2998 | find_stack_direction () |
---|
2999 | { |
---|
3000 | static char *addr = 0; |
---|
3001 | auto char dummy; |
---|
3002 | if (addr == 0) |
---|
3003 | { |
---|
3004 | addr = &dummy; |
---|
3005 | return find_stack_direction (); |
---|
3006 | } |
---|
3007 | else |
---|
3008 | return (&dummy > addr) ? 1 : -1; |
---|
3009 | } |
---|
3010 | main () |
---|
3011 | { |
---|
3012 | exit (find_stack_direction() < 0); |
---|
3013 | } |
---|
3014 | EOF |
---|
3015 | if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3016 | then |
---|
3017 | ac_cv_c_stack_direction=1 |
---|
3018 | else |
---|
3019 | echo "configure: failed program was:" >&5 |
---|
3020 | cat conftest.$ac_ext >&5 |
---|
3021 | rm -fr conftest* |
---|
3022 | ac_cv_c_stack_direction=-1 |
---|
3023 | fi |
---|
3024 | rm -fr conftest* |
---|
3025 | fi |
---|
3026 | |
---|
3027 | fi |
---|
3028 | |
---|
3029 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
3030 | cat >> confdefs.h <<EOF |
---|
3031 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
3032 | EOF |
---|
3033 | |
---|
3034 | fi |
---|
3035 | |
---|
3036 | if test $ac_cv_prog_gcc = yes; then |
---|
3037 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
---|
3038 | echo "configure:3039: checking whether ${CC-cc} needs -traditional" >&5 |
---|
3039 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
---|
3040 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3041 | else |
---|
3042 | ac_pattern="Autoconf.*'x'" |
---|
3043 | cat > conftest.$ac_ext <<EOF |
---|
3044 | #line 3045 "configure" |
---|
3045 | #include "confdefs.h" |
---|
3046 | #include <sgtty.h> |
---|
3047 | Autoconf TIOCGETP |
---|
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 | else |
---|
3054 | rm -rf conftest* |
---|
3055 | ac_cv_prog_gcc_traditional=no |
---|
3056 | fi |
---|
3057 | rm -f conftest* |
---|
3058 | |
---|
3059 | |
---|
3060 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
3061 | cat > conftest.$ac_ext <<EOF |
---|
3062 | #line 3063 "configure" |
---|
3063 | #include "confdefs.h" |
---|
3064 | #include <termio.h> |
---|
3065 | Autoconf TCGETA |
---|
3066 | EOF |
---|
3067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3068 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
3069 | rm -rf conftest* |
---|
3070 | ac_cv_prog_gcc_traditional=yes |
---|
3071 | fi |
---|
3072 | rm -f conftest* |
---|
3073 | |
---|
3074 | fi |
---|
3075 | fi |
---|
3076 | |
---|
3077 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
---|
3078 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
3079 | CC="$CC -traditional" |
---|
3080 | fi |
---|
3081 | fi |
---|
3082 | |
---|
3083 | for ac_hdr in unistd.h |
---|
3084 | do |
---|
3085 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
3086 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
3087 | echo "configure:3088: checking for $ac_hdr" >&5 |
---|
3088 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
3089 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3090 | else |
---|
3091 | cat > conftest.$ac_ext <<EOF |
---|
3092 | #line 3093 "configure" |
---|
3093 | #include "confdefs.h" |
---|
3094 | #include <$ac_hdr> |
---|
3095 | EOF |
---|
3096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
3097 | { (eval echo configure:3098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
3098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
3099 | if test -z "$ac_err"; then |
---|
3100 | rm -rf conftest* |
---|
3101 | eval "ac_cv_header_$ac_safe=yes" |
---|
3102 | else |
---|
3103 | echo "$ac_err" >&5 |
---|
3104 | echo "configure: failed program was:" >&5 |
---|
3105 | cat conftest.$ac_ext >&5 |
---|
3106 | rm -rf conftest* |
---|
3107 | eval "ac_cv_header_$ac_safe=no" |
---|
3108 | fi |
---|
3109 | rm -f conftest* |
---|
3110 | fi |
---|
3111 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
3112 | echo "$ac_t""yes" 1>&6 |
---|
3113 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
3114 | cat >> confdefs.h <<EOF |
---|
3115 | #define $ac_tr_hdr 1 |
---|
3116 | EOF |
---|
3117 | |
---|
3118 | else |
---|
3119 | echo "$ac_t""no" 1>&6 |
---|
3120 | fi |
---|
3121 | done |
---|
3122 | |
---|
3123 | for ac_func in getpagesize |
---|
3124 | do |
---|
3125 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3126 | echo "configure:3127: checking for $ac_func" >&5 |
---|
3127 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3128 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3129 | else |
---|
3130 | cat > conftest.$ac_ext <<EOF |
---|
3131 | #line 3132 "configure" |
---|
3132 | #include "confdefs.h" |
---|
3133 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3134 | which can conflict with char $ac_func(); below. */ |
---|
3135 | #include <assert.h> |
---|
3136 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3137 | /* We use char because int might match the return type of a gcc2 |
---|
3138 | builtin and then its argument prototype would still apply. */ |
---|
3139 | char $ac_func(); |
---|
3140 | |
---|
3141 | int main() { |
---|
3142 | |
---|
3143 | /* The GNU C library defines this for functions which it implements |
---|
3144 | to always fail with ENOSYS. Some functions are actually named |
---|
3145 | something starting with __ and the normal name is an alias. */ |
---|
3146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3147 | choke me |
---|
3148 | #else |
---|
3149 | $ac_func(); |
---|
3150 | #endif |
---|
3151 | |
---|
3152 | ; return 0; } |
---|
3153 | EOF |
---|
3154 | if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3155 | rm -rf conftest* |
---|
3156 | eval "ac_cv_func_$ac_func=yes" |
---|
3157 | else |
---|
3158 | echo "configure: failed program was:" >&5 |
---|
3159 | cat conftest.$ac_ext >&5 |
---|
3160 | rm -rf conftest* |
---|
3161 | eval "ac_cv_func_$ac_func=no" |
---|
3162 | fi |
---|
3163 | rm -f conftest* |
---|
3164 | fi |
---|
3165 | |
---|
3166 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3167 | echo "$ac_t""yes" 1>&6 |
---|
3168 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3169 | cat >> confdefs.h <<EOF |
---|
3170 | #define $ac_tr_func 1 |
---|
3171 | EOF |
---|
3172 | |
---|
3173 | else |
---|
3174 | echo "$ac_t""no" 1>&6 |
---|
3175 | fi |
---|
3176 | done |
---|
3177 | |
---|
3178 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
3179 | echo "configure:3180: checking for working mmap" >&5 |
---|
3180 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
3181 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3182 | else |
---|
3183 | if test "$cross_compiling" = yes; then |
---|
3184 | ac_cv_func_mmap_fixed_mapped=no |
---|
3185 | else |
---|
3186 | cat > conftest.$ac_ext <<EOF |
---|
3187 | #line 3188 "configure" |
---|
3188 | #include "confdefs.h" |
---|
3189 | |
---|
3190 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
3191 | Here is a matrix of mmap possibilities: |
---|
3192 | mmap private not fixed |
---|
3193 | mmap private fixed at somewhere currently unmapped |
---|
3194 | mmap private fixed at somewhere already mapped |
---|
3195 | mmap shared not fixed |
---|
3196 | mmap shared fixed at somewhere currently unmapped |
---|
3197 | mmap shared fixed at somewhere already mapped |
---|
3198 | For private mappings, we should verify that changes cannot be read() |
---|
3199 | back from the file, nor mmap's back from the file at a different |
---|
3200 | address. (There have been systems where private was not correctly |
---|
3201 | implemented like the infamous i386 svr4.0, and systems where the |
---|
3202 | VM page cache was not coherent with the filesystem buffer cache |
---|
3203 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
3204 | For shared mappings, we should conversely verify that changes get |
---|
3205 | propogated back to all the places they're supposed to be. |
---|
3206 | |
---|
3207 | Grep wants private fixed already mapped. |
---|
3208 | The main things grep needs to know about mmap are: |
---|
3209 | * does it exist and is it safe to write into the mmap'd area |
---|
3210 | * how to use it (BSD variants) */ |
---|
3211 | #include <sys/types.h> |
---|
3212 | #include <fcntl.h> |
---|
3213 | #include <sys/mman.h> |
---|
3214 | |
---|
3215 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
3216 | #ifndef HAVE_GETPAGESIZE |
---|
3217 | # ifdef HAVE_UNISTD_H |
---|
3218 | # include <unistd.h> |
---|
3219 | # endif |
---|
3220 | |
---|
3221 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
3222 | # ifndef HAVE_SYS_PARAM_H |
---|
3223 | # define HAVE_SYS_PARAM_H 1 |
---|
3224 | # endif |
---|
3225 | |
---|
3226 | # ifdef _SC_PAGESIZE |
---|
3227 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
3228 | # else /* no _SC_PAGESIZE */ |
---|
3229 | # ifdef HAVE_SYS_PARAM_H |
---|
3230 | # include <sys/param.h> |
---|
3231 | # ifdef EXEC_PAGESIZE |
---|
3232 | # define getpagesize() EXEC_PAGESIZE |
---|
3233 | # else /* no EXEC_PAGESIZE */ |
---|
3234 | # ifdef NBPG |
---|
3235 | # define getpagesize() NBPG * CLSIZE |
---|
3236 | # ifndef CLSIZE |
---|
3237 | # define CLSIZE 1 |
---|
3238 | # endif /* no CLSIZE */ |
---|
3239 | # else /* no NBPG */ |
---|
3240 | # ifdef NBPC |
---|
3241 | # define getpagesize() NBPC |
---|
3242 | # else /* no NBPC */ |
---|
3243 | # ifdef PAGESIZE |
---|
3244 | # define getpagesize() PAGESIZE |
---|
3245 | # endif /* PAGESIZE */ |
---|
3246 | # endif /* no NBPC */ |
---|
3247 | # endif /* no NBPG */ |
---|
3248 | # endif /* no EXEC_PAGESIZE */ |
---|
3249 | # else /* no HAVE_SYS_PARAM_H */ |
---|
3250 | # define getpagesize() 8192 /* punt totally */ |
---|
3251 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
3252 | # endif /* no _SC_PAGESIZE */ |
---|
3253 | |
---|
3254 | #endif /* no HAVE_GETPAGESIZE */ |
---|
3255 | |
---|
3256 | #ifdef __cplusplus |
---|
3257 | extern "C" { void *malloc(unsigned); } |
---|
3258 | #else |
---|
3259 | char *malloc(); |
---|
3260 | #endif |
---|
3261 | |
---|
3262 | int |
---|
3263 | main() |
---|
3264 | { |
---|
3265 | char *data, *data2, *data3; |
---|
3266 | int i, pagesize; |
---|
3267 | int fd; |
---|
3268 | |
---|
3269 | pagesize = getpagesize(); |
---|
3270 | |
---|
3271 | /* |
---|
3272 | * First, make a file with some known garbage in it. |
---|
3273 | */ |
---|
3274 | data = malloc(pagesize); |
---|
3275 | if (!data) |
---|
3276 | exit(1); |
---|
3277 | for (i = 0; i < pagesize; ++i) |
---|
3278 | *(data + i) = rand(); |
---|
3279 | umask(0); |
---|
3280 | fd = creat("conftestmmap", 0600); |
---|
3281 | if (fd < 0) |
---|
3282 | exit(1); |
---|
3283 | if (write(fd, data, pagesize) != pagesize) |
---|
3284 | exit(1); |
---|
3285 | close(fd); |
---|
3286 | |
---|
3287 | /* |
---|
3288 | * Next, try to mmap the file at a fixed address which |
---|
3289 | * already has something else allocated at it. If we can, |
---|
3290 | * also make sure that we see the same garbage. |
---|
3291 | */ |
---|
3292 | fd = open("conftestmmap", O_RDWR); |
---|
3293 | if (fd < 0) |
---|
3294 | exit(1); |
---|
3295 | data2 = malloc(2 * pagesize); |
---|
3296 | if (!data2) |
---|
3297 | exit(1); |
---|
3298 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
3299 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
3300 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
3301 | exit(1); |
---|
3302 | for (i = 0; i < pagesize; ++i) |
---|
3303 | if (*(data + i) != *(data2 + i)) |
---|
3304 | exit(1); |
---|
3305 | |
---|
3306 | /* |
---|
3307 | * Finally, make sure that changes to the mapped area |
---|
3308 | * do not percolate back to the file as seen by read(). |
---|
3309 | * (This is a bug on some variants of i386 svr4.0.) |
---|
3310 | */ |
---|
3311 | for (i = 0; i < pagesize; ++i) |
---|
3312 | *(data2 + i) = *(data2 + i) + 1; |
---|
3313 | data3 = malloc(pagesize); |
---|
3314 | if (!data3) |
---|
3315 | exit(1); |
---|
3316 | if (read(fd, data3, pagesize) != pagesize) |
---|
3317 | exit(1); |
---|
3318 | for (i = 0; i < pagesize; ++i) |
---|
3319 | if (*(data + i) != *(data3 + i)) |
---|
3320 | exit(1); |
---|
3321 | close(fd); |
---|
3322 | unlink("conftestmmap"); |
---|
3323 | exit(0); |
---|
3324 | } |
---|
3325 | |
---|
3326 | EOF |
---|
3327 | if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3328 | then |
---|
3329 | ac_cv_func_mmap_fixed_mapped=yes |
---|
3330 | else |
---|
3331 | echo "configure: failed program was:" >&5 |
---|
3332 | cat conftest.$ac_ext >&5 |
---|
3333 | rm -fr conftest* |
---|
3334 | ac_cv_func_mmap_fixed_mapped=no |
---|
3335 | fi |
---|
3336 | rm -fr conftest* |
---|
3337 | fi |
---|
3338 | |
---|
3339 | fi |
---|
3340 | |
---|
3341 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
3342 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
3343 | cat >> confdefs.h <<\EOF |
---|
3344 | #define HAVE_MMAP 1 |
---|
3345 | EOF |
---|
3346 | |
---|
3347 | fi |
---|
3348 | |
---|
3349 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
---|
3350 | echo "configure:3351: checking return type of signal handlers" >&5 |
---|
3351 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
---|
3352 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3353 | else |
---|
3354 | cat > conftest.$ac_ext <<EOF |
---|
3355 | #line 3356 "configure" |
---|
3356 | #include "confdefs.h" |
---|
3357 | #include <sys/types.h> |
---|
3358 | #include <signal.h> |
---|
3359 | #ifdef signal |
---|
3360 | #undef signal |
---|
3361 | #endif |
---|
3362 | #ifdef __cplusplus |
---|
3363 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
3364 | #else |
---|
3365 | void (*signal ()) (); |
---|
3366 | #endif |
---|
3367 | |
---|
3368 | int main() { |
---|
3369 | int i; |
---|
3370 | ; return 0; } |
---|
3371 | EOF |
---|
3372 | if { (eval echo configure:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3373 | rm -rf conftest* |
---|
3374 | ac_cv_type_signal=void |
---|
3375 | else |
---|
3376 | echo "configure: failed program was:" >&5 |
---|
3377 | cat conftest.$ac_ext >&5 |
---|
3378 | rm -rf conftest* |
---|
3379 | ac_cv_type_signal=int |
---|
3380 | fi |
---|
3381 | rm -f conftest* |
---|
3382 | fi |
---|
3383 | |
---|
3384 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
---|
3385 | cat >> confdefs.h <<EOF |
---|
3386 | #define RETSIGTYPE $ac_cv_type_signal |
---|
3387 | EOF |
---|
3388 | |
---|
3389 | |
---|
3390 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
3391 | echo "configure:3392: checking for vprintf" >&5 |
---|
3392 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
3393 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3394 | else |
---|
3395 | cat > conftest.$ac_ext <<EOF |
---|
3396 | #line 3397 "configure" |
---|
3397 | #include "confdefs.h" |
---|
3398 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3399 | which can conflict with char vprintf(); below. */ |
---|
3400 | #include <assert.h> |
---|
3401 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3402 | /* We use char because int might match the return type of a gcc2 |
---|
3403 | builtin and then its argument prototype would still apply. */ |
---|
3404 | char vprintf(); |
---|
3405 | |
---|
3406 | int main() { |
---|
3407 | |
---|
3408 | /* The GNU C library defines this for functions which it implements |
---|
3409 | to always fail with ENOSYS. Some functions are actually named |
---|
3410 | something starting with __ and the normal name is an alias. */ |
---|
3411 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
3412 | choke me |
---|
3413 | #else |
---|
3414 | vprintf(); |
---|
3415 | #endif |
---|
3416 | |
---|
3417 | ; return 0; } |
---|
3418 | EOF |
---|
3419 | if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3420 | rm -rf conftest* |
---|
3421 | eval "ac_cv_func_vprintf=yes" |
---|
3422 | else |
---|
3423 | echo "configure: failed program was:" >&5 |
---|
3424 | cat conftest.$ac_ext >&5 |
---|
3425 | rm -rf conftest* |
---|
3426 | eval "ac_cv_func_vprintf=no" |
---|
3427 | fi |
---|
3428 | rm -f conftest* |
---|
3429 | fi |
---|
3430 | |
---|
3431 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
3432 | echo "$ac_t""yes" 1>&6 |
---|
3433 | cat >> confdefs.h <<\EOF |
---|
3434 | #define HAVE_VPRINTF 1 |
---|
3435 | EOF |
---|
3436 | |
---|
3437 | else |
---|
3438 | echo "$ac_t""no" 1>&6 |
---|
3439 | fi |
---|
3440 | |
---|
3441 | if test "$ac_cv_func_vprintf" != yes; then |
---|
3442 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
3443 | echo "configure:3444: checking for _doprnt" >&5 |
---|
3444 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
3445 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3446 | else |
---|
3447 | cat > conftest.$ac_ext <<EOF |
---|
3448 | #line 3449 "configure" |
---|
3449 | #include "confdefs.h" |
---|
3450 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3451 | which can conflict with char _doprnt(); below. */ |
---|
3452 | #include <assert.h> |
---|
3453 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3454 | /* We use char because int might match the return type of a gcc2 |
---|
3455 | builtin and then its argument prototype would still apply. */ |
---|
3456 | char _doprnt(); |
---|
3457 | |
---|
3458 | int main() { |
---|
3459 | |
---|
3460 | /* The GNU C library defines this for functions which it implements |
---|
3461 | to always fail with ENOSYS. Some functions are actually named |
---|
3462 | something starting with __ and the normal name is an alias. */ |
---|
3463 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
3464 | choke me |
---|
3465 | #else |
---|
3466 | _doprnt(); |
---|
3467 | #endif |
---|
3468 | |
---|
3469 | ; return 0; } |
---|
3470 | EOF |
---|
3471 | if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3472 | rm -rf conftest* |
---|
3473 | eval "ac_cv_func__doprnt=yes" |
---|
3474 | else |
---|
3475 | echo "configure: failed program was:" >&5 |
---|
3476 | cat conftest.$ac_ext >&5 |
---|
3477 | rm -rf conftest* |
---|
3478 | eval "ac_cv_func__doprnt=no" |
---|
3479 | fi |
---|
3480 | rm -f conftest* |
---|
3481 | fi |
---|
3482 | |
---|
3483 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
3484 | echo "$ac_t""yes" 1>&6 |
---|
3485 | cat >> confdefs.h <<\EOF |
---|
3486 | #define HAVE_DOPRNT 1 |
---|
3487 | EOF |
---|
3488 | |
---|
3489 | else |
---|
3490 | echo "$ac_t""no" 1>&6 |
---|
3491 | fi |
---|
3492 | |
---|
3493 | fi |
---|
3494 | |
---|
3495 | |
---|
3496 | echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 |
---|
3497 | echo "configure:3498: checking for library containing setenv" >&5 |
---|
3498 | if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then |
---|
3499 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3500 | else |
---|
3501 | ac_func_search_save_LIBS="$LIBS" |
---|
3502 | ac_cv_search_setenv="no" |
---|
3503 | cat > conftest.$ac_ext <<EOF |
---|
3504 | #line 3505 "configure" |
---|
3505 | #include "confdefs.h" |
---|
3506 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3507 | /* We use char because int might match the return type of a gcc2 |
---|
3508 | builtin and then its argument prototype would still apply. */ |
---|
3509 | char setenv(); |
---|
3510 | |
---|
3511 | int main() { |
---|
3512 | setenv() |
---|
3513 | ; return 0; } |
---|
3514 | EOF |
---|
3515 | if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3516 | rm -rf conftest* |
---|
3517 | ac_cv_search_setenv="none required" |
---|
3518 | else |
---|
3519 | echo "configure: failed program was:" >&5 |
---|
3520 | cat conftest.$ac_ext >&5 |
---|
3521 | fi |
---|
3522 | rm -f conftest* |
---|
3523 | test "$ac_cv_search_setenv" = "no" && for i in bsd; do |
---|
3524 | LIBS="-l$i $ac_func_search_save_LIBS" |
---|
3525 | cat > conftest.$ac_ext <<EOF |
---|
3526 | #line 3527 "configure" |
---|
3527 | #include "confdefs.h" |
---|
3528 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3529 | /* We use char because int might match the return type of a gcc2 |
---|
3530 | builtin and then its argument prototype would still apply. */ |
---|
3531 | char setenv(); |
---|
3532 | |
---|
3533 | int main() { |
---|
3534 | setenv() |
---|
3535 | ; return 0; } |
---|
3536 | EOF |
---|
3537 | if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3538 | rm -rf conftest* |
---|
3539 | ac_cv_search_setenv="-l$i" |
---|
3540 | break |
---|
3541 | else |
---|
3542 | echo "configure: failed program was:" >&5 |
---|
3543 | cat conftest.$ac_ext >&5 |
---|
3544 | fi |
---|
3545 | rm -f conftest* |
---|
3546 | done |
---|
3547 | LIBS="$ac_func_search_save_LIBS" |
---|
3548 | fi |
---|
3549 | |
---|
3550 | echo "$ac_t""$ac_cv_search_setenv" 1>&6 |
---|
3551 | if test "$ac_cv_search_setenv" != "no"; then |
---|
3552 | test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS" |
---|
3553 | |
---|
3554 | else : |
---|
3555 | |
---|
3556 | fi |
---|
3557 | for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \ |
---|
3558 | sleep usleep getpwnam popen setenv siginterrupt sysconf |
---|
3559 | do |
---|
3560 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
3561 | echo "configure:3562: checking for $ac_func" >&5 |
---|
3562 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
3563 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3564 | else |
---|
3565 | cat > conftest.$ac_ext <<EOF |
---|
3566 | #line 3567 "configure" |
---|
3567 | #include "confdefs.h" |
---|
3568 | /* System header to define __stub macros and hopefully few prototypes, |
---|
3569 | which can conflict with char $ac_func(); below. */ |
---|
3570 | #include <assert.h> |
---|
3571 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3572 | /* We use char because int might match the return type of a gcc2 |
---|
3573 | builtin and then its argument prototype would still apply. */ |
---|
3574 | char $ac_func(); |
---|
3575 | |
---|
3576 | int main() { |
---|
3577 | |
---|
3578 | /* The GNU C library defines this for functions which it implements |
---|
3579 | to always fail with ENOSYS. Some functions are actually named |
---|
3580 | something starting with __ and the normal name is an alias. */ |
---|
3581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
3582 | choke me |
---|
3583 | #else |
---|
3584 | $ac_func(); |
---|
3585 | #endif |
---|
3586 | |
---|
3587 | ; return 0; } |
---|
3588 | EOF |
---|
3589 | if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
3590 | rm -rf conftest* |
---|
3591 | eval "ac_cv_func_$ac_func=yes" |
---|
3592 | else |
---|
3593 | echo "configure: failed program was:" >&5 |
---|
3594 | cat conftest.$ac_ext >&5 |
---|
3595 | rm -rf conftest* |
---|
3596 | eval "ac_cv_func_$ac_func=no" |
---|
3597 | fi |
---|
3598 | rm -f conftest* |
---|
3599 | fi |
---|
3600 | |
---|
3601 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
3602 | echo "$ac_t""yes" 1>&6 |
---|
3603 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
3604 | cat >> confdefs.h <<EOF |
---|
3605 | #define $ac_tr_func 1 |
---|
3606 | EOF |
---|
3607 | |
---|
3608 | else |
---|
3609 | echo "$ac_t""no" 1>&6 |
---|
3610 | fi |
---|
3611 | done |
---|
3612 | |
---|
3613 | |
---|
3614 | |
---|
3615 | |
---|
3616 | # arithmetic shifts |
---|
3617 | echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 |
---|
3618 | echo "configure:3619: checking whether your machine has correct arithmetic shifts" >&5 |
---|
3619 | if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then |
---|
3620 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3621 | else |
---|
3622 | if test "$cross_compiling" = yes; then |
---|
3623 | if test "$ac_c_cross_dos" = yes; then |
---|
3624 | ac_cv_shift=yes; |
---|
3625 | else |
---|
3626 | echo "$ac_t""no" 1>&6 |
---|
3627 | { echo "configure: error: cross compilation without default value" 1>&2; exit 1; } |
---|
3628 | fi |
---|
3629 | else |
---|
3630 | cat > conftest.$ac_ext <<EOF |
---|
3631 | #line 3632 "configure" |
---|
3632 | #include "confdefs.h" |
---|
3633 | int main() { if (-2 >> 1 == -1) return(0); else return(1); } |
---|
3634 | EOF |
---|
3635 | if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3636 | then |
---|
3637 | ac_cv_shift=yes |
---|
3638 | else |
---|
3639 | echo "configure: failed program was:" >&5 |
---|
3640 | cat conftest.$ac_ext >&5 |
---|
3641 | rm -fr conftest* |
---|
3642 | ac_cv_shift=no |
---|
3643 | fi |
---|
3644 | rm -fr conftest* |
---|
3645 | fi |
---|
3646 | |
---|
3647 | fi |
---|
3648 | |
---|
3649 | |
---|
3650 | if test "$ac_cv_shift" = yes; then |
---|
3651 | echo "$ac_t""yes" 1>&6 |
---|
3652 | else |
---|
3653 | echo "$ac_t""no" 1>&6 |
---|
3654 | { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } |
---|
3655 | fi |
---|
3656 | |
---|
3657 | |
---|
3658 | # check for a peculiar constructor initialization |
---|
3659 | echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 |
---|
3660 | echo "configure:3661: checking whether explicit C++ constructor calls are allowed" >&5 |
---|
3661 | |
---|
3662 | ac_ext=C |
---|
3663 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
3664 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3665 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
3666 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
3667 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
3668 | |
---|
3669 | if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then |
---|
3670 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3671 | else |
---|
3672 | cat > conftest.$ac_ext <<EOF |
---|
3673 | #line 3674 "configure" |
---|
3674 | #include "confdefs.h" |
---|
3675 | |
---|
3676 | int main() { |
---|
3677 | class testclass |
---|
3678 | { |
---|
3679 | public: |
---|
3680 | int value; |
---|
3681 | testclass() : value(0) {} |
---|
3682 | testclass( int i ) : value(i) {} |
---|
3683 | ~testclass() { value = 0; } |
---|
3684 | }; |
---|
3685 | |
---|
3686 | testclass ptr; |
---|
3687 | ptr.testclass(1); |
---|
3688 | |
---|
3689 | ; return 0; } |
---|
3690 | EOF |
---|
3691 | if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
3692 | rm -rf conftest* |
---|
3693 | ac_cv_explicit_const=yes |
---|
3694 | else |
---|
3695 | echo "configure: failed program was:" >&5 |
---|
3696 | cat conftest.$ac_ext >&5 |
---|
3697 | rm -rf conftest* |
---|
3698 | ac_cv_explicit_const=no |
---|
3699 | fi |
---|
3700 | rm -f conftest* |
---|
3701 | fi |
---|
3702 | |
---|
3703 | ac_ext=c |
---|
3704 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
3705 | ac_cpp='$CPP $CPPFLAGS' |
---|
3706 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
3707 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
3708 | cross_compiling=$ac_cv_prog_cc_cross |
---|
3709 | |
---|
3710 | echo "$ac_t""$ac_cv_explicit_const" 1>&6 |
---|
3711 | if test "$ac_cv_explicit_const" = yes; then |
---|
3712 | cat >> confdefs.h <<\EOF |
---|
3713 | #define HAVE_EXPLICIT_CONSTR 1 |
---|
3714 | EOF |
---|
3715 | |
---|
3716 | fi |
---|
3717 | |
---|
3718 | # sprintf returns number of printed chars |
---|
3719 | echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 |
---|
3720 | echo "configure:3721: checking whether vsprintf returns number of printed chars" >&5 |
---|
3721 | if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then |
---|
3722 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3723 | else |
---|
3724 | if test "$cross_compiling" = yes; then |
---|
3725 | ac_cv_returns_n_of_chars=no |
---|
3726 | else |
---|
3727 | cat > conftest.$ac_ext <<EOF |
---|
3728 | #line 3729 "configure" |
---|
3729 | #include "confdefs.h" |
---|
3730 | #include <stdio.h> |
---|
3731 | main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } |
---|
3732 | EOF |
---|
3733 | if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3734 | then |
---|
3735 | ac_cv_returns_n_of_chars=yes |
---|
3736 | else |
---|
3737 | echo "configure: failed program was:" >&5 |
---|
3738 | cat conftest.$ac_ext >&5 |
---|
3739 | rm -fr conftest* |
---|
3740 | ac_cv_returns_n_of_chars=no |
---|
3741 | fi |
---|
3742 | rm -fr conftest* |
---|
3743 | fi |
---|
3744 | |
---|
3745 | fi |
---|
3746 | |
---|
3747 | if test "$ac_cv_returns_n_of_chars" = yes; then |
---|
3748 | echo "$ac_t""yes" 1>&6 |
---|
3749 | else |
---|
3750 | echo "$ac_t""no" 1>&6 |
---|
3751 | cat >> confdefs.h <<\EOF |
---|
3752 | #define BSD_SPRINTF 1 |
---|
3753 | EOF |
---|
3754 | |
---|
3755 | fi |
---|
3756 | |
---|
3757 | # determine ALIGN_8 |
---|
3758 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
---|
3759 | echo "configure:3760: checking size of char" >&5 |
---|
3760 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
---|
3761 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3762 | else |
---|
3763 | if test "$cross_compiling" = yes; then |
---|
3764 | ac_cv_sizeof_char=1 |
---|
3765 | else |
---|
3766 | cat > conftest.$ac_ext <<EOF |
---|
3767 | #line 3768 "configure" |
---|
3768 | #include "confdefs.h" |
---|
3769 | #include <stdio.h> |
---|
3770 | main() |
---|
3771 | { |
---|
3772 | FILE *f=fopen("conftestval", "w"); |
---|
3773 | if (!f) exit(1); |
---|
3774 | fprintf(f, "%d\n", sizeof(char)); |
---|
3775 | exit(0); |
---|
3776 | } |
---|
3777 | EOF |
---|
3778 | if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3779 | then |
---|
3780 | ac_cv_sizeof_char=`cat conftestval` |
---|
3781 | else |
---|
3782 | echo "configure: failed program was:" >&5 |
---|
3783 | cat conftest.$ac_ext >&5 |
---|
3784 | rm -fr conftest* |
---|
3785 | ac_cv_sizeof_char=0 |
---|
3786 | fi |
---|
3787 | rm -fr conftest* |
---|
3788 | fi |
---|
3789 | |
---|
3790 | fi |
---|
3791 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
---|
3792 | cat >> confdefs.h <<EOF |
---|
3793 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
---|
3794 | EOF |
---|
3795 | |
---|
3796 | |
---|
3797 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
---|
3798 | echo "configure:3799: checking size of short" >&5 |
---|
3799 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
---|
3800 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3801 | else |
---|
3802 | if test "$cross_compiling" = yes; then |
---|
3803 | ac_cv_sizeof_short=2 |
---|
3804 | else |
---|
3805 | cat > conftest.$ac_ext <<EOF |
---|
3806 | #line 3807 "configure" |
---|
3807 | #include "confdefs.h" |
---|
3808 | #include <stdio.h> |
---|
3809 | main() |
---|
3810 | { |
---|
3811 | FILE *f=fopen("conftestval", "w"); |
---|
3812 | if (!f) exit(1); |
---|
3813 | fprintf(f, "%d\n", sizeof(short)); |
---|
3814 | exit(0); |
---|
3815 | } |
---|
3816 | EOF |
---|
3817 | if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3818 | then |
---|
3819 | ac_cv_sizeof_short=`cat conftestval` |
---|
3820 | else |
---|
3821 | echo "configure: failed program was:" >&5 |
---|
3822 | cat conftest.$ac_ext >&5 |
---|
3823 | rm -fr conftest* |
---|
3824 | ac_cv_sizeof_short=0 |
---|
3825 | fi |
---|
3826 | rm -fr conftest* |
---|
3827 | fi |
---|
3828 | |
---|
3829 | fi |
---|
3830 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
---|
3831 | cat >> confdefs.h <<EOF |
---|
3832 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
---|
3833 | EOF |
---|
3834 | |
---|
3835 | |
---|
3836 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
---|
3837 | echo "configure:3838: checking size of int" >&5 |
---|
3838 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
---|
3839 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3840 | else |
---|
3841 | if test "$cross_compiling" = yes; then |
---|
3842 | ac_cv_sizeof_int=4 |
---|
3843 | else |
---|
3844 | cat > conftest.$ac_ext <<EOF |
---|
3845 | #line 3846 "configure" |
---|
3846 | #include "confdefs.h" |
---|
3847 | #include <stdio.h> |
---|
3848 | main() |
---|
3849 | { |
---|
3850 | FILE *f=fopen("conftestval", "w"); |
---|
3851 | if (!f) exit(1); |
---|
3852 | fprintf(f, "%d\n", sizeof(int)); |
---|
3853 | exit(0); |
---|
3854 | } |
---|
3855 | EOF |
---|
3856 | if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3857 | then |
---|
3858 | ac_cv_sizeof_int=`cat conftestval` |
---|
3859 | else |
---|
3860 | echo "configure: failed program was:" >&5 |
---|
3861 | cat conftest.$ac_ext >&5 |
---|
3862 | rm -fr conftest* |
---|
3863 | ac_cv_sizeof_int=0 |
---|
3864 | fi |
---|
3865 | rm -fr conftest* |
---|
3866 | fi |
---|
3867 | |
---|
3868 | fi |
---|
3869 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
---|
3870 | cat >> confdefs.h <<EOF |
---|
3871 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
3872 | EOF |
---|
3873 | |
---|
3874 | |
---|
3875 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
3876 | echo "configure:3877: checking size of long" >&5 |
---|
3877 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
3878 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3879 | else |
---|
3880 | if test "$cross_compiling" = yes; then |
---|
3881 | ac_cv_sizeof_long=4 |
---|
3882 | else |
---|
3883 | cat > conftest.$ac_ext <<EOF |
---|
3884 | #line 3885 "configure" |
---|
3885 | #include "confdefs.h" |
---|
3886 | #include <stdio.h> |
---|
3887 | main() |
---|
3888 | { |
---|
3889 | FILE *f=fopen("conftestval", "w"); |
---|
3890 | if (!f) exit(1); |
---|
3891 | fprintf(f, "%d\n", sizeof(long)); |
---|
3892 | exit(0); |
---|
3893 | } |
---|
3894 | EOF |
---|
3895 | if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3896 | then |
---|
3897 | ac_cv_sizeof_long=`cat conftestval` |
---|
3898 | else |
---|
3899 | echo "configure: failed program was:" >&5 |
---|
3900 | cat conftest.$ac_ext >&5 |
---|
3901 | rm -fr conftest* |
---|
3902 | ac_cv_sizeof_long=0 |
---|
3903 | fi |
---|
3904 | rm -fr conftest* |
---|
3905 | fi |
---|
3906 | |
---|
3907 | fi |
---|
3908 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
3909 | cat >> confdefs.h <<EOF |
---|
3910 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
3911 | EOF |
---|
3912 | |
---|
3913 | |
---|
3914 | echo $ac_n "checking size of void*""... $ac_c" 1>&6 |
---|
3915 | echo "configure:3916: checking size of void*" >&5 |
---|
3916 | if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then |
---|
3917 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3918 | else |
---|
3919 | if test "$cross_compiling" = yes; then |
---|
3920 | ac_cv_sizeof_voidp=4 |
---|
3921 | else |
---|
3922 | cat > conftest.$ac_ext <<EOF |
---|
3923 | #line 3924 "configure" |
---|
3924 | #include "confdefs.h" |
---|
3925 | #include <stdio.h> |
---|
3926 | main() |
---|
3927 | { |
---|
3928 | FILE *f=fopen("conftestval", "w"); |
---|
3929 | if (!f) exit(1); |
---|
3930 | fprintf(f, "%d\n", sizeof(void*)); |
---|
3931 | exit(0); |
---|
3932 | } |
---|
3933 | EOF |
---|
3934 | if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3935 | then |
---|
3936 | ac_cv_sizeof_voidp=`cat conftestval` |
---|
3937 | else |
---|
3938 | echo "configure: failed program was:" >&5 |
---|
3939 | cat conftest.$ac_ext >&5 |
---|
3940 | rm -fr conftest* |
---|
3941 | ac_cv_sizeof_voidp=0 |
---|
3942 | fi |
---|
3943 | rm -fr conftest* |
---|
3944 | fi |
---|
3945 | |
---|
3946 | fi |
---|
3947 | echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 |
---|
3948 | cat >> confdefs.h <<EOF |
---|
3949 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
---|
3950 | EOF |
---|
3951 | |
---|
3952 | |
---|
3953 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
---|
3954 | echo "configure:3955: checking size of double" >&5 |
---|
3955 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
---|
3956 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3957 | else |
---|
3958 | if test "$cross_compiling" = yes; then |
---|
3959 | ac_cv_sizeof_double=8 |
---|
3960 | else |
---|
3961 | cat > conftest.$ac_ext <<EOF |
---|
3962 | #line 3963 "configure" |
---|
3963 | #include "confdefs.h" |
---|
3964 | #include <stdio.h> |
---|
3965 | main() |
---|
3966 | { |
---|
3967 | FILE *f=fopen("conftestval", "w"); |
---|
3968 | if (!f) exit(1); |
---|
3969 | fprintf(f, "%d\n", sizeof(double)); |
---|
3970 | exit(0); |
---|
3971 | } |
---|
3972 | EOF |
---|
3973 | if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
3974 | then |
---|
3975 | ac_cv_sizeof_double=`cat conftestval` |
---|
3976 | else |
---|
3977 | echo "configure: failed program was:" >&5 |
---|
3978 | cat conftest.$ac_ext >&5 |
---|
3979 | rm -fr conftest* |
---|
3980 | ac_cv_sizeof_double=0 |
---|
3981 | fi |
---|
3982 | rm -fr conftest* |
---|
3983 | fi |
---|
3984 | |
---|
3985 | fi |
---|
3986 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
---|
3987 | cat >> confdefs.h <<EOF |
---|
3988 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
---|
3989 | EOF |
---|
3990 | |
---|
3991 | |
---|
3992 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
---|
3993 | echo "configure:3994: checking whether byte ordering is bigendian" >&5 |
---|
3994 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
---|
3995 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
3996 | else |
---|
3997 | ac_cv_c_bigendian=unknown |
---|
3998 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
3999 | cat > conftest.$ac_ext <<EOF |
---|
4000 | #line 4001 "configure" |
---|
4001 | #include "confdefs.h" |
---|
4002 | #include <sys/types.h> |
---|
4003 | #include <sys/param.h> |
---|
4004 | int main() { |
---|
4005 | |
---|
4006 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
---|
4007 | bogus endian macros |
---|
4008 | #endif |
---|
4009 | ; return 0; } |
---|
4010 | EOF |
---|
4011 | if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4012 | rm -rf conftest* |
---|
4013 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
4014 | cat > conftest.$ac_ext <<EOF |
---|
4015 | #line 4016 "configure" |
---|
4016 | #include "confdefs.h" |
---|
4017 | #include <sys/types.h> |
---|
4018 | #include <sys/param.h> |
---|
4019 | int main() { |
---|
4020 | |
---|
4021 | #if BYTE_ORDER != BIG_ENDIAN |
---|
4022 | not big endian |
---|
4023 | #endif |
---|
4024 | ; return 0; } |
---|
4025 | EOF |
---|
4026 | if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
4027 | rm -rf conftest* |
---|
4028 | ac_cv_c_bigendian=yes |
---|
4029 | else |
---|
4030 | echo "configure: failed program was:" >&5 |
---|
4031 | cat conftest.$ac_ext >&5 |
---|
4032 | rm -rf conftest* |
---|
4033 | ac_cv_c_bigendian=no |
---|
4034 | fi |
---|
4035 | rm -f conftest* |
---|
4036 | else |
---|
4037 | echo "configure: failed program was:" >&5 |
---|
4038 | cat conftest.$ac_ext >&5 |
---|
4039 | fi |
---|
4040 | rm -f conftest* |
---|
4041 | if test $ac_cv_c_bigendian = unknown; then |
---|
4042 | if test "$cross_compiling" = yes; then |
---|
4043 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
4044 | else |
---|
4045 | cat > conftest.$ac_ext <<EOF |
---|
4046 | #line 4047 "configure" |
---|
4047 | #include "confdefs.h" |
---|
4048 | main () { |
---|
4049 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
4050 | union |
---|
4051 | { |
---|
4052 | long l; |
---|
4053 | char c[sizeof (long)]; |
---|
4054 | } u; |
---|
4055 | u.l = 1; |
---|
4056 | exit (u.c[sizeof (long) - 1] == 1); |
---|
4057 | } |
---|
4058 | EOF |
---|
4059 | if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
4060 | then |
---|
4061 | ac_cv_c_bigendian=no |
---|
4062 | else |
---|
4063 | echo "configure: failed program was:" >&5 |
---|
4064 | cat conftest.$ac_ext >&5 |
---|
4065 | rm -fr conftest* |
---|
4066 | ac_cv_c_bigendian=yes |
---|
4067 | fi |
---|
4068 | rm -fr conftest* |
---|
4069 | fi |
---|
4070 | |
---|
4071 | fi |
---|
4072 | fi |
---|
4073 | |
---|
4074 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
---|
4075 | if test $ac_cv_c_bigendian = yes; then |
---|
4076 | cat >> confdefs.h <<\EOF |
---|
4077 | #define WORDS_BIGENDIAN 1 |
---|
4078 | EOF |
---|
4079 | |
---|
4080 | fi |
---|
4081 | |
---|
4082 | if test "$ac_cv_sizeof_int" != 4; then |
---|
4083 | { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } |
---|
4084 | fi |
---|
4085 | if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then |
---|
4086 | { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } |
---|
4087 | fi |
---|
4088 | if test "$ac_cv_sizeof_double" != 8; then |
---|
4089 | { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; } |
---|
4090 | fi |
---|
4091 | if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then |
---|
4092 | { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; } |
---|
4093 | fi |
---|
4094 | if test "$ac_cv_sizeof_voidp" != 4; then |
---|
4095 | DEFS="-UOM_NDEBUG" |
---|
4096 | |
---|
4097 | fi |
---|
4098 | |
---|
4099 | # Check whether --with-rootdir or --without-rootdir was given. |
---|
4100 | if test "${with_rootdir+set}" = set; then |
---|
4101 | withval="$with_rootdir" |
---|
4102 | : |
---|
4103 | fi |
---|
4104 | |
---|
4105 | # Check whether --with-lex or --without-lex was given. |
---|
4106 | if test "${with_lex+set}" = set; then |
---|
4107 | withval="$with_lex" |
---|
4108 | : |
---|
4109 | fi |
---|
4110 | |
---|
4111 | # Check whether --with-readline or --without-readline was given. |
---|
4112 | if test "${with_readline+set}" = set; then |
---|
4113 | withval="$with_readline" |
---|
4114 | : |
---|
4115 | fi |
---|
4116 | |
---|
4117 | # Check whether --with-Boost or --without-Boost was given. |
---|
4118 | if test "${with_Boost+set}" = set; then |
---|
4119 | withval="$with_Boost" |
---|
4120 | : |
---|
4121 | fi |
---|
4122 | |
---|
4123 | # Check whether --with-stdvec or --without-stdvec was given. |
---|
4124 | if test "${with_stdvec+set}" = set; then |
---|
4125 | withval="$with_stdvec" |
---|
4126 | : |
---|
4127 | fi |
---|
4128 | |
---|
4129 | # Check whether --with-MP or --without-MP was given. |
---|
4130 | if test "${with_MP+set}" = set; then |
---|
4131 | withval="$with_MP" |
---|
4132 | : |
---|
4133 | fi |
---|
4134 | |
---|
4135 | # Check whether --with-dbm or --without-dbm was given. |
---|
4136 | if test "${with_dbm+set}" = set; then |
---|
4137 | withval="$with_dbm" |
---|
4138 | : |
---|
4139 | fi |
---|
4140 | |
---|
4141 | # Check whether --with-factory or --without-factory was given. |
---|
4142 | if test "${with_factory+set}" = set; then |
---|
4143 | withval="$with_factory" |
---|
4144 | : |
---|
4145 | fi |
---|
4146 | |
---|
4147 | # Check whether --with-libfac or --without-libfac was given. |
---|
4148 | if test "${with_libfac+set}" = set; then |
---|
4149 | withval="$with_libfac" |
---|
4150 | : |
---|
4151 | fi |
---|
4152 | |
---|
4153 | # Check whether --with-namespaces or --without-namespaces was given. |
---|
4154 | if test "${with_namespaces+set}" = set; then |
---|
4155 | withval="$with_namespaces" |
---|
4156 | : |
---|
4157 | fi |
---|
4158 | |
---|
4159 | # Check whether --with-dl or --without-dl was given. |
---|
4160 | if test "${with_dl+set}" = set; then |
---|
4161 | withval="$with_dl" |
---|
4162 | : |
---|
4163 | fi |
---|
4164 | |
---|
4165 | # Check whether --with-dynamic-modules or --without-dynamic-modules was given. |
---|
4166 | if test "${with_dynamic_modules+set}" = set; then |
---|
4167 | withval="$with_dynamic_modules" |
---|
4168 | : |
---|
4169 | fi |
---|
4170 | |
---|
4171 | # Check whether --with-dynamic-kernel or --without-dynamic-kernel was given. |
---|
4172 | if test "${with_dynamic_kernel+set}" = set; then |
---|
4173 | withval="$with_dynamic_kernel" |
---|
4174 | : |
---|
4175 | fi |
---|
4176 | |
---|
4177 | # Check whether --with-apint or --without-apint was given. |
---|
4178 | if test "${with_apint+set}" = set; then |
---|
4179 | withval="$with_apint" |
---|
4180 | : |
---|
4181 | fi |
---|
4182 | |
---|
4183 | # Check whether --with-svd or --without-svd was given. |
---|
4184 | if test "${with_svd+set}" = set; then |
---|
4185 | withval="$with_svd" |
---|
4186 | : |
---|
4187 | fi |
---|
4188 | |
---|
4189 | # Check whether --with-Plural or --without-Plural was given. |
---|
4190 | if test "${with_Plural+set}" = set; then |
---|
4191 | withval="$with_Plural" |
---|
4192 | : |
---|
4193 | fi |
---|
4194 | |
---|
4195 | # Check whether --with-NTL or --without-NTL was given. |
---|
4196 | if test "${with_NTL+set}" = set; then |
---|
4197 | withval="$with_NTL" |
---|
4198 | : |
---|
4199 | else |
---|
4200 | with_NTL=yes |
---|
4201 | fi |
---|
4202 | |
---|
4203 | |
---|
4204 | |
---|
4205 | |
---|
4206 | echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 |
---|
4207 | echo "configure:4208: checking whether to use dynamic linking" >&5 |
---|
4208 | if test "$with_dl" != no && test "$ac_lib_dl" = yes; then |
---|
4209 | cat >> confdefs.h <<\EOF |
---|
4210 | #define HAVE_DL 1 |
---|
4211 | EOF |
---|
4212 | |
---|
4213 | ac_have_dl=yes |
---|
4214 | echo "$ac_t""yes" 1>&6 |
---|
4215 | else |
---|
4216 | echo "$ac_t""no" 1>&6 |
---|
4217 | fi |
---|
4218 | |
---|
4219 | echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
---|
4220 | echo "configure:4221: checking for tgetent in -lncurses" >&5 |
---|
4221 | ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
4222 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4223 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4224 | else |
---|
4225 | ac_save_LIBS="$LIBS" |
---|
4226 | LIBS="-lncurses $LIBS" |
---|
4227 | cat > conftest.$ac_ext <<EOF |
---|
4228 | #line 4229 "configure" |
---|
4229 | #include "confdefs.h" |
---|
4230 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4231 | /* We use char because int might match the return type of a gcc2 |
---|
4232 | builtin and then its argument prototype would still apply. */ |
---|
4233 | char tgetent(); |
---|
4234 | |
---|
4235 | int main() { |
---|
4236 | tgetent() |
---|
4237 | ; return 0; } |
---|
4238 | EOF |
---|
4239 | if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4240 | rm -rf conftest* |
---|
4241 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4242 | else |
---|
4243 | echo "configure: failed program was:" >&5 |
---|
4244 | cat conftest.$ac_ext >&5 |
---|
4245 | rm -rf conftest* |
---|
4246 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4247 | fi |
---|
4248 | rm -f conftest* |
---|
4249 | LIBS="$ac_save_LIBS" |
---|
4250 | |
---|
4251 | fi |
---|
4252 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4253 | echo "$ac_t""yes" 1>&6 |
---|
4254 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4255 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4256 | cat >> confdefs.h <<EOF |
---|
4257 | #define $ac_tr_lib 1 |
---|
4258 | EOF |
---|
4259 | |
---|
4260 | LIBS="-lncurses $LIBS" |
---|
4261 | |
---|
4262 | else |
---|
4263 | echo "$ac_t""no" 1>&6 |
---|
4264 | \ |
---|
4265 | echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
---|
4266 | echo "configure:4267: checking for tgetent in -lcurses" >&5 |
---|
4267 | ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
4268 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4269 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4270 | else |
---|
4271 | ac_save_LIBS="$LIBS" |
---|
4272 | LIBS="-lcurses $LIBS" |
---|
4273 | cat > conftest.$ac_ext <<EOF |
---|
4274 | #line 4275 "configure" |
---|
4275 | #include "confdefs.h" |
---|
4276 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4277 | /* We use char because int might match the return type of a gcc2 |
---|
4278 | builtin and then its argument prototype would still apply. */ |
---|
4279 | char tgetent(); |
---|
4280 | |
---|
4281 | int main() { |
---|
4282 | tgetent() |
---|
4283 | ; return 0; } |
---|
4284 | EOF |
---|
4285 | if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4286 | rm -rf conftest* |
---|
4287 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4288 | else |
---|
4289 | echo "configure: failed program was:" >&5 |
---|
4290 | cat conftest.$ac_ext >&5 |
---|
4291 | rm -rf conftest* |
---|
4292 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4293 | fi |
---|
4294 | rm -f conftest* |
---|
4295 | LIBS="$ac_save_LIBS" |
---|
4296 | |
---|
4297 | fi |
---|
4298 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4299 | echo "$ac_t""yes" 1>&6 |
---|
4300 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
4301 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4302 | cat >> confdefs.h <<EOF |
---|
4303 | #define $ac_tr_lib 1 |
---|
4304 | EOF |
---|
4305 | |
---|
4306 | LIBS="-lcurses $LIBS" |
---|
4307 | |
---|
4308 | else |
---|
4309 | echo "$ac_t""no" 1>&6 |
---|
4310 | \ |
---|
4311 | echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
---|
4312 | echo "configure:4313: checking for tgetent in -ltermcap" >&5 |
---|
4313 | ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
---|
4314 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4315 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4316 | else |
---|
4317 | ac_save_LIBS="$LIBS" |
---|
4318 | LIBS="-ltermcap $LIBS" |
---|
4319 | cat > conftest.$ac_ext <<EOF |
---|
4320 | #line 4321 "configure" |
---|
4321 | #include "confdefs.h" |
---|
4322 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4323 | /* We use char because int might match the return type of a gcc2 |
---|
4324 | builtin and then its argument prototype would still apply. */ |
---|
4325 | char tgetent(); |
---|
4326 | |
---|
4327 | int main() { |
---|
4328 | tgetent() |
---|
4329 | ; return 0; } |
---|
4330 | EOF |
---|
4331 | if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4332 | rm -rf conftest* |
---|
4333 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4334 | else |
---|
4335 | echo "configure: failed program was:" >&5 |
---|
4336 | cat conftest.$ac_ext >&5 |
---|
4337 | rm -rf conftest* |
---|
4338 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4339 | fi |
---|
4340 | rm -f conftest* |
---|
4341 | LIBS="$ac_save_LIBS" |
---|
4342 | |
---|
4343 | fi |
---|
4344 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4345 | echo "$ac_t""yes" 1>&6 |
---|
4346 | ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \ |
---|
4347 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4348 | cat >> confdefs.h <<EOF |
---|
4349 | #define $ac_tr_lib 1 |
---|
4350 | EOF |
---|
4351 | |
---|
4352 | LIBS="-ltermcap $LIBS" |
---|
4353 | |
---|
4354 | else |
---|
4355 | echo "$ac_t""no" 1>&6 |
---|
4356 | fi |
---|
4357 | |
---|
4358 | fi |
---|
4359 | |
---|
4360 | fi |
---|
4361 | |
---|
4362 | |
---|
4363 | # readline |
---|
4364 | if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then |
---|
4365 | echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2 |
---|
4366 | with_readline=static |
---|
4367 | fi |
---|
4368 | |
---|
4369 | |
---|
4370 | if test "$with_readline" != dynamic && test "$with_readline" != no; then |
---|
4371 | |
---|
4372 | ac_ext=C |
---|
4373 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
4374 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4375 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
4376 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
4377 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
4378 | |
---|
4379 | echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 |
---|
4380 | echo "configure:4381: checking for rl_abort in -lreadline" >&5 |
---|
4381 | ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` |
---|
4382 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4383 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4384 | else |
---|
4385 | ac_save_LIBS="$LIBS" |
---|
4386 | LIBS="-lreadline $LIBS" |
---|
4387 | cat > conftest.$ac_ext <<EOF |
---|
4388 | #line 4389 "configure" |
---|
4389 | #include "confdefs.h" |
---|
4390 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4391 | #ifdef __cplusplus |
---|
4392 | extern "C" |
---|
4393 | #endif |
---|
4394 | /* We use char because int might match the return type of a gcc2 |
---|
4395 | builtin and then its argument prototype would still apply. */ |
---|
4396 | char rl_abort(); |
---|
4397 | |
---|
4398 | int main() { |
---|
4399 | rl_abort() |
---|
4400 | ; return 0; } |
---|
4401 | EOF |
---|
4402 | if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4403 | rm -rf conftest* |
---|
4404 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4405 | else |
---|
4406 | echo "configure: failed program was:" >&5 |
---|
4407 | cat conftest.$ac_ext >&5 |
---|
4408 | rm -rf conftest* |
---|
4409 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4410 | fi |
---|
4411 | rm -f conftest* |
---|
4412 | LIBS="$ac_save_LIBS" |
---|
4413 | |
---|
4414 | fi |
---|
4415 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4416 | echo "$ac_t""yes" 1>&6 |
---|
4417 | ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4418 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4419 | cat >> confdefs.h <<EOF |
---|
4420 | #define $ac_tr_lib 1 |
---|
4421 | EOF |
---|
4422 | |
---|
4423 | LIBS="-lreadline $LIBS" |
---|
4424 | |
---|
4425 | else |
---|
4426 | echo "$ac_t""no" 1>&6 |
---|
4427 | fi |
---|
4428 | |
---|
4429 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
---|
4430 | echo "configure:4431: checking how to run the C++ preprocessor" >&5 |
---|
4431 | if test -z "$CXXCPP"; then |
---|
4432 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
---|
4433 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4434 | else |
---|
4435 | ac_ext=C |
---|
4436 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
4437 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4438 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
4439 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
4440 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
4441 | CXXCPP="${CXX-g++} -E" |
---|
4442 | cat > conftest.$ac_ext <<EOF |
---|
4443 | #line 4444 "configure" |
---|
4444 | #include "confdefs.h" |
---|
4445 | #include <stdlib.h> |
---|
4446 | EOF |
---|
4447 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4448 | { (eval echo configure:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4449 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4450 | if test -z "$ac_err"; then |
---|
4451 | : |
---|
4452 | else |
---|
4453 | echo "$ac_err" >&5 |
---|
4454 | echo "configure: failed program was:" >&5 |
---|
4455 | cat conftest.$ac_ext >&5 |
---|
4456 | rm -rf conftest* |
---|
4457 | CXXCPP=/lib/cpp |
---|
4458 | fi |
---|
4459 | rm -f conftest* |
---|
4460 | ac_cv_prog_CXXCPP="$CXXCPP" |
---|
4461 | ac_ext=C |
---|
4462 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
4463 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
4464 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
4465 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
4466 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
4467 | fi |
---|
4468 | fi |
---|
4469 | CXXCPP="$ac_cv_prog_CXXCPP" |
---|
4470 | echo "$ac_t""$CXXCPP" 1>&6 |
---|
4471 | |
---|
4472 | for ac_hdr in readline/readline.h readline/history.h |
---|
4473 | do |
---|
4474 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
4475 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
4476 | echo "configure:4477: checking for $ac_hdr" >&5 |
---|
4477 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
4478 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4479 | else |
---|
4480 | cat > conftest.$ac_ext <<EOF |
---|
4481 | #line 4482 "configure" |
---|
4482 | #include "confdefs.h" |
---|
4483 | #include <$ac_hdr> |
---|
4484 | EOF |
---|
4485 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
4486 | { (eval echo configure:4487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
4487 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
4488 | if test -z "$ac_err"; then |
---|
4489 | rm -rf conftest* |
---|
4490 | eval "ac_cv_header_$ac_safe=yes" |
---|
4491 | else |
---|
4492 | echo "$ac_err" >&5 |
---|
4493 | echo "configure: failed program was:" >&5 |
---|
4494 | cat conftest.$ac_ext >&5 |
---|
4495 | rm -rf conftest* |
---|
4496 | eval "ac_cv_header_$ac_safe=no" |
---|
4497 | fi |
---|
4498 | rm -f conftest* |
---|
4499 | fi |
---|
4500 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
4501 | echo "$ac_t""yes" 1>&6 |
---|
4502 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
4503 | cat >> confdefs.h <<EOF |
---|
4504 | #define $ac_tr_hdr 1 |
---|
4505 | EOF |
---|
4506 | |
---|
4507 | else |
---|
4508 | echo "$ac_t""no" 1>&6 |
---|
4509 | fi |
---|
4510 | done |
---|
4511 | |
---|
4512 | if test "$ac_cv_lib_readline_rl_abort" = yes && \ |
---|
4513 | test "$ac_cv_header_readline_readline_h" = yes; then |
---|
4514 | echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 |
---|
4515 | echo "configure:4516: checking whether readline.h is ok" >&5 |
---|
4516 | if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then |
---|
4517 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4518 | else |
---|
4519 | cat > conftest.$ac_ext <<EOF |
---|
4520 | #line 4521 "configure" |
---|
4521 | #include "confdefs.h" |
---|
4522 | #include<unistd.h> |
---|
4523 | #include<stdio.h> |
---|
4524 | #include<readline/readline.h> |
---|
4525 | #ifdef HAVE_READLINE_HISTORY_H |
---|
4526 | #include<readline/history.h> |
---|
4527 | #endif |
---|
4528 | |
---|
4529 | int main() { |
---|
4530 | |
---|
4531 | ; return 0; } |
---|
4532 | EOF |
---|
4533 | if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4534 | rm -rf conftest* |
---|
4535 | ac_cv_header_readline_readline_h_ok="yes" |
---|
4536 | else |
---|
4537 | echo "configure: failed program was:" >&5 |
---|
4538 | cat conftest.$ac_ext >&5 |
---|
4539 | rm -rf conftest* |
---|
4540 | ac_cv_header_readline_readline_h_ok="no" |
---|
4541 | fi |
---|
4542 | rm -f conftest* |
---|
4543 | fi |
---|
4544 | |
---|
4545 | echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6 |
---|
4546 | if test "$ac_cv_header_readline_readline_h_ok" != yes; then |
---|
4547 | #not ok -- try once more with explicitly declaring everything |
---|
4548 | echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 |
---|
4549 | echo "configure:4550: checking whether or not we nevertheless can use readline" >&5 |
---|
4550 | if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then |
---|
4551 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4552 | else |
---|
4553 | cat > conftest.$ac_ext <<EOF |
---|
4554 | #line 4555 "configure" |
---|
4555 | #include "confdefs.h" |
---|
4556 | #include <stdio.h> |
---|
4557 | extern "C" |
---|
4558 | { |
---|
4559 | extern char * rl_readline_name; |
---|
4560 | extern char *rl_line_buffer; |
---|
4561 | char *filename_completion_function(); |
---|
4562 | typedef char **CPPFunction (); |
---|
4563 | extern char ** completion_matches (); |
---|
4564 | extern CPPFunction * rl_attempted_completion_function; |
---|
4565 | extern FILE * rl_outstream; |
---|
4566 | char * readline (); |
---|
4567 | void add_history (); |
---|
4568 | int write_history (); |
---|
4569 | int read_history(); |
---|
4570 | } |
---|
4571 | #ifndef NULL |
---|
4572 | #define NULL 0 |
---|
4573 | #endif |
---|
4574 | |
---|
4575 | int main() { |
---|
4576 | rl_readline_name=NULL; |
---|
4577 | *rl_line_buffer=1; |
---|
4578 | completion_matches(NULL, filename_completion_function); |
---|
4579 | rl_attempted_completion_function = (CPPFunction *) NULL; |
---|
4580 | rl_outstream=NULL; |
---|
4581 | readline(NULL); |
---|
4582 | add_history(NULL); |
---|
4583 | read_history(NULL); |
---|
4584 | write_history(NULL); |
---|
4585 | |
---|
4586 | ; return 0; } |
---|
4587 | EOF |
---|
4588 | if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4589 | rm -rf conftest* |
---|
4590 | ac_cv_have_readline="yes" |
---|
4591 | |
---|
4592 | else |
---|
4593 | echo "configure: failed program was:" >&5 |
---|
4594 | cat conftest.$ac_ext >&5 |
---|
4595 | rm -rf conftest* |
---|
4596 | ac_cv_have_readline="no" |
---|
4597 | |
---|
4598 | fi |
---|
4599 | rm -f conftest* |
---|
4600 | fi |
---|
4601 | |
---|
4602 | echo "$ac_t""$ac_cv_have_readline" 1>&6 |
---|
4603 | else |
---|
4604 | cat >> confdefs.h <<\EOF |
---|
4605 | #define READLINE_READLINE_H_OK 1 |
---|
4606 | EOF |
---|
4607 | |
---|
4608 | ac_cv_have_readline="yes" |
---|
4609 | fi |
---|
4610 | fi |
---|
4611 | if test "$ac_cv_have_readline" = yes; then |
---|
4612 | cat >> confdefs.h <<\EOF |
---|
4613 | #define HAVE_READLINE 1 |
---|
4614 | EOF |
---|
4615 | |
---|
4616 | fi |
---|
4617 | ac_ext=c |
---|
4618 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
4619 | ac_cpp='$CPP $CPPFLAGS' |
---|
4620 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
4621 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
4622 | cross_compiling=$ac_cv_prog_cc_cross |
---|
4623 | |
---|
4624 | fi |
---|
4625 | |
---|
4626 | echo $ac_n "checking which readline to use""... $ac_c" 1>&6 |
---|
4627 | echo "configure:4628: checking which readline to use" >&5 |
---|
4628 | if test "$ac_cv_with_readline" = dynamic; then |
---|
4629 | echo "$ac_t""dynamic" 1>&6 |
---|
4630 | cat >> confdefs.h <<\EOF |
---|
4631 | #define HAVE_DYN_RL 1 |
---|
4632 | EOF |
---|
4633 | |
---|
4634 | elif test "$ac_cv_have_readline" = yes; then |
---|
4635 | echo "$ac_t""static" 1>&6 |
---|
4636 | elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then |
---|
4637 | { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; } |
---|
4638 | else |
---|
4639 | echo "$ac_t""none" 1>&6 |
---|
4640 | echo "configure: warning: building without readline: disabling fancy display" 1>&2 |
---|
4641 | fi |
---|
4642 | |
---|
4643 | NEED_LIBS=$LIBS |
---|
4644 | |
---|
4645 | # gmp, MP, MPT, factory, libfac |
---|
4646 | echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 |
---|
4647 | echo "configure:4648: checking for main in -lgmp" >&5 |
---|
4648 | ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` |
---|
4649 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4650 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4651 | else |
---|
4652 | ac_save_LIBS="$LIBS" |
---|
4653 | LIBS="-lgmp $LIBS" |
---|
4654 | cat > conftest.$ac_ext <<EOF |
---|
4655 | #line 4656 "configure" |
---|
4656 | #include "confdefs.h" |
---|
4657 | |
---|
4658 | int main() { |
---|
4659 | main() |
---|
4660 | ; return 0; } |
---|
4661 | EOF |
---|
4662 | if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4663 | rm -rf conftest* |
---|
4664 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4665 | else |
---|
4666 | echo "configure: failed program was:" >&5 |
---|
4667 | cat conftest.$ac_ext >&5 |
---|
4668 | rm -rf conftest* |
---|
4669 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4670 | fi |
---|
4671 | rm -f conftest* |
---|
4672 | LIBS="$ac_save_LIBS" |
---|
4673 | |
---|
4674 | fi |
---|
4675 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4676 | echo "$ac_t""yes" 1>&6 |
---|
4677 | ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4678 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4679 | cat >> confdefs.h <<EOF |
---|
4680 | #define $ac_tr_lib 1 |
---|
4681 | EOF |
---|
4682 | |
---|
4683 | LIBS="-lgmp $LIBS" |
---|
4684 | |
---|
4685 | else |
---|
4686 | echo "$ac_t""no" 1>&6 |
---|
4687 | fi |
---|
4688 | |
---|
4689 | SAVE_LIBS=$LIBS |
---|
4690 | echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 |
---|
4691 | echo "configure:4692: checking for IMP_PutGmpInt in -lMP" >&5 |
---|
4692 | ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` |
---|
4693 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4694 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4695 | else |
---|
4696 | ac_save_LIBS="$LIBS" |
---|
4697 | LIBS="-lMP $MP_LIBS $LIBS" |
---|
4698 | cat > conftest.$ac_ext <<EOF |
---|
4699 | #line 4700 "configure" |
---|
4700 | #include "confdefs.h" |
---|
4701 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4702 | /* We use char because int might match the return type of a gcc2 |
---|
4703 | builtin and then its argument prototype would still apply. */ |
---|
4704 | char IMP_PutGmpInt(); |
---|
4705 | |
---|
4706 | int main() { |
---|
4707 | IMP_PutGmpInt() |
---|
4708 | ; return 0; } |
---|
4709 | EOF |
---|
4710 | if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4711 | rm -rf conftest* |
---|
4712 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4713 | else |
---|
4714 | echo "configure: failed program was:" >&5 |
---|
4715 | cat conftest.$ac_ext >&5 |
---|
4716 | rm -rf conftest* |
---|
4717 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4718 | fi |
---|
4719 | rm -f conftest* |
---|
4720 | LIBS="$ac_save_LIBS" |
---|
4721 | |
---|
4722 | fi |
---|
4723 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4724 | echo "$ac_t""yes" 1>&6 |
---|
4725 | ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4726 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4727 | cat >> confdefs.h <<EOF |
---|
4728 | #define $ac_tr_lib 1 |
---|
4729 | EOF |
---|
4730 | |
---|
4731 | LIBS="-lMP $LIBS" |
---|
4732 | |
---|
4733 | else |
---|
4734 | echo "$ac_t""no" 1>&6 |
---|
4735 | fi |
---|
4736 | |
---|
4737 | echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 |
---|
4738 | echo "configure:4739: checking for MPT_GetTree in -lMPT" >&5 |
---|
4739 | ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` |
---|
4740 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4741 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4742 | else |
---|
4743 | ac_save_LIBS="$LIBS" |
---|
4744 | LIBS="-lMPT $MP_LIBS $LIBS" |
---|
4745 | cat > conftest.$ac_ext <<EOF |
---|
4746 | #line 4747 "configure" |
---|
4747 | #include "confdefs.h" |
---|
4748 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4749 | /* We use char because int might match the return type of a gcc2 |
---|
4750 | builtin and then its argument prototype would still apply. */ |
---|
4751 | char MPT_GetTree(); |
---|
4752 | |
---|
4753 | int main() { |
---|
4754 | MPT_GetTree() |
---|
4755 | ; return 0; } |
---|
4756 | EOF |
---|
4757 | if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4758 | rm -rf conftest* |
---|
4759 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4760 | else |
---|
4761 | echo "configure: failed program was:" >&5 |
---|
4762 | cat conftest.$ac_ext >&5 |
---|
4763 | rm -rf conftest* |
---|
4764 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4765 | fi |
---|
4766 | rm -f conftest* |
---|
4767 | LIBS="$ac_save_LIBS" |
---|
4768 | |
---|
4769 | fi |
---|
4770 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4771 | echo "$ac_t""yes" 1>&6 |
---|
4772 | ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4773 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4774 | cat >> confdefs.h <<EOF |
---|
4775 | #define $ac_tr_lib 1 |
---|
4776 | EOF |
---|
4777 | |
---|
4778 | LIBS="-lMPT $LIBS" |
---|
4779 | |
---|
4780 | else |
---|
4781 | echo "$ac_t""no" 1>&6 |
---|
4782 | fi |
---|
4783 | |
---|
4784 | LIBS=$SAVE_LIBS |
---|
4785 | echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 |
---|
4786 | echo "configure:4787: checking for atof in -lsingcf" >&5 |
---|
4787 | ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` |
---|
4788 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4789 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4790 | else |
---|
4791 | ac_save_LIBS="$LIBS" |
---|
4792 | LIBS="-lsingcf $LIBS" |
---|
4793 | cat > conftest.$ac_ext <<EOF |
---|
4794 | #line 4795 "configure" |
---|
4795 | #include "confdefs.h" |
---|
4796 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4797 | /* We use char because int might match the return type of a gcc2 |
---|
4798 | builtin and then its argument prototype would still apply. */ |
---|
4799 | char atof(); |
---|
4800 | |
---|
4801 | int main() { |
---|
4802 | atof() |
---|
4803 | ; return 0; } |
---|
4804 | EOF |
---|
4805 | if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4806 | rm -rf conftest* |
---|
4807 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4808 | else |
---|
4809 | echo "configure: failed program was:" >&5 |
---|
4810 | cat conftest.$ac_ext >&5 |
---|
4811 | rm -rf conftest* |
---|
4812 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4813 | fi |
---|
4814 | rm -f conftest* |
---|
4815 | LIBS="$ac_save_LIBS" |
---|
4816 | |
---|
4817 | fi |
---|
4818 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4819 | echo "$ac_t""yes" 1>&6 |
---|
4820 | ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4821 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4822 | cat >> confdefs.h <<EOF |
---|
4823 | #define $ac_tr_lib 1 |
---|
4824 | EOF |
---|
4825 | |
---|
4826 | LIBS="-lsingcf $LIBS" |
---|
4827 | |
---|
4828 | else |
---|
4829 | echo "$ac_t""no" 1>&6 |
---|
4830 | fi |
---|
4831 | |
---|
4832 | echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 |
---|
4833 | echo "configure:4834: checking for atof in -lsingfac" >&5 |
---|
4834 | ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` |
---|
4835 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4836 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4837 | else |
---|
4838 | ac_save_LIBS="$LIBS" |
---|
4839 | LIBS="-lsingfac $LIBS" |
---|
4840 | cat > conftest.$ac_ext <<EOF |
---|
4841 | #line 4842 "configure" |
---|
4842 | #include "confdefs.h" |
---|
4843 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4844 | /* We use char because int might match the return type of a gcc2 |
---|
4845 | builtin and then its argument prototype would still apply. */ |
---|
4846 | char atof(); |
---|
4847 | |
---|
4848 | int main() { |
---|
4849 | atof() |
---|
4850 | ; return 0; } |
---|
4851 | EOF |
---|
4852 | if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4853 | rm -rf conftest* |
---|
4854 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4855 | else |
---|
4856 | echo "configure: failed program was:" >&5 |
---|
4857 | cat conftest.$ac_ext >&5 |
---|
4858 | rm -rf conftest* |
---|
4859 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4860 | fi |
---|
4861 | rm -f conftest* |
---|
4862 | LIBS="$ac_save_LIBS" |
---|
4863 | |
---|
4864 | fi |
---|
4865 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4866 | echo "$ac_t""yes" 1>&6 |
---|
4867 | ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4868 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4869 | cat >> confdefs.h <<EOF |
---|
4870 | #define $ac_tr_lib 1 |
---|
4871 | EOF |
---|
4872 | |
---|
4873 | LIBS="-lsingfac $LIBS" |
---|
4874 | |
---|
4875 | else |
---|
4876 | echo "$ac_t""no" 1>&6 |
---|
4877 | fi |
---|
4878 | |
---|
4879 | echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 |
---|
4880 | echo "configure:4881: checking for omTestAddr in -lomalloc" >&5 |
---|
4881 | ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` |
---|
4882 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4883 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4884 | else |
---|
4885 | ac_save_LIBS="$LIBS" |
---|
4886 | LIBS="-lomalloc $LIBS" |
---|
4887 | cat > conftest.$ac_ext <<EOF |
---|
4888 | #line 4889 "configure" |
---|
4889 | #include "confdefs.h" |
---|
4890 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4891 | /* We use char because int might match the return type of a gcc2 |
---|
4892 | builtin and then its argument prototype would still apply. */ |
---|
4893 | char omTestAddr(); |
---|
4894 | |
---|
4895 | int main() { |
---|
4896 | omTestAddr() |
---|
4897 | ; return 0; } |
---|
4898 | EOF |
---|
4899 | if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4900 | rm -rf conftest* |
---|
4901 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4902 | else |
---|
4903 | echo "configure: failed program was:" >&5 |
---|
4904 | cat conftest.$ac_ext >&5 |
---|
4905 | rm -rf conftest* |
---|
4906 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4907 | fi |
---|
4908 | rm -f conftest* |
---|
4909 | LIBS="$ac_save_LIBS" |
---|
4910 | |
---|
4911 | fi |
---|
4912 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4913 | echo "$ac_t""yes" 1>&6 |
---|
4914 | ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4915 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4916 | cat >> confdefs.h <<EOF |
---|
4917 | #define $ac_tr_lib 1 |
---|
4918 | EOF |
---|
4919 | |
---|
4920 | LIBS="-lomalloc $LIBS" |
---|
4921 | |
---|
4922 | else |
---|
4923 | echo "$ac_t""no" 1>&6 |
---|
4924 | fi |
---|
4925 | |
---|
4926 | echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 |
---|
4927 | echo "configure:4928: checking for main in -lomalloc_ndebug" >&5 |
---|
4928 | ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` |
---|
4929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4930 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4931 | else |
---|
4932 | ac_save_LIBS="$LIBS" |
---|
4933 | LIBS="-lomalloc_ndebug $LIBS" |
---|
4934 | cat > conftest.$ac_ext <<EOF |
---|
4935 | #line 4936 "configure" |
---|
4936 | #include "confdefs.h" |
---|
4937 | |
---|
4938 | int main() { |
---|
4939 | main() |
---|
4940 | ; return 0; } |
---|
4941 | EOF |
---|
4942 | if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4943 | rm -rf conftest* |
---|
4944 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4945 | else |
---|
4946 | echo "configure: failed program was:" >&5 |
---|
4947 | cat conftest.$ac_ext >&5 |
---|
4948 | rm -rf conftest* |
---|
4949 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4950 | fi |
---|
4951 | rm -f conftest* |
---|
4952 | LIBS="$ac_save_LIBS" |
---|
4953 | |
---|
4954 | fi |
---|
4955 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4956 | echo "$ac_t""yes" 1>&6 |
---|
4957 | ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
4958 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
4959 | cat >> confdefs.h <<EOF |
---|
4960 | #define $ac_tr_lib 1 |
---|
4961 | EOF |
---|
4962 | |
---|
4963 | LIBS="-lomalloc_ndebug $LIBS" |
---|
4964 | |
---|
4965 | else |
---|
4966 | echo "$ac_t""no" 1>&6 |
---|
4967 | fi |
---|
4968 | |
---|
4969 | echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 |
---|
4970 | echo "configure:4971: checking for main in -lntl" >&5 |
---|
4971 | ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` |
---|
4972 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
4973 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
4974 | else |
---|
4975 | ac_save_LIBS="$LIBS" |
---|
4976 | LIBS="-lntl $LIBS" |
---|
4977 | cat > conftest.$ac_ext <<EOF |
---|
4978 | #line 4979 "configure" |
---|
4979 | #include "confdefs.h" |
---|
4980 | |
---|
4981 | int main() { |
---|
4982 | main() |
---|
4983 | ; return 0; } |
---|
4984 | EOF |
---|
4985 | if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
4986 | rm -rf conftest* |
---|
4987 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
4988 | else |
---|
4989 | echo "configure: failed program was:" >&5 |
---|
4990 | cat conftest.$ac_ext >&5 |
---|
4991 | rm -rf conftest* |
---|
4992 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
4993 | fi |
---|
4994 | rm -f conftest* |
---|
4995 | LIBS="$ac_save_LIBS" |
---|
4996 | |
---|
4997 | fi |
---|
4998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
4999 | echo "$ac_t""yes" 1>&6 |
---|
5000 | ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
5001 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
5002 | cat >> confdefs.h <<EOF |
---|
5003 | #define $ac_tr_lib 1 |
---|
5004 | EOF |
---|
5005 | |
---|
5006 | LIBS="-lntl $LIBS" |
---|
5007 | |
---|
5008 | else |
---|
5009 | echo "$ac_t""no" 1>&6 |
---|
5010 | fi |
---|
5011 | |
---|
5012 | |
---|
5013 | for ac_hdr in gmp.h MP.h MPT.h factory.h factor.h omalloc.h \ |
---|
5014 | omalloc.c |
---|
5015 | do |
---|
5016 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5017 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5018 | echo "configure:5019: checking for $ac_hdr" >&5 |
---|
5019 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5020 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5021 | else |
---|
5022 | cat > conftest.$ac_ext <<EOF |
---|
5023 | #line 5024 "configure" |
---|
5024 | #include "confdefs.h" |
---|
5025 | #include <$ac_hdr> |
---|
5026 | EOF |
---|
5027 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5028 | { (eval echo configure:5029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5029 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5030 | if test -z "$ac_err"; then |
---|
5031 | rm -rf conftest* |
---|
5032 | eval "ac_cv_header_$ac_safe=yes" |
---|
5033 | else |
---|
5034 | echo "$ac_err" >&5 |
---|
5035 | echo "configure: failed program was:" >&5 |
---|
5036 | cat conftest.$ac_ext >&5 |
---|
5037 | rm -rf conftest* |
---|
5038 | eval "ac_cv_header_$ac_safe=no" |
---|
5039 | fi |
---|
5040 | rm -f conftest* |
---|
5041 | fi |
---|
5042 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5043 | echo "$ac_t""yes" 1>&6 |
---|
5044 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5045 | cat >> confdefs.h <<EOF |
---|
5046 | #define $ac_tr_hdr 1 |
---|
5047 | EOF |
---|
5048 | |
---|
5049 | else |
---|
5050 | echo "$ac_t""no" 1>&6 |
---|
5051 | fi |
---|
5052 | done |
---|
5053 | |
---|
5054 | |
---|
5055 | echo $ac_n "checking whether to use Boost""... $ac_c" 1>&6 |
---|
5056 | echo "configure:5057: checking whether to use Boost" >&5 |
---|
5057 | if test "$with_Boost" != no; then |
---|
5058 | echo "$ac_t""yes" 1>&6 |
---|
5059 | |
---|
5060 | ac_ext=C |
---|
5061 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
5062 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
5063 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
5064 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
5065 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
5066 | |
---|
5067 | for ac_hdr in boost/dynamic_bitset.hpp |
---|
5068 | do |
---|
5069 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
5070 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
5071 | echo "configure:5072: checking for $ac_hdr" >&5 |
---|
5072 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
5073 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5074 | else |
---|
5075 | cat > conftest.$ac_ext <<EOF |
---|
5076 | #line 5077 "configure" |
---|
5077 | #include "confdefs.h" |
---|
5078 | #include <$ac_hdr> |
---|
5079 | EOF |
---|
5080 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
5081 | { (eval echo configure:5082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
5082 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
5083 | if test -z "$ac_err"; then |
---|
5084 | rm -rf conftest* |
---|
5085 | eval "ac_cv_header_$ac_safe=yes" |
---|
5086 | else |
---|
5087 | echo "$ac_err" >&5 |
---|
5088 | echo "configure: failed program was:" >&5 |
---|
5089 | cat conftest.$ac_ext >&5 |
---|
5090 | rm -rf conftest* |
---|
5091 | eval "ac_cv_header_$ac_safe=no" |
---|
5092 | fi |
---|
5093 | rm -f conftest* |
---|
5094 | fi |
---|
5095 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
5096 | echo "$ac_t""yes" 1>&6 |
---|
5097 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
5098 | cat >> confdefs.h <<EOF |
---|
5099 | #define $ac_tr_hdr 1 |
---|
5100 | EOF |
---|
5101 | |
---|
5102 | else |
---|
5103 | echo "$ac_t""no" 1>&6 |
---|
5104 | fi |
---|
5105 | done |
---|
5106 | |
---|
5107 | ac_ext=c |
---|
5108 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
5109 | ac_cpp='$CPP $CPPFLAGS' |
---|
5110 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
5111 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
5112 | cross_compiling=$ac_cv_prog_cc_cross |
---|
5113 | |
---|
5114 | else |
---|
5115 | echo "$ac_t""no" 1>&6 |
---|
5116 | echo $ac_n "checking whether to use std::vector""... $ac_c" 1>&6 |
---|
5117 | echo "configure:5118: checking whether to use std::vector" >&5 |
---|
5118 | if test "$with_stdvec" != yes; then |
---|
5119 | echo "$ac_t""no" 1>&6 |
---|
5120 | else |
---|
5121 | echo "$ac_t""yes" 1>&6 |
---|
5122 | cat >> confdefs.h <<\EOF |
---|
5123 | #define USE_STDVECBOOL 1 |
---|
5124 | EOF |
---|
5125 | |
---|
5126 | USE_STDVECBOOL=1 |
---|
5127 | fi |
---|
5128 | fi |
---|
5129 | |
---|
5130 | |
---|
5131 | if test "$ac_cv_lib_gmp_main" = yes && \ |
---|
5132 | test "$ac_cv_header_gmp_h" = yes; then |
---|
5133 | ac_gmp_ok=yes |
---|
5134 | fi |
---|
5135 | |
---|
5136 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
5137 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
5138 | test "$ac_cv_header_MP_h" = yes && \ |
---|
5139 | test "$ac_cv_header_MPT_h" = yes; then |
---|
5140 | ac_MP_ok=yes |
---|
5141 | fi |
---|
5142 | |
---|
5143 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
5144 | test "$ac_cv_header_factory_h" = yes; then |
---|
5145 | ac_factory_ok=yes |
---|
5146 | fi |
---|
5147 | |
---|
5148 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
5149 | test "$ac_cv_header_factor_h" = yes; then |
---|
5150 | ac_libfac_ok=yes |
---|
5151 | fi |
---|
5152 | |
---|
5153 | if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \ |
---|
5154 | test "$ac_cv_lib_omalloc_ndebug_main" = yes && \ |
---|
5155 | test "$ac_cv_header_omalloc_c" = yes && \ |
---|
5156 | test "$ac_cv_header_omalloc_h" = yes; then |
---|
5157 | ac_cv_omalloc_ok=yes |
---|
5158 | fi |
---|
5159 | |
---|
5160 | if test "$ac_cv_lib_ntl_main" = yes; then |
---|
5161 | ac_cv_ntl_ok=yes |
---|
5162 | fi |
---|
5163 | |
---|
5164 | SAVE_LIBS=$LIBS |
---|
5165 | echo $ac_n "checking for __stack_chk_fail_local in -lc_nonshared""... $ac_c" 1>&6 |
---|
5166 | echo "configure:5167: checking for __stack_chk_fail_local in -lc_nonshared" >&5 |
---|
5167 | ac_lib_var=`echo c_nonshared'_'__stack_chk_fail_local | sed 'y%./+-%__p_%'` |
---|
5168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
5169 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
5170 | else |
---|
5171 | ac_save_LIBS="$LIBS" |
---|
5172 | LIBS="-lc_nonshared $LIBS" |
---|
5173 | cat > conftest.$ac_ext <<EOF |
---|
5174 | #line 5175 "configure" |
---|
5175 | #include "confdefs.h" |
---|
5176 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5177 | /* We use char because int might match the return type of a gcc2 |
---|
5178 | builtin and then its argument prototype would still apply. */ |
---|
5179 | char __stack_chk_fail_local(); |
---|
5180 | |
---|
5181 | int main() { |
---|
5182 | __stack_chk_fail_local() |
---|
5183 | ; return 0; } |
---|
5184 | EOF |
---|
5185 | if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
5186 | rm -rf conftest* |
---|
5187 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
5188 | else |
---|
5189 | echo "configure: failed program was:" >&5 |
---|
5190 | cat conftest.$ac_ext >&5 |
---|
5191 | rm -rf conftest* |
---|
5192 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
5193 | fi |
---|
5194 | rm -f conftest* |
---|
5195 | LIBS="$ac_save_LIBS" |
---|
5196 | |
---|
5197 | fi |
---|
5198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
5199 | echo "$ac_t""yes" 1>&6 |
---|
5200 | GLIBC_DYN_FIX="-lc_nonshared" |
---|
5201 | else |
---|
5202 | echo "$ac_t""no" 1>&6 |
---|
5203 | GLIBC_DYN_FIX="" |
---|
5204 | fi |
---|
5205 | |
---|
5206 | LIBS=$SAVE_LIBS |
---|
5207 | |
---|
5208 | |
---|
5209 | # evaluate results |
---|
5210 | if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then |
---|
5211 | { echo "configure: error: can not build without omalloc" 1>&2; exit 1; } |
---|
5212 | fi |
---|
5213 | |
---|
5214 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
5215 | echo "configure:5216: checking which apint package to use" >&5 |
---|
5216 | if test "${with_apint}" != gmp; then |
---|
5217 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
5218 | echo "$ac_t""gmp" 1>&6 |
---|
5219 | will_have_gmp=yes |
---|
5220 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
5221 | else |
---|
5222 | echo "$ac_t""none" 1>&6 |
---|
5223 | { echo "configure: error: can not build without gmp" 1>&2; exit 1; } |
---|
5224 | fi |
---|
5225 | else |
---|
5226 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
5227 | echo "$ac_t""gmp" 1>&6 |
---|
5228 | will_have_gmp=yes |
---|
5229 | NEED_LIBS="-lgmp ${NEED_LIBS}" |
---|
5230 | else |
---|
5231 | echo "$ac_t""none" 1>&6 |
---|
5232 | { echo "configure: error: can not build with gmp" 1>&2; exit 1; } |
---|
5233 | fi |
---|
5234 | fi |
---|
5235 | |
---|
5236 | echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6 |
---|
5237 | echo "configure:5238: checking whether to use libsvd" >&5 |
---|
5238 | if test "$with_svd" = yes; then |
---|
5239 | echo "$ac_t""yes" 1>&6 |
---|
5240 | cat >> confdefs.h <<\EOF |
---|
5241 | #define HAVE_SVD 1 |
---|
5242 | EOF |
---|
5243 | |
---|
5244 | NEED_LIBS="-lsvd -lmpfr ${NEED_LIBS}" |
---|
5245 | else |
---|
5246 | echo "$ac_t""no" 1>&6 |
---|
5247 | fi |
---|
5248 | |
---|
5249 | |
---|
5250 | # |
---|
5251 | echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 |
---|
5252 | echo "configure:5253: checking whether to have MP" >&5 |
---|
5253 | if test "${with_MP}" != yes && test "${with_MP}" != no; then |
---|
5254 | if (test "${will_have_gmp}" = yes) && \ |
---|
5255 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
5256 | echo "$ac_t""yes" 1>&6 |
---|
5257 | cat >> confdefs.h <<\EOF |
---|
5258 | #define HAVE_MPSR 1 |
---|
5259 | EOF |
---|
5260 | |
---|
5261 | HAVE_MPSR=1 |
---|
5262 | MP_LIBS="-lMPT -lMP ${MP_LIBS}" |
---|
5263 | else |
---|
5264 | echo "$ac_t""no" 1>&6 |
---|
5265 | fi |
---|
5266 | elif test "${with_MP}" = yes; then |
---|
5267 | if (test "${will_have_gmp}" = yes) && \ |
---|
5268 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
5269 | echo "$ac_t""yes" 1>&6 |
---|
5270 | cat >> confdefs.h <<\EOF |
---|
5271 | #define HAVE_MPSR 1 |
---|
5272 | EOF |
---|
5273 | |
---|
5274 | HAVE_MPSR=1 |
---|
5275 | MP_LIBS="-lMPT -lMP ${MP_LIBS}" |
---|
5276 | else |
---|
5277 | echo "$ac_t""no" 1>&6 |
---|
5278 | { echo "configure: error: can not build with MP" 1>&2; exit 1; } |
---|
5279 | fi |
---|
5280 | else |
---|
5281 | echo "$ac_t""no" 1>&6 |
---|
5282 | fi |
---|
5283 | |
---|
5284 | |
---|
5285 | |
---|
5286 | echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 |
---|
5287 | echo "configure:5288: checking whether to have NTL" >&5 |
---|
5288 | if test "${with_NTL}" = yes ; then |
---|
5289 | echo "$ac_t""yes" 1>&6 |
---|
5290 | NEED_LIBS="-lntl ${NEED_LIBS}" |
---|
5291 | else |
---|
5292 | echo "$ac_t""no" 1>&6 |
---|
5293 | fi |
---|
5294 | |
---|
5295 | echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 |
---|
5296 | echo "configure:5297: checking whether to have factory" >&5 |
---|
5297 | if test "${with_factory}" != yes && test "${with_factory}" != no; then |
---|
5298 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
5299 | echo "$ac_t""yes" 1>&6 |
---|
5300 | cat >> confdefs.h <<\EOF |
---|
5301 | #define HAVE_FACTORY 1 |
---|
5302 | EOF |
---|
5303 | |
---|
5304 | will_have_factory=yes |
---|
5305 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
5306 | else |
---|
5307 | echo "$ac_t""no" 1>&6 |
---|
5308 | fi |
---|
5309 | elif test "${with_factory}" = yes; then |
---|
5310 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
5311 | echo "$ac_t""yes" 1>&6 |
---|
5312 | cat >> confdefs.h <<\EOF |
---|
5313 | #define HAVE_FACTORY 1 |
---|
5314 | EOF |
---|
5315 | |
---|
5316 | will_have_factory=yes |
---|
5317 | NEED_LIBS="-lsingcf ${NEED_LIBS}" |
---|
5318 | else |
---|
5319 | echo "$ac_t""no" 1>&6 |
---|
5320 | { echo "configure: error: can not build with factory" 1>&2; exit 1; } |
---|
5321 | fi |
---|
5322 | else |
---|
5323 | echo "$ac_t""no" 1>&6 |
---|
5324 | fi |
---|
5325 | |
---|
5326 | echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 |
---|
5327 | echo "configure:5328: checking whether to have libfac" >&5 |
---|
5328 | if test "${with_libfac}" != yes && test "${with_libfac}" != no; then |
---|
5329 | if (test "${will_have_factory}" = yes) && \ |
---|
5330 | (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then |
---|
5331 | echo "$ac_t""yes" 1>&6 |
---|
5332 | cat >> confdefs.h <<\EOF |
---|
5333 | #define HAVE_LIBFAC_P 1 |
---|
5334 | EOF |
---|
5335 | |
---|
5336 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
5337 | else |
---|
5338 | echo "$ac_t""no" 1>&6 |
---|
5339 | fi |
---|
5340 | elif test "${with_libfac}" = yes; then |
---|
5341 | if (test "${will_have_factory}" = yes) && \ |
---|
5342 | (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then |
---|
5343 | echo "$ac_t""yes" 1>&6 |
---|
5344 | cat >> confdefs.h <<\EOF |
---|
5345 | #define HAVE_LIBFAC_P 1 |
---|
5346 | EOF |
---|
5347 | |
---|
5348 | NEED_LIBS="-lsingfac ${NEED_LIBS}" |
---|
5349 | else |
---|
5350 | echo "$ac_t""no" 1>&6 |
---|
5351 | { echo "configure: error: can not build with libfac" 1>&2; exit 1; } |
---|
5352 | fi |
---|
5353 | else |
---|
5354 | echo "$ac_t""no" 1>&6 |
---|
5355 | fi |
---|
5356 | |
---|
5357 | NEED_LIBSG="${NEED_LIBS}" |
---|
5358 | if test "$ac_cv_sizeof_voidp" != 4; then |
---|
5359 | NEED_LIBS="${NEED_LIBS} -lomalloc" |
---|
5360 | else |
---|
5361 | NEED_LIBS="${NEED_LIBS} -lomalloc_ndebug" |
---|
5362 | fi |
---|
5363 | |
---|
5364 | |
---|
5365 | |
---|
5366 | |
---|
5367 | |
---|
5368 | echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 |
---|
5369 | echo "configure:5370: checking whether to have dbm links" >&5 |
---|
5370 | if test "$with_dbm" != no; then |
---|
5371 | cat >> confdefs.h <<\EOF |
---|
5372 | #define HAVE_DBM 1 |
---|
5373 | EOF |
---|
5374 | |
---|
5375 | echo "$ac_t""yes" 1>&6 |
---|
5376 | else |
---|
5377 | echo "$ac_t""no" 1>&6 |
---|
5378 | fi |
---|
5379 | |
---|
5380 | echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 |
---|
5381 | echo "configure:5382: checking whether to have namespaces" >&5 |
---|
5382 | if test "$with_namespaces" != no; then |
---|
5383 | echo "$ac_t""yes" 1>&6 |
---|
5384 | cat >> confdefs.h <<\EOF |
---|
5385 | #define HAVE_NS 1 |
---|
5386 | EOF |
---|
5387 | |
---|
5388 | else |
---|
5389 | echo "$ac_t""no" 1>&6 |
---|
5390 | fi |
---|
5391 | |
---|
5392 | echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 |
---|
5393 | echo "configure:5394: checking whether to have dynamic modules" >&5 |
---|
5394 | if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then |
---|
5395 | echo "$ac_t""no" 1>&6 |
---|
5396 | else |
---|
5397 | cat >> confdefs.h <<\EOF |
---|
5398 | #define HAVE_DYNAMIC_LOADING 1 |
---|
5399 | EOF |
---|
5400 | |
---|
5401 | echo "$ac_t""yes" 1>&6 |
---|
5402 | fi |
---|
5403 | |
---|
5404 | echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 |
---|
5405 | echo "configure:5406: checking whether to have dynamic kernel" >&5 |
---|
5406 | if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then |
---|
5407 | DL_KERNEL=1 |
---|
5408 | |
---|
5409 | echo "$ac_t""yes" 1>&6 |
---|
5410 | else |
---|
5411 | echo "$ac_t""no" 1>&6 |
---|
5412 | fi |
---|
5413 | |
---|
5414 | echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 |
---|
5415 | echo "configure:5416: checking whether to have Plural" >&5 |
---|
5416 | if test "$with_Plural" != no && test "$enable_Plural" != no; then |
---|
5417 | cat >> confdefs.h <<\EOF |
---|
5418 | #define HAVE_PLURAL 1 |
---|
5419 | EOF |
---|
5420 | |
---|
5421 | echo "$ac_t""yes" 1>&6 |
---|
5422 | PLURAL=1 |
---|
5423 | |
---|
5424 | else |
---|
5425 | echo "$ac_t""no" 1>&6 |
---|
5426 | fi |
---|
5427 | |
---|
5428 | |
---|
5429 | OUTPUT_MAKEFILES="Makefile ../kernel/Makefile" |
---|
5430 | |
---|
5431 | if test "$ac_cv_singuname" = "ix86-Win"; then |
---|
5432 | OUTPUT_MAKEFILES="${OUTPUT_MAKEFILES} Singular.rc" |
---|
5433 | fi |
---|
5434 | |
---|
5435 | trap '' 1 2 15 |
---|
5436 | cat > confcache <<\EOF |
---|
5437 | # This file is a shell script that caches the results of configure |
---|
5438 | # tests run on this system so they can be shared between configure |
---|
5439 | # scripts and configure runs. It is not useful on other systems. |
---|
5440 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
5441 | # |
---|
5442 | # By default, configure uses ./config.cache as the cache file, |
---|
5443 | # creating it if it does not exist already. You can give configure |
---|
5444 | # the --cache-file=FILE option to use a different cache file; that is |
---|
5445 | # what configure does when it calls configure scripts in |
---|
5446 | # subdirectories, so they share the cache. |
---|
5447 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
5448 | # config.status only pays attention to the cache file if you give it the |
---|
5449 | # --recheck option to rerun configure. |
---|
5450 | # |
---|
5451 | EOF |
---|
5452 | # The following way of writing the cache mishandles newlines in values, |
---|
5453 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5454 | # So, don't put newlines in cache variables' values. |
---|
5455 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5456 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5457 | (set) 2>&1 | |
---|
5458 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5459 | *ac_space=\ *) |
---|
5460 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
5461 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
5462 | sed -n \ |
---|
5463 | -e "s/'/'\\\\''/g" \ |
---|
5464 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
5465 | ;; |
---|
5466 | *) |
---|
5467 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5468 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
5469 | ;; |
---|
5470 | esac >> confcache |
---|
5471 | if cmp -s $cache_file confcache; then |
---|
5472 | : |
---|
5473 | else |
---|
5474 | if test -w $cache_file; then |
---|
5475 | echo "updating cache $cache_file" |
---|
5476 | cat confcache > $cache_file |
---|
5477 | else |
---|
5478 | echo "not updating unwritable cache $cache_file" |
---|
5479 | fi |
---|
5480 | fi |
---|
5481 | rm -f confcache |
---|
5482 | |
---|
5483 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
5484 | |
---|
5485 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5486 | # Let make expand exec_prefix. |
---|
5487 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5488 | |
---|
5489 | # Any assignment to VPATH causes Sun make to only execute |
---|
5490 | # the first set of double-colon rules, so remove it if not needed. |
---|
5491 | # If there is a colon in the path, we need to keep it. |
---|
5492 | if test "x$srcdir" = x.; then |
---|
5493 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
5494 | fi |
---|
5495 | |
---|
5496 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
5497 | |
---|
5498 | DEFS=-DHAVE_CONFIG_H |
---|
5499 | |
---|
5500 | # Without the "./", some shells look in PATH for config.status. |
---|
5501 | : ${CONFIG_STATUS=./config.status} |
---|
5502 | |
---|
5503 | echo creating $CONFIG_STATUS |
---|
5504 | rm -f $CONFIG_STATUS |
---|
5505 | cat > $CONFIG_STATUS <<EOF |
---|
5506 | #! /bin/sh |
---|
5507 | # Generated automatically by configure. |
---|
5508 | # Run this file to recreate the current configuration. |
---|
5509 | # This directory was configured as follows, |
---|
5510 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
5511 | # |
---|
5512 | # $0 $ac_configure_args |
---|
5513 | # |
---|
5514 | # Compiler output produced by configure, useful for debugging |
---|
5515 | # configure, is in ./config.log if it exists. |
---|
5516 | |
---|
5517 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
5518 | for ac_option |
---|
5519 | do |
---|
5520 | case "\$ac_option" in |
---|
5521 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5522 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
5523 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
5524 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
5525 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
5526 | exit 0 ;; |
---|
5527 | -help | --help | --hel | --he | --h) |
---|
5528 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
5529 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
5530 | esac |
---|
5531 | done |
---|
5532 | |
---|
5533 | ac_given_srcdir=$srcdir |
---|
5534 | ac_given_INSTALL="$INSTALL" |
---|
5535 | |
---|
5536 | trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
5537 | EOF |
---|
5538 | cat >> $CONFIG_STATUS <<EOF |
---|
5539 | |
---|
5540 | # Protect against being on the right side of a sed subst in config.status. |
---|
5541 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
5542 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
5543 | $ac_vpsub |
---|
5544 | $extrasub |
---|
5545 | s%@SHELL@%$SHELL%g |
---|
5546 | s%@CFLAGS@%$CFLAGS%g |
---|
5547 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
5548 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
5549 | s%@FFLAGS@%$FFLAGS%g |
---|
5550 | s%@DEFS@%$DEFS%g |
---|
5551 | s%@LDFLAGS@%$LDFLAGS%g |
---|
5552 | s%@LIBS@%$LIBS%g |
---|
5553 | s%@exec_prefix@%$exec_prefix%g |
---|
5554 | s%@prefix@%$prefix%g |
---|
5555 | s%@program_transform_name@%$program_transform_name%g |
---|
5556 | s%@bindir@%$bindir%g |
---|
5557 | s%@sbindir@%$sbindir%g |
---|
5558 | s%@libexecdir@%$libexecdir%g |
---|
5559 | s%@datadir@%$datadir%g |
---|
5560 | s%@sysconfdir@%$sysconfdir%g |
---|
5561 | s%@sharedstatedir@%$sharedstatedir%g |
---|
5562 | s%@localstatedir@%$localstatedir%g |
---|
5563 | s%@libdir@%$libdir%g |
---|
5564 | s%@includedir@%$includedir%g |
---|
5565 | s%@oldincludedir@%$oldincludedir%g |
---|
5566 | s%@infodir@%$infodir%g |
---|
5567 | s%@mandir@%$mandir%g |
---|
5568 | s%@SINGUNAME@%$SINGUNAME%g |
---|
5569 | s%@SI_CPU_I386@%$SI_CPU_I386%g |
---|
5570 | s%@EXEC_EXT@%$EXEC_EXT%g |
---|
5571 | s%@SI_CPU_SPARC@%$SI_CPU_SPARC%g |
---|
5572 | s%@SI_CPU_X86_64@%$SI_CPU_X86_64%g |
---|
5573 | s%@SI_CPU_IA64@%$SI_CPU_IA64%g |
---|
5574 | s%@SI_CPU_PPC@%$SI_CPU_PPC%g |
---|
5575 | s%@SING_UNAME@%$SING_UNAME%g |
---|
5576 | s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g |
---|
5577 | s%@VERSION_DATE@%$VERSION_DATE%g |
---|
5578 | s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g |
---|
5579 | s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g |
---|
5580 | s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g |
---|
5581 | s%@CC@%$CC%g |
---|
5582 | s%@CPP@%$CPP%g |
---|
5583 | s%@CXX@%$CXX%g |
---|
5584 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
5585 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
5586 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
5587 | s%@PIPE@%$PIPE%g |
---|
5588 | s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g |
---|
5589 | s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g |
---|
5590 | s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g |
---|
5591 | s%@SET_MAKE@%$SET_MAKE%g |
---|
5592 | s%@SINGULAR@%$SINGULAR%g |
---|
5593 | s%@LEX@%$LEX%g |
---|
5594 | s%@BISON@%$BISON%g |
---|
5595 | s%@LN_S@%$LN_S%g |
---|
5596 | s%@PERL@%$PERL%g |
---|
5597 | s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g |
---|
5598 | s%@SFLAGS@%$SFLAGS%g |
---|
5599 | s%@SLDFLAGS@%$SLDFLAGS%g |
---|
5600 | s%@LD@%$LD%g |
---|
5601 | s%@ALLOCA@%$ALLOCA%g |
---|
5602 | s%@CXXCPP@%$CXXCPP%g |
---|
5603 | s%@USE_STDVECBOOL@%$USE_STDVECBOOL%g |
---|
5604 | s%@GLIBC_DYN_FIX@%$GLIBC_DYN_FIX%g |
---|
5605 | s%@HAVE_SVD@%$HAVE_SVD%g |
---|
5606 | s%@HAVE_MPSR@%$HAVE_MPSR%g |
---|
5607 | s%@MP_LIBS@%$MP_LIBS%g |
---|
5608 | s%@NEED_LIBS@%$NEED_LIBS%g |
---|
5609 | s%@NEED_LIBSG@%$NEED_LIBSG%g |
---|
5610 | s%@DL_KERNEL@%$DL_KERNEL%g |
---|
5611 | s%@PLURAL@%$PLURAL%g |
---|
5612 | |
---|
5613 | CEOF |
---|
5614 | EOF |
---|
5615 | |
---|
5616 | cat >> $CONFIG_STATUS <<\EOF |
---|
5617 | |
---|
5618 | # Split the substitutions into bite-sized pieces for seds with |
---|
5619 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
5620 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
5621 | ac_file=1 # Number of current file. |
---|
5622 | ac_beg=1 # First line for current file. |
---|
5623 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
5624 | ac_more_lines=: |
---|
5625 | ac_sed_cmds="" |
---|
5626 | while $ac_more_lines; do |
---|
5627 | if test $ac_beg -gt 1; then |
---|
5628 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
5629 | else |
---|
5630 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
5631 | fi |
---|
5632 | if test ! -s conftest.s$ac_file; then |
---|
5633 | ac_more_lines=false |
---|
5634 | rm -f conftest.s$ac_file |
---|
5635 | else |
---|
5636 | if test -z "$ac_sed_cmds"; then |
---|
5637 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
5638 | else |
---|
5639 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
5640 | fi |
---|
5641 | ac_file=`expr $ac_file + 1` |
---|
5642 | ac_beg=$ac_end |
---|
5643 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
5644 | fi |
---|
5645 | done |
---|
5646 | if test -z "$ac_sed_cmds"; then |
---|
5647 | ac_sed_cmds=cat |
---|
5648 | fi |
---|
5649 | EOF |
---|
5650 | |
---|
5651 | cat >> $CONFIG_STATUS <<EOF |
---|
5652 | |
---|
5653 | CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} |
---|
5654 | EOF |
---|
5655 | cat >> $CONFIG_STATUS <<\EOF |
---|
5656 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
5657 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
5658 | case "$ac_file" in |
---|
5659 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
5660 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
5661 | *) ac_file_in="${ac_file}.in" ;; |
---|
5662 | esac |
---|
5663 | |
---|
5664 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
5665 | |
---|
5666 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
5667 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
5668 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
5669 | # The file is in a subdirectory. |
---|
5670 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
5671 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
5672 | # A "../" for each directory in $ac_dir_suffix. |
---|
5673 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
5674 | else |
---|
5675 | ac_dir_suffix= ac_dots= |
---|
5676 | fi |
---|
5677 | |
---|
5678 | case "$ac_given_srcdir" in |
---|
5679 | .) srcdir=. |
---|
5680 | if test -z "$ac_dots"; then top_srcdir=. |
---|
5681 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
5682 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
5683 | *) # Relative path. |
---|
5684 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
5685 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
5686 | esac |
---|
5687 | |
---|
5688 | case "$ac_given_INSTALL" in |
---|
5689 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
5690 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
5691 | esac |
---|
5692 | |
---|
5693 | echo creating "$ac_file" |
---|
5694 | rm -f "$ac_file" |
---|
5695 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
5696 | case "$ac_file" in |
---|
5697 | *Makefile*) ac_comsub="1i\\ |
---|
5698 | # $configure_input" ;; |
---|
5699 | *) ac_comsub= ;; |
---|
5700 | esac |
---|
5701 | |
---|
5702 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
5703 | sed -e "$ac_comsub |
---|
5704 | s%@configure_input@%$configure_input%g |
---|
5705 | s%@srcdir@%$srcdir%g |
---|
5706 | s%@top_srcdir@%$top_srcdir%g |
---|
5707 | s%@INSTALL@%$INSTALL%g |
---|
5708 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
5709 | fi; done |
---|
5710 | rm -f conftest.s* |
---|
5711 | |
---|
5712 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
5713 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
5714 | # |
---|
5715 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
5716 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
5717 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
5718 | ac_dC='\3' |
---|
5719 | ac_dD='%g' |
---|
5720 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
5721 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
5722 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
5723 | ac_uC=' ' |
---|
5724 | ac_uD='\4%g' |
---|
5725 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
5726 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
5727 | ac_eB='$%\1#\2define\3' |
---|
5728 | ac_eC=' ' |
---|
5729 | ac_eD='%g' |
---|
5730 | |
---|
5731 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
5732 | EOF |
---|
5733 | cat >> $CONFIG_STATUS <<EOF |
---|
5734 | CONFIG_HEADERS="mod2.h" |
---|
5735 | EOF |
---|
5736 | cat >> $CONFIG_STATUS <<\EOF |
---|
5737 | fi |
---|
5738 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
5739 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
5740 | case "$ac_file" in |
---|
5741 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
5742 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
5743 | *) ac_file_in="${ac_file}.in" ;; |
---|
5744 | esac |
---|
5745 | |
---|
5746 | echo creating $ac_file |
---|
5747 | |
---|
5748 | rm -f conftest.frag conftest.in conftest.out |
---|
5749 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
5750 | cat $ac_file_inputs > conftest.in |
---|
5751 | |
---|
5752 | EOF |
---|
5753 | |
---|
5754 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
5755 | # the proper values into config.h.in to produce config.h. And first: |
---|
5756 | # Protect against being on the right side of a sed subst in config.status. |
---|
5757 | # Protect against being in an unquoted here document in config.status. |
---|
5758 | rm -f conftest.vals |
---|
5759 | cat > conftest.hdr <<\EOF |
---|
5760 | s/[\\&%]/\\&/g |
---|
5761 | s%[\\$`]%\\&%g |
---|
5762 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
5763 | s%ac_d%ac_u%gp |
---|
5764 | s%ac_u%ac_e%gp |
---|
5765 | EOF |
---|
5766 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
5767 | rm -f conftest.hdr |
---|
5768 | |
---|
5769 | # This sed command replaces #undef with comments. This is necessary, for |
---|
5770 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
5771 | # on some systems where configure will not decide to define it. |
---|
5772 | cat >> conftest.vals <<\EOF |
---|
5773 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
5774 | EOF |
---|
5775 | |
---|
5776 | # Break up conftest.vals because some shells have a limit on |
---|
5777 | # the size of here documents, and old seds have small limits too. |
---|
5778 | |
---|
5779 | rm -f conftest.tail |
---|
5780 | while : |
---|
5781 | do |
---|
5782 | ac_lines=`grep -c . conftest.vals` |
---|
5783 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
5784 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
5785 | # Write a limited-size here document to conftest.frag. |
---|
5786 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
5787 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
5788 | echo 'CEOF |
---|
5789 | sed -f conftest.frag conftest.in > conftest.out |
---|
5790 | rm -f conftest.in |
---|
5791 | mv conftest.out conftest.in |
---|
5792 | ' >> $CONFIG_STATUS |
---|
5793 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
5794 | rm -f conftest.vals |
---|
5795 | mv conftest.tail conftest.vals |
---|
5796 | done |
---|
5797 | rm -f conftest.vals |
---|
5798 | |
---|
5799 | cat >> $CONFIG_STATUS <<\EOF |
---|
5800 | rm -f conftest.frag conftest.h |
---|
5801 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
5802 | cat conftest.in >> conftest.h |
---|
5803 | rm -f conftest.in |
---|
5804 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
5805 | echo "$ac_file is unchanged" |
---|
5806 | rm -f conftest.h |
---|
5807 | else |
---|
5808 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
5809 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
5810 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
5811 | # The file is in a subdirectory. |
---|
5812 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
5813 | fi |
---|
5814 | rm -f $ac_file |
---|
5815 | mv conftest.h $ac_file |
---|
5816 | fi |
---|
5817 | fi; done |
---|
5818 | |
---|
5819 | EOF |
---|
5820 | cat >> $CONFIG_STATUS <<EOF |
---|
5821 | |
---|
5822 | EOF |
---|
5823 | cat >> $CONFIG_STATUS <<\EOF |
---|
5824 | \ |
---|
5825 | cp mod2.h ../kernel/mod2.h; \ |
---|
5826 | if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi |
---|
5827 | exit 0 |
---|
5828 | EOF |
---|
5829 | chmod +x $CONFIG_STATUS |
---|
5830 | rm -fr confdefs* $ac_clean_files |
---|
5831 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
5832 | |
---|