-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (35 loc) · 1.03 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
# Define version here, before initialization.
m4_define(al_version_major, 0)
m4_define(al_version_minor, 0)
m4_define(al_version_micro, 1)
m4_define(al_version, [al_version_major.al_version_minor.al_version_micro])
# Initialize.
AC_PREREQ([2.62])
AC_INIT(alpaca, [al_version])
# AC Configuration.
AC_CONFIG_SRCDIR([src/.dummy])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
# Configure libtool.
AC_PROG_LIBTOOL
# Configure automake.
AM_INIT_AUTOMAKE([subdir-objects])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_CXX
AC_PROG_RANLIB
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h \
arpa/inet.h netdb.h sys/time.h])
AC_CHECK_HEADER_STDBOOL
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset select socket gethostbyaddr strchr strpbrk \
gettimeofday strdup timeradd timersub timercmp])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT