-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
38 lines (29 loc) · 929 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([libperf], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/libperf.hh])
AC_CONFIG_HEADERS([src/config.h])
CXX14_FLAGS="-std=c++14"
PICKY_CXXFLAGS="-pedantic -Wall -Wextra -Werror -Wno-non-virtual-dtor"
AC_SUBST([CXX14_FLAGS])
AC_SUBST([PICKY_CXXFLAGS])
# Checks for programs.
AC_PROG_CXX
AC_PROG_RANLIB
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h inttypes.h stdint.h stdlib.h string.h unistd.h])
# libperf substitutions
AC_SUBST([LIBPERF_SO_VERSION], [0:0:0])
AC_SUBST([LIBPERF_API_VERSION],[1.0])
# Checks for library functions.
#AC_FUNC_FORK
#AC_FUNC_MALLOC
#AC_CHECK_FUNCS([clock_gettime])
AC_CONFIG_FILES([Makefile
src/Makefile
python/Makefile
])
AC_OUTPUT