summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 46d88f1df4d69fa685cd2e97ca74ff2c4ad1e752 (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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([libdlo], [0.1.0], [libdlo@displaylink.com])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
AC_CONFIG_SRCDIR([src/dlo_grfx.c])
AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL

# create LIBTOOLS macros.
LT_INIT

# See LIBTOOLS on what these mean
LIBDLO_LT_CURRENT=1
LIBDLO_LT_REVISION=0
LIBDLO_LT_AGE=1
AC_SUBST(LIBDLO_LT_CURRENT)
AC_SUBST(LIBDLO_LT_REVISION)
AC_SUBST(LIBDLO_LT_AGE)

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

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T

# Checks for library functions.
PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.12)
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gettimeofday strchr])

AC_CONFIG_FILES([Makefile
                 src/Makefile
                 test/Makefile
                ])
AC_OUTPUT
AC_MSG_RESULT([
	libdlo $VERSION
	========
	
	prefix:			${prefix}
	exec_prefix:		${exec_prefix}
	libdir_name:		${libdir_name}
	mandir:			${mandir}
	includedir:		${includedir}
						
	compiler:		${CC}
	cflags:			${CFLAGS}
	ldflags:		${LDFLAGS}
								
	xsltproc:		${XSLTPROC}
])