Commit 908b2791 authored by Rob Latham's avatar Rob Latham

autotools build system

parent 9ee9ba50
ACLOCAL_AMFLAGS="-Im4"
lib_LTLIBRARIES = libmobject.la
libmobject_la_SOURCES = src/mobject-store.c \
include/mobject-store.h
include_HEADERS = include/mobject-store.h
libmobject_la_CPPFLAGS = -I${srcdir}/include
AC_PREREQ([2.69])
AC_INIT([mobject], [0.1], [ssio-services@lists.mcs.anl.gov])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects silent-rules])
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([include/mobject-store.h])
AC_CONFIG_HEADER([include/mobject-conf.h])
LT_PREREQ([2.2])
AM_PROG_AR
LT_INIT([dlopen])
# checks for programs
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
# checks for libraires
#pkg-config and libraries supporting that
PKG_PROG_PKG_CONFIG
if test "x$PKG_CONFIG" == "x"; then
AC_MSG_ERROR([Could not find pkg-config utility!])
fi
PKG_CHECK_MODULES([MARGO],[margo],[],
AC_MSG_ERROR([Could not find working margo installation!]) )
LIBS="$MARGO_LIBS $LIBS"
CPPFLAGS="$MARGO_CFLAGS $CPPFLAGS"
CFLAGS="$MARGO_CFLAGS $CFLAGS"
PKG_CHECK_MODULES([SSG],[ssg],[],
AC_MSG_ERROR([Could not find working ssg installation!]) )
LIBS="$SSG_LIBS $LIBS"
CPPFLAGS="$SSG_CFLAGS $CPPFLAGS"
CFLAGS="$SSG_CFLAGS $CFLAGS"
# checks for typedefs, structures, and compiler characteristics.
# chekcs for library functions
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
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