fieker-DuValspielwiese
Last change
on this file since d187ac was
8fe151,
checked in by Hans Schoenemann <hannes@…>, 9 years ago
|
fix MATHIC_LIBS
|
-
Property mode set to
100644
|
File size:
1011 bytes
|
Line | |
---|
1 | AC_DEFUN([LB_CHECK_MATHICGB], |
---|
2 | [ |
---|
3 | # |
---|
4 | AC_ARG_WITH(mathicgb, |
---|
5 | [AS_HELP_STRING( |
---|
6 | [--with-mathicgb=yes|no], |
---|
7 | [Use the MathicGB library. Default is no.] |
---|
8 | )], |
---|
9 | [], |
---|
10 | [with_mathicgb="no"] |
---|
11 | ) |
---|
12 | # |
---|
13 | # MathicGB |
---|
14 | dnl Checking these pre-requisites and adding them to libs is necessary |
---|
15 | dnl for some reason, at least on Cygwin. |
---|
16 | BACKUP_LIBS=${LIBS} |
---|
17 | AS_IF( [test "x$with_mathicgb" = xyes], |
---|
18 | [ |
---|
19 | AC_LANG_PUSH([C++]) |
---|
20 | AC_CHECK_LIB(memtailor, libmemtailorIsPresent, [], |
---|
21 | [AC_MSG_ERROR([Cannot find libmemtailor, which is required for MathicGB.])]) |
---|
22 | AC_CHECK_LIB(mathic, libmathicIsPresent, [], |
---|
23 | [AC_MSG_ERROR([Cannot find libmathic, which is required for MathicGB.])]) |
---|
24 | AC_CHECK_LIB(mathicgb, libmathicgbIsPresent, [], |
---|
25 | [AC_MSG_ERROR([Cannot find the MathicGB library.])]) |
---|
26 | AC_CHECK_HEADER([mathicgb.h]) |
---|
27 | AC_LANG_POP([C++]) |
---|
28 | MATHIC_LIBS=${LIBS} |
---|
29 | LIBS=${BACKUP_LIBS} |
---|
30 | AC_SUBST(MATHIC_LIBS) |
---|
31 | AC_DEFINE(HAVE_MATHICGB,1,[Define if mathicgb is to be used]) |
---|
32 | # AC_SUBST(HAVE_MATHICGB_VALUE, 1) |
---|
33 | ]) |
---|
34 | # |
---|
35 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.