-
Notifications
You must be signed in to change notification settings - Fork 9
/
configure.ac
45 lines (32 loc) · 1.26 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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.68)
AC_INIT([aes-min], [0.3.1]) #set project name and version
# Put autotools auxiliary files in subdirectories to reduce clutter:
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
#AC_CANONICAL_SYSTEM
# Put configuration results here, so we can easily #include them:
AC_CONFIG_HEADERS([config.h])
# library version as current:revision:age
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_SUBST([LIB_SO_VERSION], [5:1:0])
# Enable "automake" to simplify creating makefiles:
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror -Wno-portability])
AM_SILENT_RULES([yes])
AC_CONFIG_FILES([Makefile
aes-min.pc])
#dnl this allows us specify individual linking flags for each target
AM_PROG_CC_C_O
dnl Initialize Libtool
LT_INIT
dnl Check if Libtool is present
dnl Libtool is used for building share libraries
AC_PROG_LIBTOOL
AC_ARG_ENABLE([sbox-small],
AS_HELP_STRING([--enable-sbox-small], [Enable small S-box implementation]))
AS_IF([test "x$enable_sbox_small" = "xyes"], [
AC_DEFINE([ENABLE_SBOX_SMALL], [1], [Enable small S-box implementation])
])
AM_CONDITIONAL([ENABLE_SBOX_SMALL], [test "x$enable_sbox_small" = "xyes"])
AC_OUTPUT