[45e35b] | 1 | AC_DEFUN([SING_CHECK_ARITH_RINGS], |
---|
| 2 | [ |
---|
| 3 | AC_MSG_CHECKING(whether arithmetical rings should be enabled) |
---|
| 4 | |
---|
| 5 | AC_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 | |
---|
| 15 | if test x$ENABLE_RINGS = xyes; then |
---|
| 16 | AC_DEFINE(HAVE_RINGS,1,Enable arithmetical rings) |
---|
| 17 | fi |
---|
| 18 | |
---|
| 19 | AM_CONDITIONAL([ENABLE_RINGS],[test x$ENABLE_RINGS = xyes]) |
---|
| 20 | AC_MSG_RESULT($ENABLE_RINGS) |
---|
| 21 | ]) |
---|
| 22 | |
---|
| 23 | AC_DEFUN([SING_CHECK_FACTORY], |
---|
| 24 | [ |
---|
| 25 | AC_MSG_CHECKING(whether factory should be enabled) |
---|
| 26 | |
---|
| 27 | AC_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 | |
---|
| 37 | if test x$ENABLE_FACTORY = xyes; then |
---|
| 38 | AC_DEFINE(HAVE_FACTORY,1,Enable factory) |
---|
| 39 | fi |
---|
| 40 | |
---|
| 41 | AM_CONDITIONAL([ENABLE_FACTORY],[test x$ENABLE_FACTORY = xyes]) |
---|
| 42 | AC_MSG_RESULT($ENABLE_FACTORY) |
---|
| 43 | ]) |
---|
| 44 | |
---|
| 45 | AC_DEFUN([SING_CHECK_PLURAL], |
---|
| 46 | [ |
---|
| 47 | AC_MSG_CHECKING(whether non-commutative subsystem should be enabled) |
---|
| 48 | |
---|
| 49 | AC_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 | |
---|
| 59 | if test x$ENABLE_PLURAL = xyes; then |
---|
| 60 | AC_DEFINE(HAVE_PLURAL,1,Enable non-commutative subsystem) |
---|
| 61 | fi |
---|
| 62 | |
---|
| 63 | AM_CONDITIONAL([ENABLE_PLURAL],[test x$ENABLE_PLURAL = xyes]) |
---|
| 64 | |
---|
| 65 | AC_MSG_RESULT($ENABLE_PLURAL) |
---|
| 66 | ]) |
---|