summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 9d46ceb9ae46c59225506f4443f84e74d7ac8f20 (plain)
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
# Process this file with autoconf to produce a configure script.
AC_INIT(libvformat, 1.13, Nick <Tilda@indigo8.freeserve.co.uk>)

AM_INIT_AUTOMAKE(libvformat, 1.13)
AM_CONFIG_HEADER(config.h)

# Checks for programs.
# AC_PROG_CC

# Checks for libraries.
AC_PROG_LIBTOOL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM

# Checks for library functions.
AC_FUNC_MKTIME
AC_FUNC_STAT
AC_CHECK_FUNCS([atexit memset strstr])

AC_ARG_ENABLE([docs],
            [AS_HELP_STRING([--enable-docs],
            [build documentation (default is no)])],
            [build_docs=true],
            [build_docs=false])
if test "$build_docs" = true; then
            DOC_SUB=doc
else
            DOC_SUB=
fi

AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"])
AC_SUBST([DOC_SUB])

AC_OUTPUT([Makefile src/Makefile vformat/Makefile test/Makefile doc/Makefile])
#AC_CONFIG_FILES([])