![Jacob Barthelmeh](/assets/img/avatar_default.png)
add user-crypto makefile update README for IPP crypto place user crypto in wolfcrypt and use autotools adjust distributed files move openssl compatibility consumption auto use IPP RSA -- IPP directory containing shared libraries local return value of wolfSSL_BN and formating of debug openssh testing make sure IPP not built when fips is ipp init to select correct optimizations -- static libraries on linux -- fast-rsa disabled by default try to only set library once only use static IPP if fast rsa is enabled make print out for user crypto more pretty
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.63])
|
|
AC_INIT([usercypto], [0.1], [])
|
|
AC_CONFIG_SRCDIR([src/rsa.c])
|
|
|
|
AM_INIT_AUTOMAKE([1.11 -Wall -Werror -Wno-portability foreign tar-ustar subdir-objects no-define color-tests])
|
|
|
|
LT_PREREQ([2.2])
|
|
LT_INIT([disable-static])
|
|
LT_LANG([C++])
|
|
LT_LANG([C])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
# Checks for libraries.
|
|
AM_LDFLAGS=$LDFLAGS
|
|
LDFLAGS="$LDFLAGS -L/opt/intel/ipp/lib -lippcp -lippcore"
|
|
|
|
# Path to find wolfssl/options and other includes
|
|
AM_CPPFLAGS=$CPPFLAGS
|
|
CPPFLAGS="$CPPFLAGS -I../../ -I/opt/intel/ipp/include"
|
|
AC_CHECK_LIB([ippcore], [ippGetStatusString], [], [AC_MSG_ERROR([ippcore library needed ./configure LDFLAGS=/path/to/ipp/lib])])
|
|
AC_CHECK_LIB([ippcp], [ippsRSA_InitPublicKey], [], [AC_MSG_ERROR([ippcp library needed ./configure LDFLAGS=/path/to/ipp/lib])])
|
|
|
|
# check headers
|
|
AC_CHECK_HEADER([ippcp.h], [], [AC_MSG_ERROR([ippcp.h not found ./configure CPPFLAGS=-I/ipp/headers])])
|
|
AC_CHECK_HEADER([ipp.h], [], [AC_MSG_ERROR([ipp.h not found ./configure CPPFLAGS=-I/ipp/headers])])
|
|
|
|
LDFLAGS=$AM_LDFLAGS
|
|
CPPFLAGS=$AM_CPPFLAGS
|
|
|
|
AM_LDFLAGS="-L/opt/intel/ipp/lib -lippcp -lippcore"
|
|
AM_CPPFLAGS="-I/opt/intel/ipp/include"
|
|
|
|
AC_SUBST([AM_CPPFLAGS])
|
|
AC_SUBST([AM_LDFLAGS])
|
|
AC_C_INLINE
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|