1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.9 |
---|
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 | \ |
---|
17 | --enable-PACKAGE configure and build PACKAGE |
---|
18 | --disable-PACKAGE do not configure and build PACKAGE |
---|
19 | where PACKAGE can be: |
---|
20 | smallgmp minimal version of gmp written in C only" |
---|
21 | ac_help="$ac_help |
---|
22 | \ |
---|
23 | MP Multi Protocol library" |
---|
24 | ac_help="$ac_help |
---|
25 | \ |
---|
26 | factory polynomial factorization library" |
---|
27 | ac_help="$ac_help |
---|
28 | \ |
---|
29 | libfac char set and modp poly factorization library" |
---|
30 | ac_help="$ac_help |
---|
31 | \ |
---|
32 | Singular CAS for commutative algebra" |
---|
33 | ac_help="$ac_help |
---|
34 | \ |
---|
35 | --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
36 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
37 | where PACKAGE can be: |
---|
38 | MP Multi Protocol library" |
---|
39 | ac_help="$ac_help |
---|
40 | \ |
---|
41 | factory polynomial factorization library" |
---|
42 | ac_help="$ac_help |
---|
43 | \ |
---|
44 | libfac char set and modp poly factorization library" |
---|
45 | ac_help="$ac_help |
---|
46 | \ |
---|
47 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
48 | where PACKAGE can be gmp, smallgmp, or buildin" |
---|
49 | |
---|
50 | # Initialize some variables set by options. |
---|
51 | # The variables have the same names as the options, with |
---|
52 | # dashes changed to underlines. |
---|
53 | build=NONE |
---|
54 | cache_file=./config.cache |
---|
55 | exec_prefix=NONE |
---|
56 | host=NONE |
---|
57 | no_create= |
---|
58 | nonopt=NONE |
---|
59 | no_recursion= |
---|
60 | prefix=NONE |
---|
61 | program_prefix=NONE |
---|
62 | program_suffix=NONE |
---|
63 | program_transform_name=s,x,x, |
---|
64 | silent= |
---|
65 | site= |
---|
66 | srcdir= |
---|
67 | target=NONE |
---|
68 | verbose= |
---|
69 | x_includes=NONE |
---|
70 | x_libraries=NONE |
---|
71 | bindir='${exec_prefix}/bin' |
---|
72 | sbindir='${exec_prefix}/sbin' |
---|
73 | libexecdir='${exec_prefix}/libexec' |
---|
74 | datadir='${prefix}/share' |
---|
75 | sysconfdir='${prefix}/etc' |
---|
76 | sharedstatedir='${prefix}/com' |
---|
77 | localstatedir='${prefix}/var' |
---|
78 | libdir='${exec_prefix}/lib' |
---|
79 | includedir='${prefix}/include' |
---|
80 | oldincludedir='/usr/include' |
---|
81 | infodir='${prefix}/info' |
---|
82 | mandir='${prefix}/man' |
---|
83 | |
---|
84 | # Initialize some other variables. |
---|
85 | subdirs= |
---|
86 | MFLAGS= MAKEFLAGS= |
---|
87 | |
---|
88 | ac_prev= |
---|
89 | for ac_option |
---|
90 | do |
---|
91 | |
---|
92 | # If the previous option needs an argument, assign it. |
---|
93 | if test -n "$ac_prev"; then |
---|
94 | eval "$ac_prev=\$ac_option" |
---|
95 | ac_prev= |
---|
96 | continue |
---|
97 | fi |
---|
98 | |
---|
99 | case "$ac_option" in |
---|
100 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
101 | *) ac_optarg= ;; |
---|
102 | esac |
---|
103 | |
---|
104 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
105 | |
---|
106 | case "$ac_option" in |
---|
107 | |
---|
108 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
109 | ac_prev=bindir ;; |
---|
110 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
111 | bindir="$ac_optarg" ;; |
---|
112 | |
---|
113 | -build | --build | --buil | --bui | --bu) |
---|
114 | ac_prev=build ;; |
---|
115 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
116 | build="$ac_optarg" ;; |
---|
117 | |
---|
118 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
119 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
120 | ac_prev=cache_file ;; |
---|
121 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
122 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
123 | cache_file="$ac_optarg" ;; |
---|
124 | |
---|
125 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
126 | ac_prev=datadir ;; |
---|
127 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
128 | | --da=*) |
---|
129 | datadir="$ac_optarg" ;; |
---|
130 | |
---|
131 | -disable-* | --disable-*) |
---|
132 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
133 | # Reject names that are not valid shell variable names. |
---|
134 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
135 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
136 | fi |
---|
137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
138 | eval "enable_${ac_feature}=no" ;; |
---|
139 | |
---|
140 | -enable-* | --enable-*) |
---|
141 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
142 | # Reject names that are not valid shell variable names. |
---|
143 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
144 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
145 | fi |
---|
146 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
147 | case "$ac_option" in |
---|
148 | *=*) ;; |
---|
149 | *) ac_optarg=yes ;; |
---|
150 | esac |
---|
151 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
152 | |
---|
153 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
154 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
155 | | --exec | --exe | --ex) |
---|
156 | ac_prev=exec_prefix ;; |
---|
157 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
158 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
159 | | --exec=* | --exe=* | --ex=*) |
---|
160 | exec_prefix="$ac_optarg" ;; |
---|
161 | |
---|
162 | -gas | --gas | --ga | --g) |
---|
163 | # Obsolete; use --with-gas. |
---|
164 | with_gas=yes ;; |
---|
165 | |
---|
166 | -help | --help | --hel | --he) |
---|
167 | # Omit some internal or obsolete options to make the list less imposing. |
---|
168 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
169 | cat << EOF |
---|
170 | Usage: configure [options] [host] |
---|
171 | Options: [defaults in brackets after descriptions] |
---|
172 | Configuration: |
---|
173 | --cache-file=FILE cache test results in FILE |
---|
174 | --help print this message |
---|
175 | --no-create do not create output files |
---|
176 | --quiet, --silent do not print \`checking...' messages |
---|
177 | --version print the version of autoconf that created configure |
---|
178 | Directory and file names: |
---|
179 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
180 | [$ac_default_prefix] |
---|
181 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
182 | [same as prefix] |
---|
183 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
184 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
185 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
186 | --datadir=DIR read-only architecture-independent data in DIR |
---|
187 | [PREFIX/share] |
---|
188 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
189 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
190 | [PREFIX/com] |
---|
191 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
192 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
193 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
194 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
195 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
196 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
197 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
198 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
199 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
200 | --program-transform-name=PROGRAM |
---|
201 | run sed PROGRAM on installed program names |
---|
202 | EOF |
---|
203 | cat << EOF |
---|
204 | Host type: |
---|
205 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
206 | --host=HOST configure for HOST [guessed] |
---|
207 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
208 | Features and packages: |
---|
209 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
210 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
211 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
212 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
213 | --x-includes=DIR X include files are in DIR |
---|
214 | --x-libraries=DIR X library files are in DIR |
---|
215 | EOF |
---|
216 | if test -n "$ac_help"; then |
---|
217 | echo "--enable and --with options recognized:$ac_help" |
---|
218 | fi |
---|
219 | exit 0 ;; |
---|
220 | |
---|
221 | -host | --host | --hos | --ho) |
---|
222 | ac_prev=host ;; |
---|
223 | -host=* | --host=* | --hos=* | --ho=*) |
---|
224 | host="$ac_optarg" ;; |
---|
225 | |
---|
226 | -includedir | --includedir | --includedi | --included | --include \ |
---|
227 | | --includ | --inclu | --incl | --inc) |
---|
228 | ac_prev=includedir ;; |
---|
229 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
230 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
231 | includedir="$ac_optarg" ;; |
---|
232 | |
---|
233 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
234 | ac_prev=infodir ;; |
---|
235 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
236 | infodir="$ac_optarg" ;; |
---|
237 | |
---|
238 | -libdir | --libdir | --libdi | --libd) |
---|
239 | ac_prev=libdir ;; |
---|
240 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
241 | libdir="$ac_optarg" ;; |
---|
242 | |
---|
243 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
244 | | --libexe | --libex | --libe) |
---|
245 | ac_prev=libexecdir ;; |
---|
246 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
247 | | --libexe=* | --libex=* | --libe=*) |
---|
248 | libexecdir="$ac_optarg" ;; |
---|
249 | |
---|
250 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
251 | | --localstate | --localstat | --localsta | --localst \ |
---|
252 | | --locals | --local | --loca | --loc | --lo) |
---|
253 | ac_prev=localstatedir ;; |
---|
254 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
255 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
256 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
257 | localstatedir="$ac_optarg" ;; |
---|
258 | |
---|
259 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
260 | ac_prev=mandir ;; |
---|
261 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
262 | mandir="$ac_optarg" ;; |
---|
263 | |
---|
264 | -nfp | --nfp | --nf) |
---|
265 | # Obsolete; use --without-fp. |
---|
266 | with_fp=no ;; |
---|
267 | |
---|
268 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
269 | | --no-cr | --no-c) |
---|
270 | no_create=yes ;; |
---|
271 | |
---|
272 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
273 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
274 | no_recursion=yes ;; |
---|
275 | |
---|
276 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
277 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
278 | | --oldin | --oldi | --old | --ol | --o) |
---|
279 | ac_prev=oldincludedir ;; |
---|
280 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
281 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
282 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
283 | oldincludedir="$ac_optarg" ;; |
---|
284 | |
---|
285 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
286 | ac_prev=prefix ;; |
---|
287 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
288 | prefix="$ac_optarg" ;; |
---|
289 | |
---|
290 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
291 | | --program-pre | --program-pr | --program-p) |
---|
292 | ac_prev=program_prefix ;; |
---|
293 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
294 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
295 | program_prefix="$ac_optarg" ;; |
---|
296 | |
---|
297 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
298 | | --program-suf | --program-su | --program-s) |
---|
299 | ac_prev=program_suffix ;; |
---|
300 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
301 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
302 | program_suffix="$ac_optarg" ;; |
---|
303 | |
---|
304 | -program-transform-name | --program-transform-name \ |
---|
305 | | --program-transform-nam | --program-transform-na \ |
---|
306 | | --program-transform-n | --program-transform- \ |
---|
307 | | --program-transform | --program-transfor \ |
---|
308 | | --program-transfo | --program-transf \ |
---|
309 | | --program-trans | --program-tran \ |
---|
310 | | --progr-tra | --program-tr | --program-t) |
---|
311 | ac_prev=program_transform_name ;; |
---|
312 | -program-transform-name=* | --program-transform-name=* \ |
---|
313 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
314 | | --program-transform-n=* | --program-transform-=* \ |
---|
315 | | --program-transform=* | --program-transfor=* \ |
---|
316 | | --program-transfo=* | --program-transf=* \ |
---|
317 | | --program-trans=* | --program-tran=* \ |
---|
318 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
319 | program_transform_name="$ac_optarg" ;; |
---|
320 | |
---|
321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
322 | | -silent | --silent | --silen | --sile | --sil) |
---|
323 | silent=yes ;; |
---|
324 | |
---|
325 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
326 | ac_prev=sbindir ;; |
---|
327 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
328 | | --sbi=* | --sb=*) |
---|
329 | sbindir="$ac_optarg" ;; |
---|
330 | |
---|
331 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
332 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
333 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
334 | | --sha | --sh) |
---|
335 | ac_prev=sharedstatedir ;; |
---|
336 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
337 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
338 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
339 | | --sha=* | --sh=*) |
---|
340 | sharedstatedir="$ac_optarg" ;; |
---|
341 | |
---|
342 | -site | --site | --sit) |
---|
343 | ac_prev=site ;; |
---|
344 | -site=* | --site=* | --sit=*) |
---|
345 | site="$ac_optarg" ;; |
---|
346 | |
---|
347 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
348 | ac_prev=srcdir ;; |
---|
349 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
350 | srcdir="$ac_optarg" ;; |
---|
351 | |
---|
352 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
353 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
354 | ac_prev=sysconfdir ;; |
---|
355 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
356 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
357 | sysconfdir="$ac_optarg" ;; |
---|
358 | |
---|
359 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
360 | ac_prev=target ;; |
---|
361 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
362 | target="$ac_optarg" ;; |
---|
363 | |
---|
364 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
365 | verbose=yes ;; |
---|
366 | |
---|
367 | -version | --version | --versio | --versi | --vers) |
---|
368 | echo "configure generated by autoconf version 2.9" |
---|
369 | exit 0 ;; |
---|
370 | |
---|
371 | -with-* | --with-*) |
---|
372 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
373 | # Reject names that are not valid shell variable names. |
---|
374 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
375 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
376 | fi |
---|
377 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
378 | case "$ac_option" in |
---|
379 | *=*) ;; |
---|
380 | *) ac_optarg=yes ;; |
---|
381 | esac |
---|
382 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
383 | |
---|
384 | -without-* | --without-*) |
---|
385 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
386 | # Reject names that are not valid shell variable names. |
---|
387 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
388 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
389 | fi |
---|
390 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
391 | eval "with_${ac_package}=no" ;; |
---|
392 | |
---|
393 | --x) |
---|
394 | # Obsolete; use --with-x. |
---|
395 | with_x=yes ;; |
---|
396 | |
---|
397 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
398 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
399 | ac_prev=x_includes ;; |
---|
400 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
401 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
402 | x_includes="$ac_optarg" ;; |
---|
403 | |
---|
404 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
405 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
406 | ac_prev=x_libraries ;; |
---|
407 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
408 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
409 | x_libraries="$ac_optarg" ;; |
---|
410 | |
---|
411 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
412 | ;; |
---|
413 | |
---|
414 | *) |
---|
415 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
416 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
417 | fi |
---|
418 | if test "x$nonopt" != xNONE; then |
---|
419 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
420 | fi |
---|
421 | nonopt="$ac_option" |
---|
422 | ;; |
---|
423 | |
---|
424 | esac |
---|
425 | done |
---|
426 | |
---|
427 | if test -n "$ac_prev"; then |
---|
428 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
429 | fi |
---|
430 | |
---|
431 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
432 | |
---|
433 | # File descriptor usage: |
---|
434 | # 0 standard input |
---|
435 | # 1 file creation |
---|
436 | # 2 errors and warnings |
---|
437 | # 3 some systems may open it to /dev/tty |
---|
438 | # 4 used on the Kubota Titan |
---|
439 | # 6 checking for... messages and results |
---|
440 | # 5 compiler messages saved in config.log |
---|
441 | if test "$silent" = yes; then |
---|
442 | exec 6>/dev/null |
---|
443 | else |
---|
444 | exec 6>&1 |
---|
445 | fi |
---|
446 | exec 5>./config.log |
---|
447 | |
---|
448 | echo "\ |
---|
449 | This file contains any messages produced by compilers while |
---|
450 | running configure, to aid debugging if configure makes a mistake. |
---|
451 | " 1>&5 |
---|
452 | |
---|
453 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
454 | # Also quote any args containing shell metacharacters. |
---|
455 | ac_configure_args= |
---|
456 | for ac_arg |
---|
457 | do |
---|
458 | case "$ac_arg" in |
---|
459 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
460 | | --no-cr | --no-c) ;; |
---|
461 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
462 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
463 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
464 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
465 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
466 | esac |
---|
467 | done |
---|
468 | |
---|
469 | # NLS nuisances. |
---|
470 | # Only set LANG and LC_ALL to C if already set. |
---|
471 | # These must not be set unconditionally because not all systems understand |
---|
472 | # e.g. LANG=C (notably SCO). |
---|
473 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
474 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
475 | |
---|
476 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
477 | rm -rf conftest* confdefs.h |
---|
478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
479 | echo > confdefs.h |
---|
480 | |
---|
481 | # A filename unique to this package, relative to the directory that |
---|
482 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
483 | ac_unique_file=Singular/matpol.h |
---|
484 | |
---|
485 | # Find the source files, if location was not specified. |
---|
486 | if test -z "$srcdir"; then |
---|
487 | ac_srcdir_defaulted=yes |
---|
488 | # Try the directory containing this script, then its parent. |
---|
489 | ac_prog=$0 |
---|
490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
492 | srcdir=$ac_confdir |
---|
493 | if test ! -r $srcdir/$ac_unique_file; then |
---|
494 | srcdir=.. |
---|
495 | fi |
---|
496 | else |
---|
497 | ac_srcdir_defaulted=no |
---|
498 | fi |
---|
499 | if test ! -r $srcdir/$ac_unique_file; then |
---|
500 | if test "$ac_srcdir_defaulted" = yes; then |
---|
501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
502 | else |
---|
503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
504 | fi |
---|
505 | fi |
---|
506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
507 | |
---|
508 | # Prefer explicitly selected file to automatically selected ones. |
---|
509 | if test -z "$CONFIG_SITE"; then |
---|
510 | if test "x$prefix" != xNONE; then |
---|
511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
512 | else |
---|
513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
514 | fi |
---|
515 | fi |
---|
516 | for ac_site_file in $CONFIG_SITE; do |
---|
517 | if test -r "$ac_site_file"; then |
---|
518 | echo "loading site script $ac_site_file" |
---|
519 | . "$ac_site_file" |
---|
520 | fi |
---|
521 | done |
---|
522 | |
---|
523 | if test -r "$cache_file"; then |
---|
524 | echo "loading cache $cache_file" |
---|
525 | . $cache_file |
---|
526 | else |
---|
527 | echo "creating cache $cache_file" |
---|
528 | > $cache_file |
---|
529 | fi |
---|
530 | |
---|
531 | ac_ext=c |
---|
532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
533 | ac_cpp='$CPP $CPPFLAGS' |
---|
534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
535 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
536 | |
---|
537 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
538 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
539 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
540 | ac_n= ac_c=' |
---|
541 | ' ac_t=' ' |
---|
542 | else |
---|
543 | ac_n=-n ac_c= ac_t= |
---|
544 | fi |
---|
545 | else |
---|
546 | ac_n= ac_c='\c' ac_t= |
---|
547 | fi |
---|
548 | |
---|
549 | |
---|
550 | |
---|
551 | |
---|
552 | SINGULAR_MAJOR_VERSION=1 |
---|
553 | SINGULAR_MINOR_VERSION=1 |
---|
554 | SINGULAR_SUB_VERSION=0 |
---|
555 | VERSION_DATE="June 1997" |
---|
556 | |
---|
557 | |
---|
558 | |
---|
559 | |
---|
560 | ac_aux_dir= |
---|
561 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
562 | if test -f $ac_dir/install-sh; then |
---|
563 | ac_aux_dir=$ac_dir |
---|
564 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
565 | break |
---|
566 | elif test -f $ac_dir/install.sh; then |
---|
567 | ac_aux_dir=$ac_dir |
---|
568 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
569 | break |
---|
570 | fi |
---|
571 | done |
---|
572 | if test -z "$ac_aux_dir"; then |
---|
573 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
574 | fi |
---|
575 | ac_config_guess=$ac_aux_dir/config.guess |
---|
576 | ac_config_sub=$ac_aux_dir/config.sub |
---|
577 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
578 | |
---|
579 | |
---|
580 | # Make sure we can run config.sub. |
---|
581 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
582 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
583 | fi |
---|
584 | |
---|
585 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
586 | |
---|
587 | host_alias=$host |
---|
588 | case "$host_alias" in |
---|
589 | NONE) |
---|
590 | case $nonopt in |
---|
591 | NONE) |
---|
592 | if host_alias=`$ac_config_guess`; then : |
---|
593 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
594 | fi ;; |
---|
595 | *) host_alias=$nonopt ;; |
---|
596 | esac ;; |
---|
597 | esac |
---|
598 | |
---|
599 | host=`$ac_config_sub $host_alias` |
---|
600 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
---|
601 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` |
---|
602 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` |
---|
603 | echo "$ac_t""$host" 1>&6 |
---|
604 | |
---|
605 | |
---|
606 | |
---|
607 | |
---|
608 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
609 | set dummy gcc; ac_word=$2 |
---|
610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
611 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
612 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
613 | else |
---|
614 | if test -n "$CC"; then |
---|
615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
616 | else |
---|
617 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
618 | for ac_dir in $PATH; do |
---|
619 | test -z "$ac_dir" && ac_dir=. |
---|
620 | if test -f $ac_dir/$ac_word; then |
---|
621 | ac_cv_prog_CC="gcc" |
---|
622 | break |
---|
623 | fi |
---|
624 | done |
---|
625 | IFS="$ac_save_ifs" |
---|
626 | fi |
---|
627 | fi |
---|
628 | CC="$ac_cv_prog_CC" |
---|
629 | if test -n "$CC"; then |
---|
630 | echo "$ac_t""$CC" 1>&6 |
---|
631 | else |
---|
632 | echo "$ac_t""no" 1>&6 |
---|
633 | fi |
---|
634 | |
---|
635 | if test -z "$CC"; then |
---|
636 | # Extract the first word of "cc", so it can be a program name with args. |
---|
637 | set dummy cc; ac_word=$2 |
---|
638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
639 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
640 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
641 | else |
---|
642 | if test -n "$CC"; then |
---|
643 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
644 | else |
---|
645 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
646 | ac_prog_rejected=no |
---|
647 | for ac_dir in $PATH; do |
---|
648 | test -z "$ac_dir" && ac_dir=. |
---|
649 | if test -f $ac_dir/$ac_word; then |
---|
650 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
651 | ac_prog_rejected=yes |
---|
652 | continue |
---|
653 | fi |
---|
654 | ac_cv_prog_CC="cc" |
---|
655 | break |
---|
656 | fi |
---|
657 | done |
---|
658 | IFS="$ac_save_ifs" |
---|
659 | if test $ac_prog_rejected = yes; then |
---|
660 | # We found a bogon in the path, so make sure we never use it. |
---|
661 | set dummy $ac_cv_prog_CC |
---|
662 | shift |
---|
663 | if test $# -gt 0; then |
---|
664 | # We chose a different compiler from the bogus one. |
---|
665 | # However, it has the same basename, so the bogon will be chosen |
---|
666 | # first if we set CC to just the basename; use the full file name. |
---|
667 | shift |
---|
668 | set dummy "$ac_dir/$ac_word" "$@" |
---|
669 | shift |
---|
670 | ac_cv_prog_CC="$@" |
---|
671 | fi |
---|
672 | fi |
---|
673 | fi |
---|
674 | fi |
---|
675 | CC="$ac_cv_prog_CC" |
---|
676 | if test -n "$CC"; then |
---|
677 | echo "$ac_t""$CC" 1>&6 |
---|
678 | else |
---|
679 | echo "$ac_t""no" 1>&6 |
---|
680 | fi |
---|
681 | |
---|
682 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
683 | fi |
---|
684 | |
---|
685 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
686 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
687 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
688 | else |
---|
689 | cat > conftest.c <<EOF |
---|
690 | #ifdef __GNUC__ |
---|
691 | yes; |
---|
692 | #endif |
---|
693 | EOF |
---|
694 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
695 | ac_cv_prog_gcc=yes |
---|
696 | else |
---|
697 | ac_cv_prog_gcc=no |
---|
698 | fi |
---|
699 | fi |
---|
700 | |
---|
701 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
702 | if test $ac_cv_prog_gcc = yes; then |
---|
703 | GCC=yes |
---|
704 | if test "${CFLAGS+set}" != set; then |
---|
705 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
706 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
---|
707 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
708 | else |
---|
709 | echo 'void f(){}' > conftest.c |
---|
710 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
711 | ac_cv_prog_gcc_g=yes |
---|
712 | else |
---|
713 | ac_cv_prog_gcc_g=no |
---|
714 | fi |
---|
715 | rm -f conftest* |
---|
716 | |
---|
717 | fi |
---|
718 | |
---|
719 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
---|
720 | if test $ac_cv_prog_gcc_g = yes; then |
---|
721 | CFLAGS="-g -O" |
---|
722 | else |
---|
723 | CFLAGS="-O" |
---|
724 | fi |
---|
725 | fi |
---|
726 | else |
---|
727 | GCC= |
---|
728 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
729 | fi |
---|
730 | |
---|
731 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
732 | # On Suns, sometimes $CPP names a directory. |
---|
733 | if test -n "$CPP" && test -d "$CPP"; then |
---|
734 | CPP= |
---|
735 | fi |
---|
736 | if test -z "$CPP"; then |
---|
737 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
738 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
739 | else |
---|
740 | # This must be in double quotes, not single quotes, because CPP may get |
---|
741 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
742 | CPP="${CC-cc} -E" |
---|
743 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
744 | # not just through cpp. |
---|
745 | cat > conftest.$ac_ext <<EOF |
---|
746 | #line 747 "configure" |
---|
747 | #include "confdefs.h" |
---|
748 | #include <assert.h> |
---|
749 | Syntax Error |
---|
750 | EOF |
---|
751 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
752 | { (eval echo configure:753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
753 | ac_err=`grep -v '^ *+' conftest.out` |
---|
754 | if test -z "$ac_err"; then |
---|
755 | : |
---|
756 | else |
---|
757 | echo "$ac_err" >&5 |
---|
758 | rm -rf conftest* |
---|
759 | CPP="${CC-cc} -E -traditional-cpp" |
---|
760 | cat > conftest.$ac_ext <<EOF |
---|
761 | #line 762 "configure" |
---|
762 | #include "confdefs.h" |
---|
763 | #include <assert.h> |
---|
764 | Syntax Error |
---|
765 | EOF |
---|
766 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
767 | { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
768 | ac_err=`grep -v '^ *+' conftest.out` |
---|
769 | if test -z "$ac_err"; then |
---|
770 | : |
---|
771 | else |
---|
772 | echo "$ac_err" >&5 |
---|
773 | rm -rf conftest* |
---|
774 | CPP=/lib/cpp |
---|
775 | fi |
---|
776 | rm -f conftest* |
---|
777 | fi |
---|
778 | rm -f conftest* |
---|
779 | ac_cv_prog_CPP="$CPP" |
---|
780 | fi |
---|
781 | CPP="$ac_cv_prog_CPP" |
---|
782 | else |
---|
783 | ac_cv_prog_CPP="$CPP" |
---|
784 | fi |
---|
785 | echo "$ac_t""$CPP" 1>&6 |
---|
786 | |
---|
787 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
788 | cat > conftest.$ac_ext <<EOF |
---|
789 | #line 790 "configure" |
---|
790 | #include "confdefs.h" |
---|
791 | #ifdef _AIX |
---|
792 | yes |
---|
793 | #endif |
---|
794 | |
---|
795 | EOF |
---|
796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
797 | egrep "yes" >/dev/null 2>&1; then |
---|
798 | rm -rf conftest* |
---|
799 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
800 | #define _ALL_SOURCE 1 |
---|
801 | EOF |
---|
802 | |
---|
803 | else |
---|
804 | rm -rf conftest* |
---|
805 | echo "$ac_t""no" 1>&6 |
---|
806 | fi |
---|
807 | rm -f conftest* |
---|
808 | |
---|
809 | |
---|
810 | |
---|
811 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
812 | if test "x$exec_prefix" = xNONE; then |
---|
813 | if test "x$prefix" = xNONE; then |
---|
814 | LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}" |
---|
815 | ac_configure_args="$ac_configure_args --libdir=${ac_default_prefix}/lib" |
---|
816 | else |
---|
817 | LDFLAGS="-L${prefix}/lib ${LDFLAGS}" |
---|
818 | ac_configure_args="$ac_configure_args --libdir=${prefix}/lib" |
---|
819 | fi |
---|
820 | else |
---|
821 | LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" |
---|
822 | ac_configure_args="$ac_configure_args --libdir=${exec_prefix}/lib" |
---|
823 | fi |
---|
824 | else |
---|
825 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
826 | fi |
---|
827 | |
---|
828 | if test "$includedir" = '${prefix}/include'; then |
---|
829 | if test "x$prefix" = xNONE; then |
---|
830 | CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}" |
---|
831 | ac_configure_args="$ac_configure_args --includedir=${ac_default_prefix}/include" |
---|
832 | else |
---|
833 | CPPFLAGS="-I${prefix}/include ${CPPFLAGS}" |
---|
834 | ac_configure_args="$ac_configure_args --includedir=${prefix}/include" |
---|
835 | fi |
---|
836 | else |
---|
837 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
838 | fi |
---|
839 | |
---|
840 | if test "x$prefix" = xNONE; then |
---|
841 | ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix" |
---|
842 | fi |
---|
843 | |
---|
844 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
845 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
846 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
847 | else |
---|
848 | cat > conftest.$ac_ext <<EOF |
---|
849 | #line 850 "configure" |
---|
850 | #include "confdefs.h" |
---|
851 | #ifdef _AIX |
---|
852 | yes |
---|
853 | #endif |
---|
854 | |
---|
855 | EOF |
---|
856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
857 | egrep "yes" >/dev/null 2>&1; then |
---|
858 | rm -rf conftest* |
---|
859 | ac_cv_is_aix=yes |
---|
860 | else |
---|
861 | rm -rf conftest* |
---|
862 | ac_cv_is_aix=no |
---|
863 | fi |
---|
864 | rm -f conftest* |
---|
865 | |
---|
866 | fi |
---|
867 | |
---|
868 | if test "$ac_cv_is_aix" = yes; then |
---|
869 | echo "$ac_t""yes" 1>&6 |
---|
870 | else |
---|
871 | echo "$ac_t""no" 1>&6 |
---|
872 | fi |
---|
873 | |
---|
874 | |
---|
875 | echo $ac_n "checking for -lm""... $ac_c" 1>&6 |
---|
876 | ac_lib_var=`echo m_atof | tr '.-/+' '___p'` |
---|
877 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
878 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
879 | else |
---|
880 | ac_save_LIBS="$LIBS" |
---|
881 | LIBS="-lm $LIBS" |
---|
882 | cat > conftest.$ac_ext <<EOF |
---|
883 | #line 884 "configure" |
---|
884 | #include "confdefs.h" |
---|
885 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
886 | char atof(); |
---|
887 | |
---|
888 | int main() { return 0; } |
---|
889 | int t() { |
---|
890 | atof() |
---|
891 | ; return 0; } |
---|
892 | EOF |
---|
893 | if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
894 | rm -rf conftest* |
---|
895 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
896 | else |
---|
897 | rm -rf conftest* |
---|
898 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
899 | fi |
---|
900 | rm -f conftest* |
---|
901 | LIBS="$ac_save_LIBS" |
---|
902 | |
---|
903 | fi |
---|
904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
905 | echo "$ac_t""yes" 1>&6 |
---|
906 | ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
907 | cat >> confdefs.h <<EOF |
---|
908 | #define $ac_tr_lib 1 |
---|
909 | EOF |
---|
910 | |
---|
911 | LIBS="-lm $LIBS" |
---|
912 | |
---|
913 | else |
---|
914 | echo "$ac_t""no" 1>&6 |
---|
915 | fi |
---|
916 | |
---|
917 | echo $ac_n "checking for -lgmp""... $ac_c" 1>&6 |
---|
918 | ac_lib_var=`echo gmp_mpq_init | tr '.-/+' '___p'` |
---|
919 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
920 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
921 | else |
---|
922 | ac_save_LIBS="$LIBS" |
---|
923 | LIBS="-lgmp $LIBS" |
---|
924 | cat > conftest.$ac_ext <<EOF |
---|
925 | #line 926 "configure" |
---|
926 | #include "confdefs.h" |
---|
927 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
928 | char mpq_init(); |
---|
929 | |
---|
930 | int main() { return 0; } |
---|
931 | int t() { |
---|
932 | mpq_init() |
---|
933 | ; return 0; } |
---|
934 | EOF |
---|
935 | if { (eval echo configure:936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
936 | rm -rf conftest* |
---|
937 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
938 | else |
---|
939 | rm -rf conftest* |
---|
940 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
941 | fi |
---|
942 | rm -f conftest* |
---|
943 | LIBS="$ac_save_LIBS" |
---|
944 | |
---|
945 | fi |
---|
946 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
947 | echo "$ac_t""yes" 1>&6 |
---|
948 | ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
949 | cat >> confdefs.h <<EOF |
---|
950 | #define $ac_tr_lib 1 |
---|
951 | EOF |
---|
952 | |
---|
953 | LIBS="-lgmp $LIBS" |
---|
954 | |
---|
955 | else |
---|
956 | echo "$ac_t""no" 1>&6 |
---|
957 | fi |
---|
958 | |
---|
959 | echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6 |
---|
960 | ac_lib_var=`echo smallgmp_mpz_init | tr '.-/+' '___p'` |
---|
961 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
962 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
963 | else |
---|
964 | ac_save_LIBS="$LIBS" |
---|
965 | LIBS="-lsmallgmp $LIBS" |
---|
966 | cat > conftest.$ac_ext <<EOF |
---|
967 | #line 968 "configure" |
---|
968 | #include "confdefs.h" |
---|
969 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
970 | char mpz_init(); |
---|
971 | |
---|
972 | int main() { return 0; } |
---|
973 | int t() { |
---|
974 | mpz_init() |
---|
975 | ; return 0; } |
---|
976 | EOF |
---|
977 | if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
978 | rm -rf conftest* |
---|
979 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
980 | else |
---|
981 | rm -rf conftest* |
---|
982 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
983 | fi |
---|
984 | rm -f conftest* |
---|
985 | LIBS="$ac_save_LIBS" |
---|
986 | |
---|
987 | fi |
---|
988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
989 | echo "$ac_t""yes" 1>&6 |
---|
990 | ac_tr_lib=HAVE_LIB`echo smallgmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
991 | cat >> confdefs.h <<EOF |
---|
992 | #define $ac_tr_lib 1 |
---|
993 | EOF |
---|
994 | |
---|
995 | LIBS="-lsmallgmp $LIBS" |
---|
996 | |
---|
997 | else |
---|
998 | echo "$ac_t""no" 1>&6 |
---|
999 | fi |
---|
1000 | |
---|
1001 | echo $ac_n "checking for -lMP""... $ac_c" 1>&6 |
---|
1002 | ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'` |
---|
1003 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1004 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1005 | else |
---|
1006 | ac_save_LIBS="$LIBS" |
---|
1007 | LIBS="-lMP $LIBS" |
---|
1008 | cat > conftest.$ac_ext <<EOF |
---|
1009 | #line 1010 "configure" |
---|
1010 | #include "confdefs.h" |
---|
1011 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1012 | char IMP_PutGmpInt(); |
---|
1013 | |
---|
1014 | int main() { return 0; } |
---|
1015 | int t() { |
---|
1016 | IMP_PutGmpInt() |
---|
1017 | ; return 0; } |
---|
1018 | EOF |
---|
1019 | if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1020 | rm -rf conftest* |
---|
1021 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1022 | else |
---|
1023 | rm -rf conftest* |
---|
1024 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1025 | fi |
---|
1026 | rm -f conftest* |
---|
1027 | LIBS="$ac_save_LIBS" |
---|
1028 | |
---|
1029 | fi |
---|
1030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1031 | echo "$ac_t""yes" 1>&6 |
---|
1032 | ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1033 | cat >> confdefs.h <<EOF |
---|
1034 | #define $ac_tr_lib 1 |
---|
1035 | EOF |
---|
1036 | |
---|
1037 | LIBS="-lMP $LIBS" |
---|
1038 | |
---|
1039 | else |
---|
1040 | echo "$ac_t""no" 1>&6 |
---|
1041 | fi |
---|
1042 | |
---|
1043 | echo $ac_n "checking for -lMPT""... $ac_c" 1>&6 |
---|
1044 | ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'` |
---|
1045 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1046 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1047 | else |
---|
1048 | ac_save_LIBS="$LIBS" |
---|
1049 | LIBS="-lMPT $LIBS" |
---|
1050 | cat > conftest.$ac_ext <<EOF |
---|
1051 | #line 1052 "configure" |
---|
1052 | #include "confdefs.h" |
---|
1053 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1054 | char MPT_GetTree(); |
---|
1055 | |
---|
1056 | int main() { return 0; } |
---|
1057 | int t() { |
---|
1058 | MPT_GetTree() |
---|
1059 | ; return 0; } |
---|
1060 | EOF |
---|
1061 | if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1062 | rm -rf conftest* |
---|
1063 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1064 | else |
---|
1065 | rm -rf conftest* |
---|
1066 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1067 | fi |
---|
1068 | rm -f conftest* |
---|
1069 | LIBS="$ac_save_LIBS" |
---|
1070 | |
---|
1071 | fi |
---|
1072 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1073 | echo "$ac_t""yes" 1>&6 |
---|
1074 | ac_tr_lib=HAVE_LIB`echo MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1075 | cat >> confdefs.h <<EOF |
---|
1076 | #define $ac_tr_lib 1 |
---|
1077 | EOF |
---|
1078 | |
---|
1079 | LIBS="-lMPT $LIBS" |
---|
1080 | |
---|
1081 | else |
---|
1082 | echo "$ac_t""no" 1>&6 |
---|
1083 | fi |
---|
1084 | |
---|
1085 | echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6 |
---|
1086 | ac_lib_var=`echo singcf_atof | tr '.-/+' '___p'` |
---|
1087 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1088 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1089 | else |
---|
1090 | ac_save_LIBS="$LIBS" |
---|
1091 | LIBS="-lsingcf $LIBS" |
---|
1092 | cat > conftest.$ac_ext <<EOF |
---|
1093 | #line 1094 "configure" |
---|
1094 | #include "confdefs.h" |
---|
1095 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1096 | char atof(); |
---|
1097 | |
---|
1098 | int main() { return 0; } |
---|
1099 | int t() { |
---|
1100 | atof() |
---|
1101 | ; return 0; } |
---|
1102 | EOF |
---|
1103 | if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1104 | rm -rf conftest* |
---|
1105 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1106 | else |
---|
1107 | rm -rf conftest* |
---|
1108 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1109 | fi |
---|
1110 | rm -f conftest* |
---|
1111 | LIBS="$ac_save_LIBS" |
---|
1112 | |
---|
1113 | fi |
---|
1114 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1115 | echo "$ac_t""yes" 1>&6 |
---|
1116 | ac_tr_lib=HAVE_LIB`echo singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1117 | cat >> confdefs.h <<EOF |
---|
1118 | #define $ac_tr_lib 1 |
---|
1119 | EOF |
---|
1120 | |
---|
1121 | LIBS="-lsingcf $LIBS" |
---|
1122 | |
---|
1123 | else |
---|
1124 | echo "$ac_t""no" 1>&6 |
---|
1125 | fi |
---|
1126 | |
---|
1127 | echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6 |
---|
1128 | ac_lib_var=`echo singfac_atof | tr '.-/+' '___p'` |
---|
1129 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1130 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1131 | else |
---|
1132 | ac_save_LIBS="$LIBS" |
---|
1133 | LIBS="-lsingfac $LIBS" |
---|
1134 | cat > conftest.$ac_ext <<EOF |
---|
1135 | #line 1136 "configure" |
---|
1136 | #include "confdefs.h" |
---|
1137 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1138 | char atof(); |
---|
1139 | |
---|
1140 | int main() { return 0; } |
---|
1141 | int t() { |
---|
1142 | atof() |
---|
1143 | ; return 0; } |
---|
1144 | EOF |
---|
1145 | if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
---|
1146 | rm -rf conftest* |
---|
1147 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1148 | else |
---|
1149 | rm -rf conftest* |
---|
1150 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1151 | fi |
---|
1152 | rm -f conftest* |
---|
1153 | LIBS="$ac_save_LIBS" |
---|
1154 | |
---|
1155 | fi |
---|
1156 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1157 | echo "$ac_t""yes" 1>&6 |
---|
1158 | ac_tr_lib=HAVE_LIB`echo singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
1159 | cat >> confdefs.h <<EOF |
---|
1160 | #define $ac_tr_lib 1 |
---|
1161 | EOF |
---|
1162 | |
---|
1163 | LIBS="-lsingfac $LIBS" |
---|
1164 | |
---|
1165 | else |
---|
1166 | echo "$ac_t""no" 1>&6 |
---|
1167 | fi |
---|
1168 | |
---|
1169 | |
---|
1170 | for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h |
---|
1171 | do |
---|
1172 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
---|
1173 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
1174 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
1175 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1176 | else |
---|
1177 | cat > conftest.$ac_ext <<EOF |
---|
1178 | #line 1179 "configure" |
---|
1179 | #include "confdefs.h" |
---|
1180 | #include <$ac_hdr> |
---|
1181 | EOF |
---|
1182 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1183 | { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1184 | ac_err=`grep -v '^ *+' conftest.out` |
---|
1185 | if test -z "$ac_err"; then |
---|
1186 | rm -rf conftest* |
---|
1187 | eval "ac_cv_header_$ac_safe=yes" |
---|
1188 | else |
---|
1189 | echo "$ac_err" >&5 |
---|
1190 | rm -rf conftest* |
---|
1191 | eval "ac_cv_header_$ac_safe=no" |
---|
1192 | fi |
---|
1193 | rm -f conftest* |
---|
1194 | fi |
---|
1195 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
1196 | echo "$ac_t""yes" 1>&6 |
---|
1197 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
---|
1198 | cat >> confdefs.h <<EOF |
---|
1199 | #define $ac_tr_hdr 1 |
---|
1200 | EOF |
---|
1201 | |
---|
1202 | else |
---|
1203 | echo "$ac_t""no" 1>&6 |
---|
1204 | fi |
---|
1205 | done |
---|
1206 | |
---|
1207 | |
---|
1208 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
1209 | test "$ac_cv_header_gmp_h" = yes; then |
---|
1210 | ac_gmp_ok=yes |
---|
1211 | fi |
---|
1212 | |
---|
1213 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
1214 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
1215 | test "$ac_cv_header_gmp_h" = yes; then |
---|
1216 | ac_smallgmp_ok=yes |
---|
1217 | fi |
---|
1218 | |
---|
1219 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
1220 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
1221 | test "$ac_cv_header_MP_h" = yes && \ |
---|
1222 | test "$ac_cv_header_MPT_h" = yes; then |
---|
1223 | ac_MP_ok=yes |
---|
1224 | fi |
---|
1225 | |
---|
1226 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
1227 | test "$ac_cv_header_factory_h" = yes; then |
---|
1228 | ac_factory_ok=yes |
---|
1229 | fi |
---|
1230 | |
---|
1231 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
1232 | test "$ac_cv_header_factor_h" = yes; then |
---|
1233 | ac_libfac_ok=yes |
---|
1234 | fi |
---|
1235 | |
---|
1236 | |
---|
1237 | |
---|
1238 | # Check whether --enable-smallgmp or --disable-smallgmp was given. |
---|
1239 | if test "${enable_smallgmp+set}" = set; then |
---|
1240 | enableval="$enable_smallgmp" |
---|
1241 | : |
---|
1242 | fi |
---|
1243 | |
---|
1244 | # Check whether --enable-MP or --disable-MP was given. |
---|
1245 | if test "${enable_MP+set}" = set; then |
---|
1246 | enableval="$enable_MP" |
---|
1247 | : |
---|
1248 | fi |
---|
1249 | |
---|
1250 | # Check whether --enable-factory or --disable-factory was given. |
---|
1251 | if test "${enable_factory+set}" = set; then |
---|
1252 | enableval="$enable_factory" |
---|
1253 | : |
---|
1254 | fi |
---|
1255 | |
---|
1256 | # Check whether --enable-libfac or --disable-libfac was given. |
---|
1257 | if test "${enable_libfac+set}" = set; then |
---|
1258 | enableval="$enable_libfac" |
---|
1259 | : |
---|
1260 | fi |
---|
1261 | |
---|
1262 | # Check whether --enable-Singular or --disable-Singular was given. |
---|
1263 | if test "${enable_Singular+set}" = set; then |
---|
1264 | enableval="$enable_Singular" |
---|
1265 | : |
---|
1266 | fi |
---|
1267 | |
---|
1268 | |
---|
1269 | # Check whether --with-MP or --without-MP was given. |
---|
1270 | if test "${with_MP+set}" = set; then |
---|
1271 | withval="$with_MP" |
---|
1272 | : |
---|
1273 | fi |
---|
1274 | |
---|
1275 | # Check whether --with-factory or --without-factory was given. |
---|
1276 | if test "${with_factory+set}" = set; then |
---|
1277 | withval="$with_factory" |
---|
1278 | : |
---|
1279 | fi |
---|
1280 | |
---|
1281 | # Check whether --with-libfac or --without-libfac was given. |
---|
1282 | if test "${with_libfac+set}" = set; then |
---|
1283 | withval="$with_libfac" |
---|
1284 | : |
---|
1285 | fi |
---|
1286 | |
---|
1287 | # Check whether --with-gmp or --without-gmp was given. |
---|
1288 | if test "${with_gmp+set}" = set; then |
---|
1289 | withval="$with_gmp" |
---|
1290 | : |
---|
1291 | fi |
---|
1292 | |
---|
1293 | |
---|
1294 | echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6 |
---|
1295 | if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then |
---|
1296 | if test "$ac_smallgmp_ok" != yes && \ |
---|
1297 | test "$ac_gmp_ok" != yes && \ |
---|
1298 | (test "$with_apint" = smallgmp || test "${with_apint+set}" != set); then |
---|
1299 | enable_smallgmp=yes |
---|
1300 | else |
---|
1301 | enable_smallgmp=no |
---|
1302 | fi |
---|
1303 | fi |
---|
1304 | if test "$enable_smallgmp" = yes && test -d smallgmp; then |
---|
1305 | echo "$ac_t""yes" 1>&6 |
---|
1306 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
1307 | enable_smallgmp=yes |
---|
1308 | ac_will_have_gmp=yes |
---|
1309 | else |
---|
1310 | echo "$ac_t""no" 1>&6 |
---|
1311 | if test "$enable_smallgmp" = yes && test ! -d smallgmp; then |
---|
1312 | echo "configure: warning: Did not find smallgmp subdir" 1>&2 |
---|
1313 | fi |
---|
1314 | enable_smallgmp=no |
---|
1315 | fi |
---|
1316 | if test "$ac_gmp_ok" != yes && \ |
---|
1317 | test "$ac_smallgmp_ok" != yes && \ |
---|
1318 | test "$enable_smallgmp" != yes; then |
---|
1319 | echo "configure: warning: Would rather have gmp or smallgmp to build libs and Singular" 1>&2 |
---|
1320 | ac_configure_args="$ac_configure_args --disable-gmp" |
---|
1321 | else |
---|
1322 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
1323 | fi |
---|
1324 | |
---|
1325 | echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6 |
---|
1326 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
1327 | if test "$with_MP" != no && test "$ac_MP_ok" != yes; then |
---|
1328 | enable_MP=yes |
---|
1329 | else |
---|
1330 | enable_MP=no |
---|
1331 | fi |
---|
1332 | fi |
---|
1333 | if test "$enable_MP" = yes && test -d MP; then |
---|
1334 | if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
1335 | echo "$ac_t""yes" 1>&6 |
---|
1336 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
1337 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
1338 | else |
---|
1339 | echo "$ac_t""no" 1>&6 |
---|
1340 | echo "configure: warning: Can not build MP without having gmp" 1>&2 |
---|
1341 | enabl_MP=no |
---|
1342 | ac_configure_args="$ac_configure_args --disable-MP" |
---|
1343 | fi |
---|
1344 | else |
---|
1345 | echo "$ac_t""no" 1>&6 |
---|
1346 | if test "$enable_MP" = yes && test ! -d MP; then |
---|
1347 | echo "configure: warning: Did not find MP subdirectory" 1>&2 |
---|
1348 | fi |
---|
1349 | enable_MP=no |
---|
1350 | ac_configure_args="$ac_configure_args --disable-MP" |
---|
1351 | fi |
---|
1352 | |
---|
1353 | echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6 |
---|
1354 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
1355 | if test "$with_factory" != no && test "$ac_factory_ok" != yes; then |
---|
1356 | enable_factory=yes |
---|
1357 | else |
---|
1358 | enable_factory=no |
---|
1359 | fi |
---|
1360 | fi |
---|
1361 | if test "$enable_factory" = yes && test -d factory; then |
---|
1362 | if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
1363 | echo "$ac_t""yes" 1>&6 |
---|
1364 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
1365 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
1366 | else |
---|
1367 | echo "$ac_t""no" 1>&6 |
---|
1368 | echo "configure: warning: Can not build factory without having gmp" 1>&2 |
---|
1369 | enable_factory=no |
---|
1370 | ac_configure_args="$ac_configure_args --disable-factory" |
---|
1371 | fi |
---|
1372 | else |
---|
1373 | echo "$ac_t""no" 1>&6 |
---|
1374 | if test "$enable_factory" = yes && test ! -d factory; then |
---|
1375 | echo "configure: warning: Did not find factory subdirectory" 1>&2 |
---|
1376 | fi |
---|
1377 | enable_factory=no |
---|
1378 | ac_configure_args="$ac_configure_args --disable-factory" |
---|
1379 | fi |
---|
1380 | |
---|
1381 | echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6 |
---|
1382 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
1383 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes; then |
---|
1384 | enable_libfac=yes |
---|
1385 | else |
---|
1386 | enable_libfac=no |
---|
1387 | fi |
---|
1388 | fi |
---|
1389 | if test "$enable_libfac" = yes && test -d libfac; then |
---|
1390 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
1391 | echo "$ac_t""yes" 1>&6 |
---|
1392 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
1393 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
1394 | else |
---|
1395 | echo "$ac_t""no" 1>&6 |
---|
1396 | echo "configure: warning: Can not build libfac without factory" 1>&2 |
---|
1397 | enable_libfac=no |
---|
1398 | ac_configure_args="$ac_configure_args --disable-libfac" |
---|
1399 | fi |
---|
1400 | else |
---|
1401 | echo "$ac_t""no" 1>&6 |
---|
1402 | if test "$enable_libfac" = yes && test ! -d libfac; then |
---|
1403 | echo "configure: warning: Did not find libfac subdirectory" 1>&2 |
---|
1404 | fi |
---|
1405 | enable_libfac=no |
---|
1406 | ac_configure_args="$ac_configure_args --disable-libfac" |
---|
1407 | fi |
---|
1408 | |
---|
1409 | echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 |
---|
1410 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
1411 | if test "$with_Singular" != no; then |
---|
1412 | enable_Singular=yes |
---|
1413 | else |
---|
1414 | enable_Singular=no |
---|
1415 | fi |
---|
1416 | fi |
---|
1417 | if test "$enable_Singular" = yes && test -d Singular; then |
---|
1418 | echo "$ac_t""yes" 1>&6 |
---|
1419 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
1420 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
1421 | else |
---|
1422 | echo "$ac_t""no" 1>&6 |
---|
1423 | if test "$enable_Singular" = yes && test ! -d Singular; then |
---|
1424 | echo "configure: warning: Did not find Singular subdirectory" 1>&2 |
---|
1425 | fi |
---|
1426 | enable_Singular=no |
---|
1427 | ac_configure_args="$ac_configure_args --disable-Singular" |
---|
1428 | fi |
---|
1429 | |
---|
1430 | |
---|
1431 | echo $ac_n "checking wich apint package to use""... $ac_c" 1>&6 |
---|
1432 | if test "$with_apint" != gmp && \ |
---|
1433 | test "$with_apint" != smallgmp && \ |
---|
1434 | test "$with_apint" != buildin; then |
---|
1435 | if test "$ac_gmp_ok" = yes; then |
---|
1436 | with_apint=gmp |
---|
1437 | elif test "$ac_enable_smallgmp" = yes; then |
---|
1438 | with_apint=smallgmp |
---|
1439 | else |
---|
1440 | with_apint=buildin |
---|
1441 | fi |
---|
1442 | ac_configure_args="$ac_configure_args --with-apint=$with_apint" |
---|
1443 | fi |
---|
1444 | echo "$ac_t""${with_apint}" 1>&6 |
---|
1445 | |
---|
1446 | echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 |
---|
1447 | if test "$with_MP" != no && test "$with_MP" != yes; then |
---|
1448 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
1449 | with_MP=yes |
---|
1450 | else |
---|
1451 | with_MP=no |
---|
1452 | fi |
---|
1453 | ac_configure_args="$ac_configure_args --with-MP=$with_MP" |
---|
1454 | fi |
---|
1455 | if test "$with_MP" = yes; then |
---|
1456 | echo "$ac_t""yes" 1>&6 |
---|
1457 | else |
---|
1458 | echo "$ac_t""no" 1>&6 |
---|
1459 | fi |
---|
1460 | |
---|
1461 | if test "$enable_MP" = yes; then |
---|
1462 | if test "${with_apint}" = smallgmp; then |
---|
1463 | ac_configure_args="$ac_configure_args --with-default_apreal=none" |
---|
1464 | elif test "${with_apint}" = buildin; then |
---|
1465 | ac_configure_args="$ac_configure_args --with-default_apreal=none --with-default-apint=none" |
---|
1466 | fi |
---|
1467 | fi |
---|
1468 | |
---|
1469 | echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 |
---|
1470 | if test "$with_factory" != no && test "$with_factory" != yes; then |
---|
1471 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
1472 | with_factory=yes |
---|
1473 | else |
---|
1474 | with_factory=no |
---|
1475 | fi |
---|
1476 | ac_configure_args="$ac_configure_args --with-factory=$with_factory" |
---|
1477 | fi |
---|
1478 | if test "$with_factory" = yes; then |
---|
1479 | echo "$ac_t""yes" 1>&6 |
---|
1480 | else |
---|
1481 | echo "$ac_t""no" 1>&6 |
---|
1482 | fi |
---|
1483 | |
---|
1484 | echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 |
---|
1485 | if test "$with_libfac" != no && test "$with_libfac" != yes; then |
---|
1486 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
1487 | with_libfac=yes |
---|
1488 | else |
---|
1489 | with_libfac=no |
---|
1490 | fi |
---|
1491 | ac_configure_args="$ac_configure_args --with-libfac=$with_libfac" |
---|
1492 | fi |
---|
1493 | if test "$with_libfac" = yes; then |
---|
1494 | echo "$ac_t""yes" 1>&6 |
---|
1495 | else |
---|
1496 | echo "$ac_t""no" 1>&6 |
---|
1497 | fi |
---|
1498 | |
---|
1499 | echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6 |
---|
1500 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
1501 | if test "$enable_Singular" = yes; then |
---|
1502 | with_Singular=yes |
---|
1503 | else |
---|
1504 | with_Singular=no |
---|
1505 | fi |
---|
1506 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
1507 | fi |
---|
1508 | |
---|
1509 | if test "$with_Singular" != no; then |
---|
1510 | echo "$ac_t""yes" 1>&6 |
---|
1511 | else |
---|
1512 | echo "$ac_t""no" 1>&6 |
---|
1513 | fi |
---|
1514 | |
---|
1515 | if test -d smallgmp; then |
---|
1516 | SUBDIRS="smallgmp" |
---|
1517 | fi |
---|
1518 | if test -d MP; then |
---|
1519 | SUBDIRS="$SUBDIRS MP" |
---|
1520 | fi |
---|
1521 | if test -d factory; then |
---|
1522 | SUBDIRS="$SUBDIRS factory" |
---|
1523 | fi |
---|
1524 | if test -d libfac; then |
---|
1525 | SUBDIRS="$SUBDIRS libfac" |
---|
1526 | fi |
---|
1527 | if test -d Singular; then |
---|
1528 | SUBDIRS="$SUBDIRS Singular" |
---|
1529 | fi |
---|
1530 | |
---|
1531 | |
---|
1532 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1533 | set dummy ${MAKE-make}; ac_make=$2 |
---|
1534 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1535 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1536 | else |
---|
1537 | cat > conftestmake <<\EOF |
---|
1538 | all: |
---|
1539 | @echo 'ac_maketemp="${MAKE}"' |
---|
1540 | EOF |
---|
1541 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1542 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1543 | if test -n "$ac_maketemp"; then |
---|
1544 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1545 | else |
---|
1546 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1547 | fi |
---|
1548 | rm -f conftestmake |
---|
1549 | fi |
---|
1550 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1551 | echo "$ac_t""yes" 1>&6 |
---|
1552 | SET_MAKE= |
---|
1553 | else |
---|
1554 | echo "$ac_t""no" 1>&6 |
---|
1555 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1556 | fi |
---|
1557 | |
---|
1558 | |
---|
1559 | |
---|
1560 | subdirs="$CONFIG_SUBDIRS" |
---|
1561 | |
---|
1562 | |
---|
1563 | trap '' 1 2 15 |
---|
1564 | cat > confcache <<\EOF |
---|
1565 | # This file is a shell script that caches the results of configure |
---|
1566 | # tests run on this system so they can be shared between configure |
---|
1567 | # scripts and configure runs. It is not useful on other systems. |
---|
1568 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1569 | # |
---|
1570 | # By default, configure uses ./config.cache as the cache file, |
---|
1571 | # creating it if it does not exist already. You can give configure |
---|
1572 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1573 | # what configure does when it calls configure scripts in |
---|
1574 | # subdirectories, so they share the cache. |
---|
1575 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1576 | # config.status only pays attention to the cache file if you give it the |
---|
1577 | # --recheck option to rerun configure. |
---|
1578 | # |
---|
1579 | EOF |
---|
1580 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1581 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1582 | (set) 2>&1 | |
---|
1583 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
---|
1584 | >> confcache |
---|
1585 | if cmp -s $cache_file confcache; then |
---|
1586 | : |
---|
1587 | else |
---|
1588 | if test -w $cache_file; then |
---|
1589 | echo "updating cache $cache_file" |
---|
1590 | cat confcache > $cache_file |
---|
1591 | else |
---|
1592 | echo "not updating unwritable cache $cache_file" |
---|
1593 | fi |
---|
1594 | fi |
---|
1595 | rm -f confcache |
---|
1596 | |
---|
1597 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1598 | |
---|
1599 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1600 | # Let make expand exec_prefix. |
---|
1601 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1602 | |
---|
1603 | # Any assignment to VPATH causes Sun make to only execute |
---|
1604 | # the first set of double-colon rules, so remove it if not needed. |
---|
1605 | # If there is a colon in the path, we need to keep it. |
---|
1606 | if test "x$srcdir" = x.; then |
---|
1607 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1608 | fi |
---|
1609 | |
---|
1610 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1611 | |
---|
1612 | # Transform confdefs.h into DEFS. |
---|
1613 | # Protect against shell expansion while executing Makefile rules. |
---|
1614 | # Protect against Makefile macro expansion. |
---|
1615 | cat > conftest.defs <<\EOF |
---|
1616 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
1617 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
1618 | s%\[%\\&%g |
---|
1619 | s%\]%\\&%g |
---|
1620 | s%\$%$$%g |
---|
1621 | EOF |
---|
1622 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
1623 | rm -f conftest.defs |
---|
1624 | |
---|
1625 | |
---|
1626 | # Without the "./", some shells look in PATH for config.status. |
---|
1627 | : ${CONFIG_STATUS=./config.status} |
---|
1628 | |
---|
1629 | echo creating $CONFIG_STATUS |
---|
1630 | rm -f $CONFIG_STATUS |
---|
1631 | cat > $CONFIG_STATUS <<EOF |
---|
1632 | #! /bin/sh |
---|
1633 | # Generated automatically by configure. |
---|
1634 | # Run this file to recreate the current configuration. |
---|
1635 | # This directory was configured as follows, |
---|
1636 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1637 | # |
---|
1638 | # $0 $ac_configure_args |
---|
1639 | # |
---|
1640 | # Compiler output produced by configure, useful for debugging |
---|
1641 | # configure, is in ./config.log if it exists. |
---|
1642 | |
---|
1643 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1644 | for ac_option |
---|
1645 | do |
---|
1646 | case "\$ac_option" in |
---|
1647 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1648 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1649 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1650 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1651 | echo "$CONFIG_STATUS generated by autoconf version 2.9" |
---|
1652 | exit 0 ;; |
---|
1653 | -help | --help | --hel | --he | --h) |
---|
1654 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1655 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1656 | esac |
---|
1657 | done |
---|
1658 | |
---|
1659 | ac_given_srcdir=$srcdir |
---|
1660 | |
---|
1661 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1662 | EOF |
---|
1663 | cat >> $CONFIG_STATUS <<EOF |
---|
1664 | |
---|
1665 | # Protect against being on the right side of a sed subst in config.status. |
---|
1666 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1667 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1668 | $ac_vpsub |
---|
1669 | $extrasub |
---|
1670 | s%@CFLAGS@%$CFLAGS%g |
---|
1671 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1672 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1673 | s%@DEFS@%$DEFS%g |
---|
1674 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1675 | s%@LIBS@%$LIBS%g |
---|
1676 | s%@exec_prefix@%$exec_prefix%g |
---|
1677 | s%@prefix@%$prefix%g |
---|
1678 | s%@program_transform_name@%$program_transform_name%g |
---|
1679 | s%@bindir@%$bindir%g |
---|
1680 | s%@sbindir@%$sbindir%g |
---|
1681 | s%@libexecdir@%$libexecdir%g |
---|
1682 | s%@datadir@%$datadir%g |
---|
1683 | s%@sysconfdir@%$sysconfdir%g |
---|
1684 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1685 | s%@localstatedir@%$localstatedir%g |
---|
1686 | s%@libdir@%$libdir%g |
---|
1687 | s%@includedir@%$includedir%g |
---|
1688 | s%@oldincludedir@%$oldincludedir%g |
---|
1689 | s%@infodir@%$infodir%g |
---|
1690 | s%@mandir@%$mandir%g |
---|
1691 | s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g |
---|
1692 | s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g |
---|
1693 | s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g |
---|
1694 | s%@host@%$host%g |
---|
1695 | s%@host_alias@%$host_alias%g |
---|
1696 | s%@host_cpu@%$host_cpu%g |
---|
1697 | s%@host_vendor@%$host_vendor%g |
---|
1698 | s%@host_os@%$host_os%g |
---|
1699 | s%@CC@%$CC%g |
---|
1700 | s%@CPP@%$CPP%g |
---|
1701 | s%@SET_MAKE@%$SET_MAKE%g |
---|
1702 | s%@SUBDIRS@%$SUBDIRS%g |
---|
1703 | s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g |
---|
1704 | s%@subdirs@%$subdirs%g |
---|
1705 | |
---|
1706 | CEOF |
---|
1707 | EOF |
---|
1708 | cat >> $CONFIG_STATUS <<EOF |
---|
1709 | |
---|
1710 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1711 | EOF |
---|
1712 | cat >> $CONFIG_STATUS <<\EOF |
---|
1713 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1714 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
---|
1715 | case "$ac_file" in |
---|
1716 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
---|
1717 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1718 | *) ac_file_in="${ac_file}.in" ;; |
---|
1719 | esac |
---|
1720 | |
---|
1721 | # Adjust relative srcdir, etc. for subdirectories. |
---|
1722 | |
---|
1723 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1724 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1725 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1726 | # The file is in a subdirectory. |
---|
1727 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1728 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1729 | # A "../" for each directory in $ac_dir_suffix. |
---|
1730 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1731 | else |
---|
1732 | ac_dir_suffix= ac_dots= |
---|
1733 | fi |
---|
1734 | |
---|
1735 | case "$ac_given_srcdir" in |
---|
1736 | .) srcdir=. |
---|
1737 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1738 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1739 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1740 | *) # Relative path. |
---|
1741 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1742 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1743 | esac |
---|
1744 | |
---|
1745 | echo creating "$ac_file" |
---|
1746 | rm -f "$ac_file" |
---|
1747 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1748 | case "$ac_file" in |
---|
1749 | *Makefile*) ac_comsub="1i\\ |
---|
1750 | # $configure_input" ;; |
---|
1751 | *) ac_comsub= ;; |
---|
1752 | esac |
---|
1753 | sed -e "$ac_comsub |
---|
1754 | s%@configure_input@%$configure_input%g |
---|
1755 | s%@srcdir@%$srcdir%g |
---|
1756 | s%@top_srcdir@%$top_srcdir%g |
---|
1757 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
---|
1758 | fi; done |
---|
1759 | rm -f conftest.subs |
---|
1760 | |
---|
1761 | |
---|
1762 | |
---|
1763 | exit 0 |
---|
1764 | EOF |
---|
1765 | chmod +x $CONFIG_STATUS |
---|
1766 | rm -fr confdefs* $ac_clean_files |
---|
1767 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1768 | |
---|
1769 | if test "$no_recursion" != yes; then |
---|
1770 | |
---|
1771 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
1772 | ac_sub_configure_args= |
---|
1773 | ac_prev= |
---|
1774 | for ac_arg in $ac_configure_args; do |
---|
1775 | if test -n "$ac_prev"; then |
---|
1776 | ac_prev= |
---|
1777 | continue |
---|
1778 | fi |
---|
1779 | case "$ac_arg" in |
---|
1780 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
1781 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
1782 | ac_prev=cache_file ;; |
---|
1783 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
1784 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
1785 | ;; |
---|
1786 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1787 | ac_prev=srcdir ;; |
---|
1788 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1789 | ;; |
---|
1790 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
1791 | esac |
---|
1792 | done |
---|
1793 | |
---|
1794 | for ac_config_dir in $CONFIG_SUBDIRS; do |
---|
1795 | |
---|
1796 | # Do not complain, so a configure script can configure whichever |
---|
1797 | # parts of a large source tree are present. |
---|
1798 | if test ! -d $srcdir/$ac_config_dir; then |
---|
1799 | continue |
---|
1800 | fi |
---|
1801 | |
---|
1802 | echo configuring in $ac_config_dir |
---|
1803 | |
---|
1804 | case "$srcdir" in |
---|
1805 | .) ;; |
---|
1806 | *) |
---|
1807 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
1808 | else |
---|
1809 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
1810 | fi |
---|
1811 | ;; |
---|
1812 | esac |
---|
1813 | |
---|
1814 | ac_popdir=`pwd` |
---|
1815 | cd $ac_config_dir |
---|
1816 | |
---|
1817 | case "$srcdir" in |
---|
1818 | .) # No --srcdir option. We are building in place. |
---|
1819 | ac_sub_srcdir=$srcdir ;; |
---|
1820 | /*) # Absolute path. |
---|
1821 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
1822 | *) # Relative path. |
---|
1823 | ac_sub_srcdir=../$srcdir/$ac_config_dir ;; |
---|
1824 | esac |
---|
1825 | |
---|
1826 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
1827 | if test -f $ac_sub_srcdir/configure; then |
---|
1828 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
1829 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
1830 | ac_sub_configure=$ac_configure |
---|
1831 | else |
---|
1832 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
1833 | ac_sub_configure= |
---|
1834 | fi |
---|
1835 | |
---|
1836 | # The recursion is here. |
---|
1837 | if test -n "$ac_sub_configure"; then |
---|
1838 | |
---|
1839 | # Make the cache file name correct relative to the subdirectory. |
---|
1840 | # A "../" for each directory in /$ac_config_dir. |
---|
1841 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
1842 | case "$cache_file" in |
---|
1843 | /*) ac_sub_cache_file=$cache_file ;; |
---|
1844 | *) # Relative path. |
---|
1845 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
1846 | esac |
---|
1847 | |
---|
1848 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
1849 | # The eval makes quoting arguments work. |
---|
1850 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
1851 | then : |
---|
1852 | else |
---|
1853 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
1854 | fi |
---|
1855 | fi |
---|
1856 | |
---|
1857 | cd $ac_popdir |
---|
1858 | done |
---|
1859 | fi |
---|
1860 | |
---|