-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
51 lines (43 loc) · 1.23 KB
/
configure.ac
File metadata and controls
51 lines (43 loc) · 1.23 KB
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
51
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([libfoa], [0.6.11], [andlov@nowise.se])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/libfoa.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
CFLAGS_SAVED="$CFLAGS"
CFLAGS="$CFLAGS -fno-builtin"
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset strchr strdup strerror strpbrk vsnprintf])
CFLAGS="${CFLAGS_SAVED}"
# 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
example/Makefile
doc/Makefile
src/libfoa.pc])
AC_OUTPUT