2
0

configure.ac 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.63])
  4. AC_INIT([usercypto], [0.1], [])
  5. AC_CONFIG_SRCDIR([src/rsa.c])
  6. AM_INIT_AUTOMAKE([1.11 -Wall -Werror -Wno-portability foreign tar-ustar subdir-objects no-define color-tests])
  7. LT_PREREQ([2.2])
  8. LT_INIT([disable-static])
  9. LT_LANG([C++])
  10. LT_LANG([C])
  11. # Checks for programs.
  12. AC_PROG_CC
  13. AC_CONFIG_MACRO_DIR([m4])
  14. # Checks for libraries.
  15. AM_LDFLAGS=$LDFLAGS
  16. LDFLAGS="$LDFLAGS -L/opt/intel/ipp/lib -lippcp -lippcore"
  17. # Path to find wolfssl/options and other includes
  18. AM_CPPFLAGS=$CPPFLAGS
  19. CPPFLAGS="$CPPFLAGS -I../../ -I/opt/intel/ipp/include"
  20. AC_CHECK_LIB([ippcore], [ippGetStatusString], [], [AC_MSG_ERROR([ippcore library needed ./configure LDFLAGS=/path/to/ipp/lib])])
  21. AC_CHECK_LIB([ippcp], [ippsRSA_InitPublicKey], [], [AC_MSG_ERROR([ippcp library needed ./configure LDFLAGS=/path/to/ipp/lib])])
  22. # check headers
  23. AC_CHECK_HEADER([ippcp.h], [], [AC_MSG_ERROR([ippcp.h not found ./configure CPPFLAGS=-I/ipp/headers])])
  24. AC_CHECK_HEADER([ipp.h], [], [AC_MSG_ERROR([ipp.h not found ./configure CPPFLAGS=-I/ipp/headers])])
  25. LDFLAGS=$AM_LDFLAGS
  26. CPPFLAGS=$AM_CPPFLAGS
  27. AM_LDFLAGS="-L/opt/intel/ipp/lib -lippcp -lippcore"
  28. AM_CPPFLAGS="-I/opt/intel/ipp/include"
  29. AC_SUBST([AM_CPPFLAGS])
  30. AC_SUBST([AM_LDFLAGS])
  31. AC_C_INLINE
  32. AC_CONFIG_FILES([Makefile])
  33. AC_OUTPUT