Commit 05ede0c1 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added NMXP_CFLAGS and NMXP_LDFLAGS


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@513 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent c188229e
......@@ -25,6 +25,12 @@ AC_CONFIG_HEADER([config.h])
# AM_INIT_AUTOMAKE(FULL_PACKAGE_NAME,VERSION)
AM_INIT_AUTOMAKE([full_package_name], [version])
NMXP_CFLAGS="-I`pwd`/libnmxp/src"
NMXP_LDFLAGS="-L`pwd`/libnmxp/src"
CFLAGS="$CFLAGS $NMXP_CFLAGS"
LDFLAGS="$LDFLAGS $NMXP_LDFLAGS"
# Checks for programs.
AC_PROG_CC
......@@ -66,22 +72,22 @@ AS_IF([test "x$with_libmseed" != xno],
[AC_CHECK_LIB([mseed], [msr_init],
[LIBS="$LIBS -lmseed"
AC_DEFINE([HAVE_LIBMSEED], [1], [Define if you have libmseed])
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp is not installed])])
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp not found!])])
AC_CHECK_LIB([nmxp], [nmxp_data_msr_pack],
[],
[AC_MSG_FAILURE([libmseed is installed but libnmxp does not support it. (Try --without-libmseed to disable)])])
[AC_MSG_FAILURE([libmseed found but libnmxp does not support it. (Try --without-libmseed to disable)])])
],
[AC_MSG_WARN([
libmseed is not available (--without-libmseed to disable)
])
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp is not installed or it supports libmseed
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp not found or it supports libmseed
but libmseed is not available anymore! Try to recompile libnmxp!
])])
],
)
],
[
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp is not installed or supports libmseed (--with-libmseed to enable)!])])
AC_CHECK_LIB([nmxp], [nmxp_openSocket], [], [AC_MSG_ERROR([libnmxp not found or supports libmseed (--with-libmseed to enable)!])])
AC_MSG_WARN([Mini-SEED support has been disabled!])
]
)
......
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