Commit 6681fff0 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added AC_ARG_VAR for EW_HOME, EW_VERSION, EW_PARAMS, GLOBALFLAGS


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@912 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent aed81836
......@@ -108,6 +108,12 @@ architectures.
--disable-ew do not compile nmxptool as Earthworm module
--disable-seedlink do not compile nmxptool as Seedlink plug-in
Some influential environment variables:
EW_HOME Earthworm home directory
EW_VERSION Earthworm version directory
EW_PARAMS Earthworm configuration files directory
GLOBALFLAGS C compiler flags for Earthworm
Verifying the version and enabled features after compilation:
src/nmxptool --version
......
......@@ -118,6 +118,10 @@ AS_IF([test "x$enable_libmseed" != xno],
]
)
AC_ARG_VAR(EW_HOME, [Earthworm home directory])
AC_ARG_VAR(EW_VERSION, [Earthworm version directory])
AC_ARG_VAR(EW_PARAMS, [Earthworm configuration files directory])
AC_ARG_VAR(GLOBALFLAGS, [C compiler flags for Earthworm])
EWOSOURCES=no
......@@ -126,7 +130,7 @@ AS_IF([test "x$enable_ew" != xno],
[
AS_IF([test "x$EW_HOME" != x],
[
CFLAGS="$CFLAGS $GLOBALFLAGS"
CFLAGS="$CFLAGS -I$EW_HOME/$EW_VERSION/include $GLOBALFLAGS"
AC_CHECK_HEADERS([earthworm.h kom.h transport.h trace_buf.h],
[AC_DEFINE([HAVE_EARTHWORMFILES_H], [1], [Define if you have earthworm header file])],
AC_MSG_ERROR([Earthworm header files not found!])
......@@ -166,9 +170,6 @@ AS_IF([test "x$enable_ew" != xno],
esac
AC_MSG_WARN(EWOS set to $EWOS)
AC_SUBST(EWOS)
AC_SUBST(EW_HOME)
AC_SUBST(EW_VERSION)
AC_SUBST(EW_PARAMS)
EW_LIBSRC=$EW_HOME/$EW_VERSION/src/libsrc
EW_LIBSRC_UTIL=$EW_LIBSRC/util
EW_LIBSRC_OS=$EW_LIBSRC/$EWOS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment