autogen.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
  11. ln -s -f ../../pre-push.sh .git/hooks/pre-push
  12. fi
  13. # touch options.h (make sure it exists)
  14. touch ./wolfssl/options.h
  15. # touch fips files for non fips distribution
  16. touch ./ctaocrypt/src/fips.c
  17. touch ./ctaocrypt/src/fips_test.c
  18. touch ./wolfcrypt/src/fips.c
  19. touch ./wolfcrypt/src/fips_test.c
  20. touch ./wolfcrypt/src/wolfcrypt_first.c
  21. touch ./wolfcrypt/src/wolfcrypt_last.c
  22. touch ./wolfssl/wolfcrypt/fips.h
  23. # touch CAVP selftest files for non-selftest distribution
  24. touch ./wolfcrypt/src/selftest.c
  25. # touch async crypt files
  26. touch ./wolfcrypt/src/async.c
  27. touch ./wolfssl/wolfcrypt/async.h
  28. # touch async port files
  29. touch ./wolfcrypt/src/port/intel/quickassist.c
  30. touch ./wolfcrypt/src/port/intel/quickassist_mem.c
  31. touch ./wolfcrypt/src/port/cavium/cavium_nitrox.c
  32. if [ ! -d ./wolfssl/wolfcrypt/port/intel ]; then
  33. mkdir ./wolfssl/wolfcrypt/port/intel
  34. fi
  35. touch ./wolfssl/wolfcrypt/port/intel/quickassist.h
  36. touch ./wolfssl/wolfcrypt/port/intel/quickassist_mem.h
  37. if [ ! -d ./wolfssl/wolfcrypt/port/cavium ]; then
  38. mkdir ./wolfssl/wolfcrypt/port/cavium
  39. fi
  40. touch ./wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
  41. # If this is a source checkout then call autoreconf with error as well
  42. if test -e .git; then
  43. WARNINGS="all,error"
  44. else
  45. WARNINGS="all"
  46. fi
  47. autoreconf --install --force --verbose