1 | dnl Process this file with autoconf to produce a configure script |
---|
2 | AC_INIT(Singular/matpol.h) |
---|
3 | AC_PREFIX_DEFAULT(`pwd`) |
---|
4 | |
---|
5 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
6 | dnl Version business -- set these here |
---|
7 | dnl |
---|
8 | # make them to env variables |
---|
9 | # pass them indirectly to subsequent configures |
---|
10 | export SINGULAR_MAJOR_VERSION=1 |
---|
11 | export SINGULAR_MINOR_VERSION=2 |
---|
12 | export SINGULAR_SUB_VERSION=0 |
---|
13 | export SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}" |
---|
14 | export VERSION_DATE="June 1998" |
---|
15 | |
---|
16 | dnl substitue them into the Makefiles |
---|
17 | AC_SUBST(SINGULAR_MAJOR_VERSION) |
---|
18 | AC_SUBST(SINGULAR_MINOR_VERSION) |
---|
19 | AC_SUBST(SINGULAR_SUB_VERSION) |
---|
20 | |
---|
21 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
22 | dnl those are needed to check for libs and headers, later on |
---|
23 | dnl |
---|
24 | AC_PROG_CC |
---|
25 | AC_PROG_CPP |
---|
26 | AC_AIX |
---|
27 | |
---|
28 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
29 | dnl exec_prefix, bindir, libdir, includedir to some sensible values |
---|
30 | dnl |
---|
31 | |
---|
32 | # expand prefix and pass it to subsequent configures |
---|
33 | test "x$prefix" = xNONE && prefix=${ac_default_prefix}; \ |
---|
34 | ac_configure_args="$ac_configure_args --prefix=${prefix}" |
---|
35 | |
---|
36 | # expand exec_prefix |
---|
37 | if test "x$exec_prefix" = xNONE; then |
---|
38 | if test -x "singuname.sh"; then |
---|
39 | if (singuname.sh >/dev/null 2>&1) then |
---|
40 | exec_prefix=${prefix}/`singuname.sh` |
---|
41 | ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}" |
---|
42 | else |
---|
43 | AC_MSG_ERROR(Unknown architecture: Check singuname.sh) |
---|
44 | fi |
---|
45 | else |
---|
46 | AC_MSG_ERROR(Need singuname.sh) |
---|
47 | fi |
---|
48 | fi |
---|
49 | |
---|
50 | # expand bindir |
---|
51 | test "x$bindir" = 'x${exec_prefix}/bin' && \ |
---|
52 | bindir="${exec_prefix}/bin" ; \ |
---|
53 | ac_configure_args="$ac_configure_args --bindir=${bindir}" |
---|
54 | |
---|
55 | # construct name of installed Singular executable |
---|
56 | export SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION} |
---|
57 | AC_SUBST(SINGULAR) |
---|
58 | |
---|
59 | # expand libdir |
---|
60 | test "x$libdir" = 'x${exec_prefix}/lib' && \ |
---|
61 | libdir="${exec_prefix}/lib/${SINGULAR_VERSION}" ; \ |
---|
62 | ac_configure_args="$ac_configure_args --libdir=${libdir}" |
---|
63 | |
---|
64 | # expand includedir |
---|
65 | test "x$includedir" = 'x${prefix}/include' && \ |
---|
66 | includedir="${exec_prefix}/include/${SINGULAR_VERSION}" ; \ |
---|
67 | ac_configure_args="$ac_configure_args --includedir=${includedir}" |
---|
68 | |
---|
69 | # add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure |
---|
70 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
71 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
72 | |
---|
73 | |
---|
74 | AC_MSG_CHECKING(whether _AIX is defined) |
---|
75 | AC_CACHE_VAL(ac_cv_is_aix, |
---|
76 | AC_EGREP_CPP(yes, |
---|
77 | [#ifdef _AIX |
---|
78 | yes |
---|
79 | #endif |
---|
80 | ], ac_cv_is_aix=yes, ac_cv_is_aix=no, 1)) |
---|
81 | if test "$ac_cv_is_aix" = yes; then |
---|
82 | AC_MSG_RESULT(yes) |
---|
83 | else |
---|
84 | AC_MSG_RESULT(no) |
---|
85 | fi |
---|
86 | |
---|
87 | |
---|
88 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
89 | dnl check for various libraries and headers |
---|
90 | dnl |
---|
91 | AC_CHECK_LIB(m, atof) |
---|
92 | AC_CHECK_LIB(bsd, socket) |
---|
93 | AC_CHECK_LIB(socket, listen) |
---|
94 | AC_CHECK_LIB(nsl, gethostbyname) |
---|
95 | AC_CHECK_LIB(gmp, mpq_init) |
---|
96 | AC_CHECK_LIB(smallgmp, mpz_init) |
---|
97 | AC_CHECK_LIB(MP, IMP_PutGmpInt) |
---|
98 | AC_CHECK_LIB(MPT, MPT_GetTree) |
---|
99 | AC_CHECK_LIB(singcf, atof) |
---|
100 | AC_CHECK_LIB(singfac, atof) |
---|
101 | |
---|
102 | AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h MPT.h factory.h factor.h) |
---|
103 | |
---|
104 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
105 | test "$ac_cv_header_gmp_h" = yes; then |
---|
106 | ac_gmp_ok=yes |
---|
107 | fi |
---|
108 | |
---|
109 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
110 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
111 | test "$ac_cv_header_gmp_h" = yes; then |
---|
112 | ac_smallgmp_ok=yes |
---|
113 | fi |
---|
114 | |
---|
115 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
116 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
117 | test "$ac_cv_header_MP_h" = yes && \ |
---|
118 | test "$ac_cv_header_MPT_h" = yes; then |
---|
119 | ac_MP_ok=yes |
---|
120 | fi |
---|
121 | |
---|
122 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
123 | test "$ac_cv_header_factory_h" = yes; then |
---|
124 | ac_factory_ok=yes |
---|
125 | fi |
---|
126 | |
---|
127 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
128 | test "$ac_cv_header_factor_h" = yes; then |
---|
129 | ac_libfac_ok=yes |
---|
130 | fi |
---|
131 | |
---|
132 | |
---|
133 | |
---|
134 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
135 | dnl Check whether or not to built various packages |
---|
136 | dnl |
---|
137 | AC_ARG_ENABLE(smallgmp, \ |
---|
138 | [ --enable-PACKAGE configure and build PACKAGE |
---|
139 | --disable-PACKAGE do not configure and build PACKAGE |
---|
140 | where PACKAGE can be: |
---|
141 | smallgmp minimal version of gmp written in C only]) |
---|
142 | AC_ARG_ENABLE(gmp, \ |
---|
143 | [ gmp Gnu Multiple Precision package]) |
---|
144 | AC_ARG_ENABLE(MP, \ |
---|
145 | [ MP Multi Protocol library]) |
---|
146 | AC_ARG_ENABLE(factory, \ |
---|
147 | [ factory polynomial factorization library]) |
---|
148 | AC_ARG_ENABLE(libfac, \ |
---|
149 | [ libfac char set and modp poly factorization library]) |
---|
150 | AC_ARG_ENABLE(sgroup, \ |
---|
151 | [ sgroup numerical semigroup computations]) |
---|
152 | AC_ARG_ENABLE(Singular, \ |
---|
153 | [ Singular CAS for Polynomial Computations]) |
---|
154 | |
---|
155 | AC_ARG_WITH(MP,\ |
---|
156 | [ --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
157 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
158 | where PACKAGE can be: |
---|
159 | MP Multi Protocol library]) |
---|
160 | AC_ARG_WITH(factory, \ |
---|
161 | [ factory polynomial factorization library]) |
---|
162 | AC_ARG_WITH(libfac, \ |
---|
163 | [ libfac char set and modp poly factorization library]) |
---|
164 | AC_ARG_WITH(gmp, \ |
---|
165 | [ --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
166 | where PACKAGE can be gmp or smallgmp]) |
---|
167 | |
---|
168 | AC_MSG_CHECKING(whether to configure and build gmp lib) |
---|
169 | if test "$enable_gmp" != yes && test "$enable_gmp" != no; then |
---|
170 | if test "$ac_gmp_ok" != yes && test -d gmp; then |
---|
171 | AC_MSG_RESULT(yes) |
---|
172 | enable_gmp=yes |
---|
173 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
174 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
175 | else |
---|
176 | AC_MSG_RESULT(no) |
---|
177 | enable_gmp=no |
---|
178 | fi |
---|
179 | elif test "$enable_gmp" = yes; then |
---|
180 | if test ! -d gmp; then |
---|
181 | AC_MSG_RESULT(no) |
---|
182 | AC_MSG_ERROR(Can not find gmp subdir) |
---|
183 | else |
---|
184 | AC_MSG_RESULT(yes) |
---|
185 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
186 | fi |
---|
187 | else |
---|
188 | AC_MSG_RESULT(no) |
---|
189 | fi |
---|
190 | |
---|
191 | AC_MSG_CHECKING(whether to configure and build smallgmp lib) |
---|
192 | if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then |
---|
193 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
194 | test "$enable_gmp" != yes && test -d smallgmp; then |
---|
195 | AC_MSG_RESULT(yes) |
---|
196 | enable_smallgmp=yes |
---|
197 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
198 | ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp" |
---|
199 | else |
---|
200 | AC_MSG_RESULT(no) |
---|
201 | enable_smallgmp=no |
---|
202 | fi |
---|
203 | elif test "$enable_smallgmp" = yes; then |
---|
204 | if test ! -d smallgmp; then |
---|
205 | AC_MSG_RESULT(no) |
---|
206 | AC_MSG_ERROR(Can not find smallgmp subdir) |
---|
207 | else |
---|
208 | AC_MSG_RESULT(yes) |
---|
209 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
210 | if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
211 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
212 | fi |
---|
213 | fi |
---|
214 | else |
---|
215 | AC_MSG_RESULT(${enable_smallgmp}) |
---|
216 | fi |
---|
217 | |
---|
218 | # Check whether we have at least one of smallgmp or gmp |
---|
219 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
220 | test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then |
---|
221 | AC_MSG_ERROR(can neither find nor built gmp or smallgmp) |
---|
222 | fi |
---|
223 | |
---|
224 | # Check whether we need to cheat subsequent configures with --enable-gmp |
---|
225 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then |
---|
226 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
227 | fi |
---|
228 | |
---|
229 | AC_MSG_CHECKING(whether to configure and build MP lib) |
---|
230 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
231 | if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \ |
---|
232 | (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then |
---|
233 | AC_MSG_RESULT(yes) |
---|
234 | enable_MP=yes |
---|
235 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
236 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
237 | else |
---|
238 | AC_MSG_RESULT(no) |
---|
239 | enable_MP=no |
---|
240 | fi |
---|
241 | elif test "$enable_MP" = yes; then |
---|
242 | if test ! -d MP; then |
---|
243 | AC_MSG_RESULT(no) |
---|
244 | AC_MSG_ERROR(can not build MP without MP directory) |
---|
245 | fi |
---|
246 | if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
247 | AC_MSG_RESULT(yes) |
---|
248 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
249 | else |
---|
250 | AC_MSG_RESULT(no) |
---|
251 | AC_MSG_ERROR(can not build MP without gmp) |
---|
252 | fi |
---|
253 | else |
---|
254 | AC_MSG_RESULT(no) |
---|
255 | fi |
---|
256 | |
---|
257 | |
---|
258 | AC_MSG_CHECKING(whether to configure and build factory lib) |
---|
259 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
260 | if test "$with_factory" != no && test "$ac_factory_ok" != yes && \ |
---|
261 | test -d factory; then |
---|
262 | enable_factory=yes |
---|
263 | AC_MSG_RESULT(yes) |
---|
264 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
265 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
266 | else |
---|
267 | enable_factory=no |
---|
268 | AC_MSG_RESULT(no) |
---|
269 | fi |
---|
270 | elif test "$enable_factory" = yes; then |
---|
271 | if test -d factory; then |
---|
272 | AC_MSG_RESULT(yes) |
---|
273 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
274 | else |
---|
275 | AC_MSG_RESULT(no) |
---|
276 | AC_MSG_ERROR(can not build factory without factory directory) |
---|
277 | fi |
---|
278 | else |
---|
279 | AC_MSG_RESULT(no) |
---|
280 | fi |
---|
281 | |
---|
282 | AC_MSG_CHECKING(whether to configure and build libfac lib) |
---|
283 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
284 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \ |
---|
285 | test -d libfac && \ |
---|
286 | (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then |
---|
287 | enable_libfac=yes |
---|
288 | AC_MSG_RESULT(yes) |
---|
289 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
290 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
291 | else |
---|
292 | enable_libfac=no |
---|
293 | AC_MSG_RESULT(no) |
---|
294 | fi |
---|
295 | elif test "$enable_libfac" = yes; then |
---|
296 | if test ! -d libfac; then |
---|
297 | AC_MSG_RESULT(no) |
---|
298 | AC_MSG_ERROR(can not build libfac without libfac directory) |
---|
299 | fi |
---|
300 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
301 | AC_MSG_RESULT(yes) |
---|
302 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
303 | else |
---|
304 | AC_MSG_RESULT(no) |
---|
305 | AC_MSG_ERROR(Can not build libfac without factory) |
---|
306 | fi |
---|
307 | else |
---|
308 | AC_MSG_RESULT(no) |
---|
309 | fi |
---|
310 | |
---|
311 | AC_MSG_CHECKING(whether to configure and build sgroup lib) |
---|
312 | if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then |
---|
313 | if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \ |
---|
314 | test -d sgroup && \ |
---|
315 | (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
316 | enable_sgroup=yes |
---|
317 | AC_MSG_RESULT(yes) |
---|
318 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
319 | ac_configure_args="$ac_configure_args --enable-sgroup" |
---|
320 | else |
---|
321 | enable_sgroup=no |
---|
322 | AC_MSG_RESULT(no) |
---|
323 | fi |
---|
324 | elif test "$enable_sgroup" = yes; then |
---|
325 | if test ! -d sgroup; then |
---|
326 | AC_MSG_RESULT(no) |
---|
327 | AC_MSG_ERROR(can not build sgroup without sgroup directory) |
---|
328 | fi |
---|
329 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
330 | AC_MSG_RESULT(yes) |
---|
331 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
332 | else |
---|
333 | AC_MSG_RESULT(no) |
---|
334 | AC_MSG_ERROR(Can not build sgroup without MP) |
---|
335 | fi |
---|
336 | else |
---|
337 | AC_MSG_RESULT(no) |
---|
338 | fi |
---|
339 | |
---|
340 | |
---|
341 | AC_MSG_CHECKING(whether to configure and build Singular) |
---|
342 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
343 | if test "$with_Singular" != no && test -d Singular; then |
---|
344 | enable_Singular=yes |
---|
345 | AC_MSG_RESULT(yes) |
---|
346 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
347 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
348 | else |
---|
349 | enable_Singular=no |
---|
350 | AC_MSG_RESULT(no) |
---|
351 | fi |
---|
352 | elif test "$enable_Singular" = yes; then |
---|
353 | if test -d Singular; then |
---|
354 | AC_MSG_RESULT(yes) |
---|
355 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
356 | else |
---|
357 | AC_MSG_RESULT(no) |
---|
358 | AC_MSG_ERROR(can not build Singular without Singular directory) |
---|
359 | fi |
---|
360 | else |
---|
361 | AC_MSG_RESULT(no) |
---|
362 | fi |
---|
363 | |
---|
364 | |
---|
365 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
366 | dnl Check whether or not to use various packages |
---|
367 | dnl |
---|
368 | AC_MSG_CHECKING(wich apint package to use) |
---|
369 | if test "$with_apint" = gmp; then |
---|
370 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
371 | AC_MSG_RESULT(gmp) |
---|
372 | else |
---|
373 | AC_MSG_RESULT(none) |
---|
374 | AC_MSG_ERROR(can not use with gmp without finding or building it) |
---|
375 | fi |
---|
376 | elif test "$with_apint" = smallgmp; then |
---|
377 | if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then |
---|
378 | AC_MSG_RESULT(smallgmp) |
---|
379 | else |
---|
380 | AC_MSG_RESULT(none) |
---|
381 | AC_MSG_ERROR(can not use with smallgmp without finding or building it) |
---|
382 | fi |
---|
383 | elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then |
---|
384 | AC_MSG_RESULT(gmp) |
---|
385 | ac_configure_args="$ac_configure_args --with-apint=gmp" |
---|
386 | else |
---|
387 | AC_MSG_RESULT(smallgmp) |
---|
388 | ac_configure_args="$ac_configure_args --with-apint=smallgmp" |
---|
389 | fi |
---|
390 | |
---|
391 | AC_MSG_CHECKING(whether to use with MP) |
---|
392 | if test "$with_MP" = yes; then |
---|
393 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
394 | AC_MSG_RESULT(yes) |
---|
395 | else |
---|
396 | AC_MSG_RESULT(none) |
---|
397 | AC_MSG_ERROR(can not use with MP without finding or building it) |
---|
398 | fi |
---|
399 | elif test "$with_MP" = no; then |
---|
400 | AC_MSG_RESULT(no) |
---|
401 | elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
402 | AC_MSG_RESULT(yes) |
---|
403 | ac_configure_args="$ac_configure_args --with-MP" |
---|
404 | else |
---|
405 | AC_MSG_RESULT(no) |
---|
406 | ac_configure_args="$ac_configure_args --without-MP" |
---|
407 | fi |
---|
408 | |
---|
409 | AC_MSG_CHECKING(whether to use with factory) |
---|
410 | if test "$with_factory" = yes; then |
---|
411 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
412 | AC_MSG_RESULT(yes) |
---|
413 | else |
---|
414 | AC_MSG_RESULT(none) |
---|
415 | AC_MSG_ERROR(can not use with factory without finding or building it) |
---|
416 | fi |
---|
417 | elif test "$with_factory" = no; then |
---|
418 | AC_MSG_RESULT(no) |
---|
419 | elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
420 | AC_MSG_RESULT(yes) |
---|
421 | ac_configure_args="$ac_configure_args --with-factory" |
---|
422 | else |
---|
423 | AC_MSG_RESULT(no) |
---|
424 | ac_configure_args="$ac_configure_args --without-factory" |
---|
425 | fi |
---|
426 | |
---|
427 | AC_MSG_CHECKING(whether to use with libfac) |
---|
428 | if test "$with_libfac" = yes; then |
---|
429 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
430 | AC_MSG_RESULT(yes) |
---|
431 | else |
---|
432 | AC_MSG_RESULT(none) |
---|
433 | AC_MSG_ERROR(can not use with libfac without finding or building it) |
---|
434 | fi |
---|
435 | elif test "$with_libfac" = no; then |
---|
436 | AC_MSG_RESULT(no) |
---|
437 | elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
438 | AC_MSG_RESULT(yes) |
---|
439 | ac_configure_args="$ac_configure_args --with-libfac" |
---|
440 | else |
---|
441 | AC_MSG_RESULT(no) |
---|
442 | ac_configure_args="$ac_configure_args --without-libfac" |
---|
443 | fi |
---|
444 | |
---|
445 | |
---|
446 | AC_MSG_CHECKING(whether to use with Singular) |
---|
447 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
448 | if test "$enable_Singular" = yes; then |
---|
449 | with_Singular=yes |
---|
450 | else |
---|
451 | with_Singular=no |
---|
452 | fi |
---|
453 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
454 | fi |
---|
455 | |
---|
456 | if test "$with_Singular" != no; then |
---|
457 | AC_MSG_RESULT(yes) |
---|
458 | else |
---|
459 | AC_MSG_RESULT(no) |
---|
460 | fi |
---|
461 | |
---|
462 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
463 | dnl Check for known subdirs |
---|
464 | dnl |
---|
465 | if test -d smallgmp; then |
---|
466 | SUBDIRS="smallgmp" |
---|
467 | fi |
---|
468 | if test -d gmp; then |
---|
469 | SUBDIRS="gmp" |
---|
470 | fi |
---|
471 | if test -d MP; then |
---|
472 | SUBDIRS="$SUBDIRS MP" |
---|
473 | fi |
---|
474 | if test -d factory; then |
---|
475 | SUBDIRS="$SUBDIRS factory" |
---|
476 | fi |
---|
477 | if test -d libfac; then |
---|
478 | SUBDIRS="$SUBDIRS libfac" |
---|
479 | fi |
---|
480 | if test -d sgroup; then |
---|
481 | SUBDIRS="sgroup" |
---|
482 | fi |
---|
483 | if test -d Singular; then |
---|
484 | SUBDIRS="$SUBDIRS Singular" |
---|
485 | fi |
---|
486 | |
---|
487 | |
---|
488 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
489 | dnl Enough --wrap it up |
---|
490 | dnl |
---|
491 | AC_PROG_MAKE_SET |
---|
492 | AC_SUBST(SUBDIRS) |
---|
493 | AC_SUBST(CONFIG_SUBDIRS) |
---|
494 | AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS) |
---|
495 | |
---|
496 | AC_OUTPUT(Makefile doc/Makefile) |
---|