-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
76 lines (60 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
# A few lines about versions:
m4_define([PEZ_VERSION_MAJOR], [1])
m4_define([PEZ_VERSION_MINOR], [6])
m4_define([PEZ_VERSION_TEENY], [0])
m4_define([PEZ_LIB_VERSION], PEZ_VERSION_MAJOR.PEZ_VERSION_MINOR)
m4_define([PEZ_VERSION], PEZ_VERSION_MAJOR.PEZ_VERSION_MINOR.PEZ_VERSION_TEENY)
AC_INIT([pez],PEZ_VERSION,[pete.elmore@gmail.com])
AC_CONFIG_HEADERS([config.h:config.h.in])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([pez.c])
AM_INIT_AUTOMAKE
AC_PROG_LIBTOOL
AC_CANONICAL_HOST
# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_CHECK_PROG([RUBY], [ruby], 1, 0)
AC_CHECK_PROG([RLWRAP], [rlwrap], rlwrap,)
# Checks for libraries.
AC_CHECK_LIB([m], [log], [],
[echo "Missing the standard C math library, -lm" >&2; exit 1])
AC_CHECK_LIB([dl], [dlopen], [],
[echo "Missing the dynamic library loading library, -ldl" >&2;
exit 1])
AC_CHECK_LIB([gc], [GC_malloc], [],
[echo "Missing the Boehm GC library, -lgc" >&2; exit 1])
AC_CHECK_LIB([tcc], [tcc_new], [],
[echo "Missing libtcc, -ltcc" >&2; exit 1])
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([memory.h stdlib.h string.h sys/time.h unistd.h limits.h gc/gc.h gc.h libtcc.h inttypes.h types.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_C_INLINE
AC_CHECK_FUNCS([gettimeofday pow setenv strchr strtoul])
AC_TYPE_INT8_T
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_CHECK_SIZEOF(void *)
AC_DEFINE([EXPORT], [1], [TODO: These are going away.])
AC_DEFINE([READONLYSTRINGS], [1], [TODO: These are going away.])
AC_DEFINE([MEMSTAT], [1], [TODO: These are going away.])
AC_PROG_INSTALL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT