source: git/m4/options.m4 @ 45e35b

spielwiese
Last change on this file since 45e35b was 45e35b, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
further fixes to build system - merged arithrings.m4 and plural.m4 into options.m4 - added new macro SING_CHECK_FACTORY in options.m4 - invoke SING_CHECK_FACTORY IN libpolys/configure.ac - fixed the output of the macros in options.m4 - removed readcf.cc from the repo because it is generated - generate factory.h and factoryconf.h in factory
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[45e35b]1AC_DEFUN([SING_CHECK_ARITH_RINGS],
2[
3AC_MSG_CHECKING(whether arithmetical rings should be enabled)
4
5AC_ARG_ENABLE(arith-rings,
6[  --enable-arith-rings Enable arithmetical rings
7],
8[if test $enableval = yes; then
9     ENABLE_RINGS="yes"
10 else
11     ENABLE_RINGS="no"
12 fi
13],[ENABLE_RINGS="yes"])
14
15if test x$ENABLE_RINGS = xyes; then
16  AC_DEFINE(HAVE_RINGS,1,Enable arithmetical rings)
17fi
18
19AM_CONDITIONAL([ENABLE_RINGS],[test x$ENABLE_RINGS = xyes])
20AC_MSG_RESULT($ENABLE_RINGS)
21])
22
23AC_DEFUN([SING_CHECK_FACTORY],
24[
25AC_MSG_CHECKING(whether factory should be enabled)
26
27AC_ARG_ENABLE(factory,
28[  --enable-factory Enable factory
29],
30[if test $enableval = yes; then
31     ENABLE_FACTORY="yes"
32 else
33     ENABLE_FACTORY="no"
34 fi
35],[ENABLE_FACTORY="yes"])
36
37if test x$ENABLE_FACTORY = xyes; then
38  AC_DEFINE(HAVE_FACTORY,1,Enable factory)
39fi
40
41AM_CONDITIONAL([ENABLE_FACTORY],[test x$ENABLE_FACTORY = xyes])
42AC_MSG_RESULT($ENABLE_FACTORY)
43])
44
45AC_DEFUN([SING_CHECK_PLURAL],
46[
47AC_MSG_CHECKING(whether non-commutative subsystem should be enabled)
48
49AC_ARG_ENABLE(plural,
50[  --enable-plural Enable non-commutative subsystem
51],
52[if test $enableval = yes; then
53     ENABLE_PLURAL="yes"
54 else
55     ENABLE_PLURAL="no"
56 fi
57],[ENABLE_PLURAL="yes"])
58
59if test x$ENABLE_PLURAL = xyes; then
60  AC_DEFINE(HAVE_PLURAL,1,Enable non-commutative subsystem)
61fi
62
63AM_CONDITIONAL([ENABLE_PLURAL],[test x$ENABLE_PLURAL = xyes])
64
65AC_MSG_RESULT($ENABLE_PLURAL)
66])
Note: See TracBrowser for help on using the repository browser.