2
0

autogen.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/sh
  2. #
  3. # Create configure and makefile stuff...
  4. #
  5. # Git hooks should come before autoreconf.
  6. if [ -d .git ]; then
  7. if [ ! -d .git/hooks ]; then
  8. mkdir .git/hooks || exit $?
  9. fi
  10. if [ ! -e .git/hooks/pre-commit ]; then
  11. ln -s ../../pre-commit.sh .git/hooks/pre-commit || exit $?
  12. fi
  13. if [ ! -e .git/hooks/pre-push ]; then
  14. ln -s ../../pre-push.sh .git/hooks/pre-push || exit $?
  15. fi
  16. fi
  17. # if and as needed, create empty dummy versions of various files, mostly
  18. # associated with fips/self-test and asynccrypt:
  19. for dir in \
  20. ./wolfssl/wolfcrypt/port/intel \
  21. ./wolfssl/wolfcrypt/port/cavium
  22. do
  23. if [ ! -e "$dir" ]; then
  24. mkdir "$dir" || exit $?
  25. fi
  26. done
  27. for file in \
  28. ./wolfssl/options.h \
  29. ./ctaocrypt/src/fips.c \
  30. ./ctaocrypt/src/fips_test.c \
  31. ./wolfcrypt/src/fips.c \
  32. ./wolfcrypt/src/fips_test.c \
  33. ./wolfcrypt/src/wolfcrypt_first.c \
  34. ./wolfcrypt/src/wolfcrypt_last.c \
  35. ./wolfssl/wolfcrypt/fips.h \
  36. ./wolfcrypt/src/selftest.c \
  37. ./wolfcrypt/src/async.c \
  38. ./wolfssl/wolfcrypt/async.h \
  39. ./wolfcrypt/src/port/intel/quickassist.c \
  40. ./wolfcrypt/src/port/intel/quickassist_mem.c \
  41. ./wolfcrypt/src/port/cavium/cavium_nitrox.c \
  42. ./wolfssl/wolfcrypt/port/intel/quickassist.h \
  43. ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h \
  44. ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
  45. do
  46. if [ ! -e "$file" ]; then
  47. > "$file" || exit $?
  48. fi
  49. done
  50. # If this is a source checkout then call autoreconf with error as well
  51. if [ -e .git ]; then
  52. export WARNINGS="all,error"
  53. else
  54. export WARNINGS="all"
  55. fi
  56. autoreconf --install --force