| # -*- Autoconf -*- |
| # Process this file with autoconf to produce a configure script. |
| |
| AC_PREREQ([2.69]) |
| AC_INIT([update_engine],[0.4.7],[https://github.com/coreos/bugs/issues]) |
| AC_CONFIG_AUX_DIR([build-aux]) |
| AC_CONFIG_SRCDIR([main.cc]) |
| AC_USE_SYSTEM_EXTENSIONS |
| AC_SYS_LARGEFILE |
| |
| AM_INIT_AUTOMAKE([foreign 1.13 -Wall -Wno-portability |
| serial-tests silent-rules subdir-objects]) |
| AM_SILENT_RULES([yes]) |
| |
| # check boot type |
| AC_ARG_ENABLE(nand, AC_HELP_STRING([--enable-nand], |
| [enable nand support]), |
| [enable_nand=${enableval}]) |
| |
| AM_CONDITIONAL(NAND, test "$enable_nand" = "yes") |
| |
| # Checks for programs. |
| AC_PROG_CC |
| AC_PROG_CXX |
| AC_PROG_MKDIR_P |
| AC_PROG_RANLIB |
| AM_PROG_AR |
| |
| AC_PATH_PROG([PROTOC], [protoc]) |
| AS_IF([test "x${PROTOC}" = "x"], |
| [AC_MSG_ERROR([*** protoc not found])]) |
| |
| AC_CHECK_LIB([bz2], [BZ2_bzDecompressInit], [], |
| [AC_MSG_ERROR([*** libbz2 not found])]) |
| AC_CHECK_HEADERS([bzlib.h], [], |
| [AC_MSG_ERROR([*** bzlib.h not found])]) |
| |
| PKG_CHECK_MODULES([DEPS], |
| [dbus-1 |
| dbus-glib-1 |
| libcrypto |
| libcurl |
| libssl]) |
| # protobuf]) |
| AC_CONFIG_FILES([Makefile]) |
| AC_OUTPUT |