-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
55 lines (40 loc) · 1.48 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([AzureNativeLinuxAgent], [0.1], [https://github.com/Azure/WALinuxAgent])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([src/AzureNativeLinuxAgent.cpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lcrypt':
AC_CHECK_LIB([crypt], [main])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_PID_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([memset socket])
CXXFLAGS="$CXXFLAGS -std=c++0x"
PKG_CHECK_MODULES([LIBXML2], [libxml-2.0],,
AC_MSG_ERROR([LIBXML2 not found.]))
PKG_CHECK_MODULES([LIBCONFIGXX], [libconfig++],,
AC_MSG_ERROR([libconfig++ not found.]))
PKG_CHECK_MODULES([LIBCURL], [libcurl],,
AC_MSG_ERROR([LIBCURL not found.]))
PKG_CHECK_MODULES([LIBZIP], [libzip],,
AC_MSG_ERROR([LIBZIP not found.]))
PKG_CHECK_MODULES([JSONC], [json-c],,
AC_MSG_ERROR([JSONC not found.]))
if test "$OSTYPE" = "linux-gnu"; then
PKG_CHECK_MODULES([LIBUDEV], [libudev],,
AC_MSG_ERROR([LIBUDEV not found.]))
fi
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT