forked from spotify/sparkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
35 lines (29 loc) · 787 Bytes
/
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
AC_INIT([libsparkey], [0.1.0], [[email protected]], [sparkey])
AM_INIT_AUTOMAKE([-Werror foreign])
LT_INIT
AC_PROG_CC_C99
AC_CHECK_PROGS([DOXYGEN],[doxygen])
if test -z "$DOXYGEN";
then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
fi
AM_CONDITIONAL([HAVE_DOXYGEN],
[test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([Doxyfile])
])
AC_SEARCH_LIBS([snappy_compress],
[snappy],,[AC_MSG_ERROR([Could not find snappy])
])
AC_SEARCH_LIBS([ZSTD_compress],
[zstd],,[AC_MSG_ERROR([Could not find zstd])
])
AM_CONDITIONAL([NOT_APPLE], [test x$build_vendor != xapple])
AM_COND_IF([NOT_APPLE], [
AC_SEARCH_LIBS([clock_gettime],
[rt],,[AC_MSG_ERROR([Could not find rt])
])
])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT