-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.ac
More file actions
42 lines (30 loc) · 952 Bytes
/
configure.ac
File metadata and controls
42 lines (30 loc) · 952 Bytes
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
AC_PREREQ(2.65)
AC_INIT([libthreadpool], [0.1.0], [bcarmer@gmail.com])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([./])
AC_CONFIG_AUX_DIR([build/autoconf])
AC_CONFIG_MACRO_DIR([build/autoconf])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_PROG_AR
LT_INIT
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_ARG_ENABLE(debug, [ --enable-debug Enable assert() statements for debugging.], [enable_debug=yes])
CFLAGS=
COMMON_CFLAGS="-Wall -Wformat -Wformat-security -Wextra -Wunused \
-Wshadow -Wmissing-prototypes -Wfloat-equal -Wpointer-arith -Wcast-align \
-Wstrict-prototypes -Wredundant-decls -Wendif-labels -Wcast-qual \
-std=gnu11 -Wpedantic"
if test "x$enable_debug" = x"yes"; then
EXTRA_CFLAGS="-O0 -g"
else
EXTRA_CFLAGS="-O3"
AC_DEFINE(NDEBUG,1,[Define whether debugging is enabled])
fi
AC_SUBST(COMMON_CFLAGS)
AC_SUBST(EXTRA_CFLAGS)
AC_CHECK_HEADERS([omp.h])
AC_FUNC_MALLOC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT