-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfigure.ac
48 lines (37 loc) · 1.09 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
dnl Process this file with autoconf to produce a configure script.
dnl Initialize autoconf.
AC_PREREQ(2.68)
AC_INIT([Evenk], [0.0], [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([evenk/futex.h])
AC_CONFIG_HEADERS([evenk/config.h])
dnl Initialize automake.
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
dnl Determine the host system type.
AC_CANONICAL_HOST
dnl check for API variants
AC_GNU_SOURCE
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CXX_C_O
AM_PROG_AR
AC_PROG_RANLIB
AC_PROG_INSTALL
dnl Checks for libraries.
AC_SEARCH_LIBS([pthread_create], [pthread],
[], [AC_MSG_ERROR(Cannot find pthread library)])
dnl Checks for header files.
AC_CHECK_HEADERS([pthread.h sched.h])
AC_CHECK_HEADERS([linux/futex.h])
AC_CHECK_HEADERS([xmmintrin.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])
dnl Checks for library functions.
AC_CHECK_FUNCS(pthread_setaffinity_np)
dnl Check command line arguments
AC_CONFIG_FILES([
Makefile
evenk/Makefile
tests/Makefile])
AC_OUTPUT