forked from scality/Droplet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
49 lines (41 loc) · 1.32 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AC_PREREQ(2.59)
AC_INIT([libdroplet], [0.1.0])
AC_CONFIG_SRCDIR([libdroplet])
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER(config.h)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
dnl libtool versioning
# +1 : 0 : +1 == adds new functions to the interface
# +1 : 0 : 0 == changes or removes functions (changes include both
# changes to the signature and the semantic)
# ? :+1 : ? == just internal changes
# CURRENT : REVISION : AGE
LIBDROPLET_SO_VERSION=0:0:0
AC_SUBST(LIBDROPLET_SO_VERSION)
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip subdir-objects])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_HEADER_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
PKG_CHECK_MODULES(LIBXML, libxml-2.0)
PKG_CHECK_MODULES(OPENSSL, openssl)
AC_SEARCH_LIBS([rl_abort], [readline])
if test x"$ac_cv_search_rl_abort" = x"no"; then
# Try again linking ncurses this time to workaround a bug on CentOS 5.5
# where linking with readline will fail if ncurses isn't linked as well.
unset ac_cv_search_rl_abort
AC_SEARCH_LIBS([rl_abort], [readline], [LIBS="$LIBS -lncurses"], [AC_MSG_ERROR([readline library missing])], [-lncurses])
fi
AC_SEARCH_LIBS([sqrt], [m], [], [AC_MSG_ERROR([libm library missing])])
AX_PTHREAD
AC_CONFIG_FILES([
Makefile
examples/Makefile
libdroplet/Makefile
tests/Makefile
tools/Makefile
droplet-1.0.pc
])
AC_OUTPUT