-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
50 lines (41 loc) · 1.18 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
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([libfoa++], [1.0.2], [andlov@nowise.se])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
# We need _XOPEN_SOURCE=600 for isblank():
CXXFLAGS="$CXXFLAGS -D_XOPEN_SOURCE=600"
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([memmove isblank])
# Check whether to build examples:
AC_MSG_CHECKING([whether to build examples])
AC_ARG_ENABLE([examples],
[AS_HELP_STRING([--enable-examples],
[Build libfoa example code [default=no]])],
[build_examples=$enableval],
[build_examples=no]
)
AC_MSG_RESULT($build_examples)
AM_CONDITIONAL(BUILD_EXAMPLES, test x${build_examples} == xyes)
AC_CONFIG_FILES([Makefile
src/Makefile
doc/Makefile
example/Makefile
src/libfoa++.pc])
AC_OUTPUT