2008-03-07 12:47:18 +05:00
|
|
|
#------------------------------------------------------------
|
|
|
|
# Check availability of Salome NETGEN mesh plugin module
|
|
|
|
# distribution
|
|
|
|
#------------------------------------------------------------
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
AC_DEFUN([CHECK_NETGENPLUGIN],[
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
AC_CHECKING(for NETGEN mesh plugin)
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
NGplugin_ok=no
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
NETGENPLUGIN_LDLAGS=""
|
|
|
|
NETGENPLUGIN_CXXFLAGS=""
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
AC_ARG_WITH(netgenplugin,
|
|
|
|
[ --with-netgenplugin=DIR root directory path of NETGEN mesh plugin installation ],
|
|
|
|
NETGENPLUGIN_DIR="$withval",NETGENPLUGIN_DIR="")
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
if test "x$NETGENPLUGIN_DIR" == "x" ; then
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
# no --with-netgenplugin-dir option used
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
if test "x$NETGENPLUGIN_ROOT_DIR" != "x" ; then
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
# NETGENPLUGIN_ROOT_DIR environment variable defined
|
|
|
|
NETGENPLUGIN_DIR=$NETGENPLUGIN_ROOT_DIR
|
2004-03-26 12:05:19 +05:00
|
|
|
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
fi
|
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
if test -f ${NETGENPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libNETGENEngine.so ; then
|
|
|
|
NGplugin_ok=yes
|
|
|
|
AC_MSG_RESULT(Using NETGEN mesh plugin distribution in ${NETGENPLUGIN_DIR})
|
|
|
|
|
|
|
|
if test "x$NETGENPLUGIN_ROOT_DIR" == "x" ; then
|
|
|
|
NETGENPLUGIN_ROOT_DIR=${NETGENPLUGIN_DIR}
|
|
|
|
fi
|
|
|
|
AC_SUBST(NETGENPLUGIN_ROOT_DIR)
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
NETGENPLUGIN_LDFLAGS=-L${NETGENPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
|
|
|
|
NETGENPLUGIN_CXXFLAGS=-I${NETGENPLUGIN_DIR}/include/salome
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
AC_SUBST(NETGENPLUGIN_LDFLAGS)
|
|
|
|
AC_SUBST(NETGENPLUGIN_CXXFLAGS)
|
|
|
|
|
|
|
|
else
|
|
|
|
AC_MSG_WARN("Cannot find compiled NETGEN mesh plugin distribution")
|
|
|
|
fi
|
2004-03-26 12:05:19 +05:00
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
AC_MSG_RESULT(for NETGEN mesh plugin: $NGplugin_ok)
|
|
|
|
|
2004-03-26 12:05:19 +05:00
|
|
|
])dnl
|