Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([libmctp], 0.9, [https://github.com/openbmc/libmctp/issues]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AC_CONFIG_MACRO_DIRS([m4]) |
| 6 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 7 | AM_SILENT_RULES([yes]) |
| 8 | |
| 9 | # Checks for programs. |
| 10 | AC_PROG_CC |
| 11 | AM_PROG_AR |
| 12 | AC_PROG_INSTALL |
| 13 | AC_PROG_MAKE_SET |
| 14 | |
| 15 | # libtool init |
| 16 | LT_INIT |
| 17 | |
Jeremy Kerr | c7e764a | 2019-05-28 16:49:03 +0800 | [diff] [blame] | 18 | # Set defaults for standard library compiles. We may want to |
| 19 | # AC_ARG_WITH these in the future. |
| 20 | AC_DEFINE([MCTP_HAVE_SYSLOG], [1], [Define to enable syslog]) |
| 21 | AC_DEFINE([MCTP_HAVE_FILEIO], [1], [Define to enable filesystem functions]) |
| 22 | AC_DEFINE([MCTP_DEFAULT_ALLOC], [1], |
| 23 | [Define to populate allocation functions to defaults (malloc/free)]) |
| 24 | |
| 25 | # Enable all bindings. AC_ARG_ENABLE in future. |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 26 | AM_CONDITIONAL([LIBMCTP_BINDING_serial], [true]) |
| 27 | AM_CONDITIONAL([LIBMCTP_BINDING_astlpc], [true]) |
| 28 | |
| 29 | AC_CONFIG_FILES([Makefile]) |
| 30 | AC_OUTPUT |