-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathconfigure.ac
More file actions
36 lines (25 loc) · 919 Bytes
/
configure.ac
File metadata and controls
36 lines (25 loc) · 919 Bytes
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
AC_INIT([SGX GMP Test], 1.0, [john.p.mechalas@intel.com])
AC_CONFIG_MACRO_DIRS([m4])
# Automake options:
# - foreign: relax GNU project file requirements (no need for NEWS/AUTHORS/ChangeLog, etc.)
# - subdir-objects: place .o files in per-source subdirectories (avoids collisions + future automake changes).
# Avoids warnings because of setting source files from different directories.
# TODO - add subdir-objects & fix the errors
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AM_PROG_CC_C_O
SGX_INIT()
gmpdir=${PWD}/gmp-build
tgmpdir=${PWD}/tgmp-build
AS_IF([test "$gmpdir" != ""], [
AC_SUBST([GMP_CPPFLAGS], [-I$gmpdir/include])
AC_SUBST([GMP_LDFLAGS], [-L$gmpdir/lib])
])
AS_IF([test "$tgmpdir" != ""], [
AC_SUBST([TGMP_CPPFLAGS], [-I$tgmpdir/include])
AC_SUBST([TGMP_LDFLAGS], [-L$tgmpdir/lib])
])
AC_CONFIG_FILES([Makefile secure_enclave/Makefile])
AC_OUTPUT()