transport: Add read/write functionality for USB devices.
[libjaylink.git] / configure.ac
blob0338f9c3d90eb8f2fdbfba3a83dc7dabcd5598c3
1 ##
2 ## This file is part of the libjaylink project.
3 ##
4 ## Copyright (C) 2014 Marc Schink <jaylink-dev@marcschink.de>
5 ##
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 AC_PREREQ([2.69])
22 AC_INIT([libjaylink], [0.1.0], [BUG-REPORT-ADDRESS])
23 AC_CONFIG_HEADERS([config.h])
24 AC_CONFIG_MACRO_DIR([m4])
25 AC_CONFIG_AUX_DIR([build-aux])
27 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
29 # Enable additional compiler warnings via -Wall and -Wextra.
30 CFLAGS="$CFLAGS -Wall -Wextra -Werror"
32 # Checks for programs.
33 AC_PROG_CC
35 # Automake >= 1.12 requires AM_PROG_AR when using options -Wall and -Werror.
36 # To be compatible with older versions of Automake use AM_PROG_AR if it's
37 # defined only. This line must occur before LT_INIT.
38 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
40 # Initialize libtool.
41 LT_INIT
43 # Initialize pkg-config.
44 PKG_PROG_PKG_CONFIG
46 # Checks for libraries.
48 # Check for libusb-1.0 which is always needed.
49 PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.9],
50         [CFLAGS="$CFLAGS $libusb_CFLAGS"; LIBS="$LIBS $libusb_LIBS"])
52 # Checks for header files.
54 # Checks for typedefs, structures, and compiler characteristics.
56 # Checks for library functions.
58 # Disable progress and informational output of libtool.
59 AC_SUBST(AM_LIBTOOLFLAGS, '--silent')
61 AC_CONFIG_FILES([Makefile])
62 AC_CONFIG_FILES([libjaylink/Makefile])
64 AC_OUTPUT