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 | 80971f8 | 2019-08-29 09:57:58 +0530 | [diff] [blame] | 18 | # pkg-config |
| 19 | PKG_PROG_PKG_CONFIG |
| 20 | PKG_INSTALLDIR |
| 21 | |
Jeremy Kerr | c7e764a | 2019-05-28 16:49:03 +0800 | [diff] [blame] | 22 | # Set defaults for standard library compiles. We may want to |
| 23 | # AC_ARG_WITH these in the future. |
| 24 | AC_DEFINE([MCTP_HAVE_SYSLOG], [1], [Define to enable syslog]) |
| 25 | AC_DEFINE([MCTP_HAVE_FILEIO], [1], [Define to enable filesystem functions]) |
Andrew Jeffery | 682232e | 2020-01-13 16:17:45 +1030 | [diff] [blame] | 26 | AC_DEFINE([MCTP_HAVE_STDIO], [1], [Define to enable stdio functions]) |
Jeremy Kerr | c7e764a | 2019-05-28 16:49:03 +0800 | [diff] [blame] | 27 | AC_DEFINE([MCTP_DEFAULT_ALLOC], [1], |
| 28 | [Define to populate allocation functions to defaults (malloc/free)]) |
| 29 | |
| 30 | # Enable all bindings. AC_ARG_ENABLE in future. |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 31 | AM_CONDITIONAL([LIBMCTP_BINDING_serial], [true]) |
| 32 | AM_CONDITIONAL([LIBMCTP_BINDING_astlpc], [true]) |
| 33 | |
Jeremy Kerr | 80971f8 | 2019-08-29 09:57:58 +0530 | [diff] [blame] | 34 | AC_CONFIG_FILES([Makefile libmctp.pc]) |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 35 | AC_OUTPUT |