forked from ChrisVine/chez-a-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (43 loc) · 1.91 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
49
50
51
52
53
54
55
dnl Process this file with autoconf to produce a configure script.
AC_INIT([chez-a-sync], [0.19])
dnl Require autoconf 2.59c or greater for docdir and htmldir
AC_PREREQ(2.59c)
dnl Set so_version info for libtool (set with -version-info in lib/Makefile.am)
dnl CURRENT : REVISION : AGE where
dnl CURRENT = The most recent interface number that this library implements.
dnl REVISION = The implementation number of the current interface.
dnl AGE = The difference between the newest and oldest interface numbers
dnl that this library implements (ie a range so that AGE must be
dnl less than or equal to CURRENT)
dnl
dnl +1 : ? : +1 == new interface that does not break old one
dnl +1 : ? : 0 == new interface that breaks old one
dnl ? : ? : 0 == no new interfaces, but breaks apps
dnl ? :+1 : ? == just some internal changes, nothing breaks (eg bump with
dnl minor/micro library version number changes changing
dnl compiled code but no new interface)
CHEZ_A_SYNC_SO_VERSION=0:0:0
AC_SUBST(CHEZ_A_SYNC_SO_VERSION)
AM_INIT_AUTOMAKE([1.11])
AC_CONFIG_HEADERS([config.h])
dnl use '--disable-silent-rules' or 'make V=1 ...' to override this
AM_SILENT_RULES([yes])
dnl check for working c compiler
AC_CHECK_COMPILER
dnl set up libtool
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
dnl check whether to compile scheme files to bytecode
AC_CHECK_COMPILE_SCHEME
dnl Check for C++ headers.
AC_LANG_CPLUSPLUS dnl switch to C++
AC_CHECK_HEADERS([ map ],
[:],[AC_MSG_ERROR([Standard C++ headers not found], 1)])
dnl Check for C/POSIX headers.
AC_CHECK_HEADERS([ unistd.h errno.h stdint.h poll.h fcntl.h ],
[:],[AC_MSG_ERROR([Standard POSIX headers not found], 1)])
dnl define MAKE for subdirectories
AC_PROG_MAKE_SET
AC_CONFIG_FILES([ Makefile lib/Makefile a-sync/Makefile a-sync/helper/Makefile \
docs/Makefile tests/Makefile chez-a-sync.pc ])
AC_OUTPUT