-
Notifications
You must be signed in to change notification settings - Fork 10
/
configure.ac
44 lines (37 loc) · 1000 Bytes
/
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
AC_INIT([moxiebox], [0.0.3],
[http://github.com/jgarzik/moxiebox/])
AC_PREREQ(2.60)
AC_CONFIG_SRCDIR([src/sandbox.cc])
AM_INIT_AUTOMAKE([gnu])
AC_CONFIG_HEADERS([moxiebox-config.h])
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_OBJC
AC_PROG_LN_S
AC_PROG_MKDIR_P
AC_PROG_SED
AM_PROG_AS
AC_PATH_TOOL(AR, ar)
AC_PATH_TOOL(RANLIB, ranlib)
AC_PATH_TOOL(STRIP, strip)
AC_CHECK_PROG(MOX_AS, moxiebox-as, moxiebox-as)
AC_CHECK_PROG(MOX_AR, moxiebox-ar, moxiebox-ar)
AC_CHECK_PROG(MOX_GCC, moxiebox-gcc, moxiebox-gcc)
PKG_PROG_PKG_CONFIG
AC_LANG_PUSH([C++])
AC_CHECK_LIB(elf, elf_getphdrnum, ELF_LIBS=-lelf,AC_MSG_ERROR([Libelf is required to build this package!]))
AC_CHECK_LIB(crypto, SHA256_Update, CRYPTO_LIBS=-lcrypto,AC_MSG_ERROR([Libcrypto is required to build this package!]))
AC_SUBST(ELF_LIBS)
AC_SUBST(CRYPTO_LIBS)
AC_SUBST(MOX_AS)
AC_SUBST(MOX_AR)
AC_SUBST(MOX_GCC)
AC_CONFIG_FILES([
Makefile
runtime/Makefile
src/Makefile
tests/Makefile])
AC_OUTPUT