summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 21b69e318d24308169e2a70c088ac0d70fff1e2b (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
# Inital configuration

AC_PREREQ(2.61)

AC_INIT([usbmuxd], [0.1.1], [nikias@gmx.li])
AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])

AC_CONFIG_HEADERS([config.h])

# Check for programs

AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_PROG_INSTALL

# Check for libraries

PKG_CHECK_MODULES(libusb, libusb >= 0.1.12)

# check for options
AC_ARG_ENABLE([hacks],
            [AS_HELP_STRING([--disable-hacks],
            [disable hacks that provide workarounds for certain problems])],
            [enable_hacks=no],
            [enable_hacks=yes])
if test "x$enable_hacks" = xyes; then
        AC_DEFINE(ENABLE_HACKS, 1, [Define if you want hacks enabled])
        echo "Note: hacks are enabled."
else
        echo "Note: hacks are DISABLED."
fi
AM_CONDITIONAL(ENABLE_HACKS, test "x$enable_hacks" = xyes)

# Output files

AC_OUTPUT([
Makefile
src/Makefile
tools/Makefile
udev/85-usbmuxd.rules
udev/Makefile
libusbmuxd.pc
])