-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (33 loc) · 1.07 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
AC_PREREQ([2.68])
AC_INIT([stest], [0.1], [[email protected]])
AC_CONFIG_SRCDIR([src/stest.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
AM_SILENT_RULES
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks whether compiler supports -Wall
CC_HAS_WALL
AC_ARG_ENABLE([tests],
AS_HELP_STRING([--disable-tests], [disable building tests]))
AS_IF([test "x$enable_tests" != "xno"], [
AC_CHECK_CUTTER
enable_tests="yes"
])
AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" != "xno"])
AC_CONFIG_FILES([doc/stest.1 doc/gen-test.1])
AC_DEFINE([_POSIX_C_SOURCE], [200809L], [We want some POSIX functions])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT([Makefile])
echo ""
echo "Stest $VERSION"
echo ""
echo " Prefix.....................: ${prefix}"
echo " Compiler flags.............: ${CFLAGS}"
echo " Enable test suite..........: ${enable_tests}"