summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: aa897ea8df9ecdfef4d353086ff67896009f37b0 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
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])

win32=no
case $host_os in
	*mingw*)
		win32=yes
	;;
	*)
	;;
esac
AM_CONDITIONAL([WIN32], [test x$win32 = xyes])

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AC_OUTPUT([
Makefile
src/Makefile
vformat/Makefile
test/Makefile
doc/Makefile
libvformat-1.0.pc
])

echo "
Configuration for $PACKAGE $VERSION:
-------------------------------------------

  Install prefix: .........: $prefix

  Now type 'make' to build $PACKAGE $VERSION,
  and then 'make install' for installation.
"