autogen.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. #
  3. # Create configure and makefile stuff...
  4. #
  5. # Git hooks should come before autoreconf.
  6. if test -d .git; then
  7. if ! test -d .git/hooks; then
  8. mkdir .git/hooks
  9. fi
  10. if [ ! -e .git/hooks/pre-commit ]; then
  11. ln -s ../../pre-commit.sh .git/hooks/pre-commit
  12. fi
  13. if [ ! -e .git/hooks/pre-push ]; then
  14. ln -s ../../pre-push.sh .git/hooks/pre-push
  15. fi
  16. fi
  17. # touch options.h (make sure it exists)
  18. touch ./wolfssl/options.h
  19. # touch fips files for non fips distribution
  20. touch ./ctaocrypt/src/fips.c
  21. touch ./ctaocrypt/src/fips_test.c
  22. touch ./wolfcrypt/src/fips.c
  23. touch ./wolfcrypt/src/fips_test.c
  24. touch ./wolfcrypt/src/wolfcrypt_first.c
  25. touch ./wolfcrypt/src/wolfcrypt_last.c
  26. touch ./wolfssl/wolfcrypt/fips.h
  27. # touch CAVP selftest files for non-selftest distribution
  28. touch ./wolfcrypt/src/selftest.c
  29. # touch async crypt files
  30. touch ./wolfcrypt/src/async.c
  31. touch ./wolfssl/wolfcrypt/async.h
  32. # touch async port files
  33. touch ./wolfcrypt/src/port/intel/quickassist.c
  34. touch ./wolfcrypt/src/port/intel/quickassist_mem.c
  35. touch ./wolfcrypt/src/port/cavium/cavium_nitrox.c
  36. if [ ! -d ./wolfssl/wolfcrypt/port/intel ]; then
  37. mkdir ./wolfssl/wolfcrypt/port/intel
  38. fi
  39. touch ./wolfssl/wolfcrypt/port/intel/quickassist.h
  40. touch ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h
  41. if [ ! -d ./wolfssl/wolfcrypt/port/cavium ]; then
  42. mkdir ./wolfssl/wolfcrypt/port/cavium
  43. fi
  44. touch ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
  45. # If this is a source checkout then call autoreconf with error as well
  46. if test -e .git; then
  47. WARNINGS="all,error"
  48. else
  49. WARNINGS="all"
  50. fi
  51. autoreconf --install --force --verbose