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