configure.ac 1.2 KB
Newer Older
1
2
3
4
5
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([sds-keyval], [0.1], [robl@mcs.anl.gov])
6
AM_INIT_AUTOMAKE([1.15 -Wall -Werror foreign subdir-objects silent-rules])
7
8
9
10
11
12
13
14
15
16
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/sds-keyval.h])
LT_PREREQ([2.2])
# LT_INIT needs to know about AR
AM_PROG_AR
LT_INIT([dlopen])

# Checks for programs.
AC_PROG_CC
17
18
# subdir objects needs a bit of help
AM_PROG_CC_C_O
19
20
21
22
23
24
25
26
27
28
29
30
31
AC_PROG_CXX
AC_PROG_INSTALL

# Checks for libraries.
# Checks for header files.

#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],[],
Rob Latham's avatar
Rob Latham committed
32
      AC_MSG_ERROR([Could not find working margo installation!]) )
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LIBS="$MARGO_LIBS $LIBS"
CPPFLAGS="$MARGO_CFLAGS $CPPFLAGS"
CFLAGS="$MARGO_CFLAGS $CFLAGS"


# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC

48
AC_CONFIG_FILES([Makefile maint/kv-client.pc maint/kv-server.pc])
49
50
AC_OUTPUT