https://github.com/geodynamics/citcoms
Revision 80f2b368e3011f2676f42c66e989504772338554 authored by Eh Tan on 16 October 2013, 05:09:46 UTC, committed by Eh Tan on 16 October 2013, 05:09:46 UTC
1 parent 90690a9
Raw File
Tip revision: 80f2b368e3011f2676f42c66e989504772338554 authored by Eh Tan on 16 October 2013, 05:09:46 UTC
added ignore file
Tip revision: 80f2b36
cit_spatialdata.m4
# -*- Autoconf -*-


# ======================================================================
# Autoconf macros for spatialdata.
# ======================================================================

# ----------------------------------------------------------------------
# CIT_SPATIALDATA_HEADER
# ----------------------------------------------------------------------
AC_DEFUN([CIT_SPATIALDATA_HEADER], [
  AC_LANG(C++)
  AC_CHECK_HEADER([spatialdata/spatialdb/SpatialDB.hh], [], [
    AC_MSG_ERROR([SpatialDB header not found; try CPPFLAGS="-I<Spatialdata include dir>"])
  ])dnl
])dnl CIT_SPATIALDATA_HEADER


# ----------------------------------------------------------------------
# CIT_SPATIALDATA_LIB
# ----------------------------------------------------------------------
AC_DEFUN([CIT_SPATIALDATA_LIB], [
  AC_LANG(C++)
  AC_REQUIRE_CPP
  AC_MSG_CHECKING([for SimpleDB in -lspatialdata])
  AC_COMPILE_IFELSE(
    [AC_LANG_PROGRAM([[#include <spatialdata/spatialdb/SpatialDB.hh>]
                      [#include <spatialdata/spatialdb/SimpleDB.hh>]],
                     [[spatialdata::spatialdb::SimpleDB db;]])],
    [AC_MSG_RESULT(yes)],
    [AC_MSG_RESULT(no)
     AC_MSG_ERROR([Spatialdata library not found; try LDFLAGS="-L<Spatialdata lib dir>"])
  ])dnl
])dnl CIT_SPATIALDATA_LIB


dnl end of file
back to top