source: git/m4/mathic-check.m4 @ f188c6

spielwiese
Last change on this file since f188c6 was 8f761ae, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Update of MATHICGB according to the PullRequest #351
  • Property mode set to 100644
File size: 935 bytes
Line 
1AC_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 AS_IF( [test "x$with_mathicgb" = xyes],
17 [
18  AC_LANG_PUSH([C++])
19  AC_CHECK_LIB(memtailor, libmemtailorIsPresent, [],
20    [AC_MSG_ERROR([Cannot find libmemtailor, which is required for MathicGB.])])
21  AC_CHECK_LIB(mathic, libmathicIsPresent, [],
22    [AC_MSG_ERROR([Cannot find libmathic, which is required for MathicGB.])])
23  AC_CHECK_LIB(mathicgb, libmathicgbIsPresent, [],
24    [AC_MSG_ERROR([Cannot find the MathicGB library.])])
25  AC_CHECK_HEADER([mathicgb.h])
26  AC_LANG_POP([C++])
27  AC_DEFINE(HAVE_MATHICGB,1,[Define if mathicgb is to be used])
28#  AC_SUBST(HAVE_MATHICGB_VALUE, 1) 
29 ])
30 #
31])
Note: See TracBrowser for help on using the repository browser.