Commit 0c80c746b75419f6ecbfc89678107685ef01e70b

Authored by Georg Hopp
1 parent 6a837618

add m4 for trlibs

Showing 1 changed file with 24 additions and 0 deletions
  1 +AC_DEFUN([AC_TRLIBS_ROOT],
  2 +[
  3 + AC_ARG_VAR([TRLIBS_ROOT],
  4 + [
  5 + The installation root of the taskrambler libraries
  6 + ])
  7 +
  8 + AS_IF([test "$TRLIBS_ROOT"],
  9 + [
  10 + AC_MSG_NOTICE("Using ${TRLIBS_ROOT} as installation root for libtrbase")
  11 + CFLAGS="${CFLAGS} -I${TRLIBS_ROOT}/include"
  12 + LDFLAGS="${LDFLAGS} -L${TRLIBS_ROOT}/lib -lgdbm -luuid"
  13 + ])
  14 +])
  15 +
  16 +AC_DEFUN([AC_NEED_TRBASE],
  17 +[
  18 + AC_CHECK_LIB([trbase], [TR_classNew], [],
  19 + [
  20 + AC_MSG_ERROR([Needed trbase library not found may try to set TRLIBS_ROOT])
  21 + ])
  22 +])
  23 +
  24 +# vim: set ft=m4 ts=2 sw=2:
... ...
Please register or login to post a comment