-
Notifications
You must be signed in to change notification settings - Fork 8
/
configure.ac
33 lines (27 loc) · 1.44 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
AC_INIT([swiftfs], [0.4], [paul.ionkin@gmail.com])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([include/config.h])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB
PKG_CHECK_MODULES([DEPS], [glib-2.0 >= 2.32.1 fuse >= 2.7.3 libevent >= 2.1 libevent_openssl >= 2.1.2 libxml-2.0 >= 2.6 libcrypto >= 0.9])
AC_ARG_ENABLE(debug-mode,
AS_HELP_STRING(--enable-debug-mode, enable support for running in debug mode),
[], [enable_debug_mode=no])
# check if we should enable verbose debugging
if test x$enable_debug_mode = xyes; then
CFLAGS="$CFLAGS -Wall -Wextra -march=native -O1 -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wformat-nonliteral -Wformat-security -Wswitch-default -Winit-self -Wmissing-include-dirs -Wundef -Waggregate-return -Wmissing-format-attribute -Wnested-externs -Wstrict-overflow=5 -Wformat=2 -Wunreachable-code -Wfloat-equal -ffloat-store -g -ggdb3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
else
CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -march=native"
fi
# check if we need to build test applications
AC_ARG_ENABLE([test-apps],
AS_HELP_STRING([--enable-test-apps build test applications]),
[], [enable_test_apps=no])
AM_CONDITIONAL([BUILD_TEST_APPS], [test "$enable_test_apps" = "yes"])
AC_CONFIG_FILES(Makefile src/Makefile include/Makefile tests/Makefile)
AC_OUTPUT