-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
40 lines (33 loc) · 936 Bytes
/
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
AC_PREREQ([2.69])
AC_INIT([veoffload-veorun], [2.5.0])
AC_CONFIG_SRCDIR([veorun.c])
AM_INIT_AUTOMAKE([foreign -Wall])
AC_ARG_WITH([release-id], [AS_HELP_STRING([--with-release-id],
[Specify the release ID [1]])],
[RELEASE=${with_release_id}],
[RELEASE=1])
AC_SUBST(RELEASE)
# Checks for programs.
AC_PROG_RANLIB
AC_PROG_CC
AC_SUBST(CCLD)
AM_PROG_CC_C_O
AM_PROG_AS
AC_PROG_SED
AM_PROG_AR
AC_PROG_LN_S
# Checks for libraries.
AC_SEARCH_LIBS([dlopen], [dl], [], [
AC_MSG_ERROR([dlopen() is not found])
])
AC_SEARCH_LIBS([pthread_create], [pthread], [], [
AC_MSG_ERROR([pthread_create() is not found])
])
# Checks for header files.
AC_CHECK_HEADERS([stdint.h dlfcn.h pthread.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT64_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_CONFIG_FILES([Makefile debian/Makefile])
AC_OUTPUT