-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
55 lines (46 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
51
52
53
54
55
AC_PREREQ([2.69])
AC_INIT([bf-comp], [0.9])
AC_CONFIG_FILES([Makefile compile/Makefile utils/Makefile])
AC_CONFIG_SRCDIR([compile/bf.y])
AC_CONFIG_AUX_DIR([build-aux])
#AC_CONFIG_HEADER([config.h])
# Init automake
AM_INIT_AUTOMAKE([-Wall])
# Check for programs
AC_LANG(C)
AC_PROG_CC
AC_PROG_RANLIB
AM_PROG_CC_C_O
AM_PROG_AR
AM_PROG_LEX
AC_PROG_YACC
AM_SILENT_RULES([yes])
# Configure warnings
m4_include(m4/warnings.m4)
gl_WARN_ADD([-Wall], [WARN_CPPFLAGS])
gl_WARN_ADD([-Wextra], [WARN_CPPFLAGS])
gl_WARN_ADD([-Werror], [WARN_CPPFLAGS])
# Check for typedefs/structs/etc...
AC_CHECK_HEADER_STDBOOL
AC_CHECK_HEADERS([stdlib.h string.h stdio.h errno.h stdarg.h stdint.h stddef.h \
fcntl.h libintl.h malloc.h], [], [AC_MSG_ERROR([ \
Couldn't find header])])
AC_C_INLINE
AC_TYPE_INT8_T
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_C_RESTRICT
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Check for library functions
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_ALLOCA
AC_CHECK_FUNCS([memmove memset strdup strerror strtol], [],
[AC_MSG_ERROR([Standard library function not found])])
AC_OUTPUT