2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([irreco-backend-lirc], [0.0.1])
7 AC_CONFIG_SRCDIR([src/backend_lirc.c])
8 AC_CONFIG_HEADER([config.h])
11 # Checks for programs.
15 AC_PROG_INTLTOOL([0.23])
19 AC_ARG_ENABLE([debug],
20 [AC_HELP_STRING([--enable-debug=ARG],
21 [Enable / disable debugging. Disabled by default])],
22 [enable_debug=$enableval],
24 AS_IF( [test "$enable_debug" != "yes"], [enable_debug=no])
25 AS_IF( [test "$enable_debug" = "yes"],
26 [CFLAGS="$CFLAGS -O0 -Wall -Werror -ansi -pedantic -ggdb -DDEBUG"],
27 [CFLAGS="$CFLAGS -O2 -Wall -Werror -ansi -pedantic"])
28 AC_SUBST(enable_debug)
31 # Backend dependencies
32 PKG_CHECK_MODULES(IRRECO, irreco irreco-util)
34 AC_SUBST(IRRECO_CFLAGS)
37 # Backend install directory.
38 irreco_backend_dir=`$PKG_CONFIG irreco --variable=backenddir`
39 AC_SUBST(irreco_backend_dir)
40 AC_DEFINE_UNQUOTED([IRRECO_BACKEND_DIR], "${irreco_backend_dir}", \
44 AC_CONFIG_FILES([Makefile