A clone of btpd with my configuration changes.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

49 lignes
977 B

  1. AC_INIT(btpd, 0.13, btpd@murmeldjur.se)
  2. AM_INIT_AUTOMAKE([foreign])
  3. AC_CONFIG_FILES([Makefile btpd/Makefile misc/Makefile cli/Makefile])
  4. AC_PROG_CC
  5. AC_PROG_RANLIB
  6. CFLAGS="$CFLAGS -std=c99"
  7. CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64"
  8. AC_ARG_WITH(openssl,
  9. [ --with-openssl=dir use openssl installed in dir],
  10. [
  11. AC_SUBST(openssl_LDFLAGS,["-L${withval}/lib -Wl,-rpath=${withval}/lib"])
  12. AC_SUBST(openssl_CPPFLAGS,"-I${withval}/include")
  13. ],
  14. [])
  15. AC_ARG_WITH(warn,
  16. [ --with-warn=level select warning preset (no,all,allerr)],
  17. [
  18. case $withval in
  19. no)
  20. ;;
  21. all)
  22. CFLAGS="$CFLAGS -Wall"
  23. ;;
  24. allerr)
  25. CFLAGS="$CFLAGS -Wall -Werror"
  26. ;;
  27. *)
  28. echo "Warning preset \"$withval\" not recognized. See --help."
  29. exit 1
  30. ;;
  31. esac
  32. ],
  33. [])
  34. old_LDFLAGS="$LDFLAGS"
  35. LDFLAGS="$LDFLAGS $openssl_LDFLAGS"
  36. AC_CHECK_LIB(crypto, SHA1_Final, :, echo Must have openssl; exit 1)
  37. LDFLAGS=$old_LDFLAGS
  38. AC_CONFIG_SUBDIRS([libevent])
  39. AC_OUTPUT