forked from PL4typus/virt_cacard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
40 lines (30 loc) · 1.01 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([virt_cacard], [1], [[email protected]])
AC_CONFIG_SRCDIR([src/connection.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
PKG_CHECK_MODULES([CACARD], [libcacard])
AC_SUBST(CACARD_CFLAGS)
AC_SUBST(CACARD_LIBS)
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h ],
[],
[AC_MSG_ERROR([unable to find all required headers])
])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_UINT16_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([memset socket])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT