The httperf - HTTP load generator with post-quantum support from BoringSSL
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

102 satır
2.6 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.60)
  4. AC_INIT(httperf, 0.9.1, httperf@linux.hpl.hp.com)
  5. AC_CONFIG_SRCDIR([src/httperf.c])
  6. AC_CONFIG_HEADER([config.h])
  7. AC_CONFIG_MACRO_DIR([m4])
  8. AC_CANONICAL_TARGET
  9. AM_INIT_AUTOMAKE(httperf, 0.9.1)
  10. # Checks for programs.
  11. AC_GNU_SOURCE
  12. AC_PROG_CC([cc gcc])
  13. AC_PROG_CC_C99
  14. AC_PROG_INSTALL
  15. AC_PROG_LIBTOOL
  16. # Are we building the idleconn program?
  17. AC_ARG_ENABLE([idleconn],
  18. AS_HELP_STRING([--enable-idleconn],
  19. [Build the idleconn program (default=no), requires libevent]),
  20. [enable_idleconn=$enableval],
  21. [enable_idleconn=no])
  22. if test "$enable_idleconn" = "yes"; then
  23. AC_CHECK_LIB([event],
  24. [event_init],
  25. ,
  26. [AC_MSG_ERROR([libevent is required to build idleconn])])
  27. fi
  28. AM_CONDITIONAL(IDLECONN,
  29. [test "x$enable_idleconn" = xyes])
  30. # Checks for libraries.
  31. AC_CHECK_LIB(m, sqrt)
  32. AC_CHECK_LIB(crypto, main)
  33. AC_CHECK_LIB(ssl, SSL_version, , AC_MSG_WARN([SSL Disabled]) )
  34. # The following checks are for solaris and its ilk
  35. AC_SEARCH_LIBS([getsockopt], [socket])
  36. AC_SEARCH_LIBS([socket], [socket nsl])
  37. AC_SEARCH_LIBS([gethostbyname], [socket nsl])
  38. AC_SEARCH_LIBS([inet_aton], [resolv])
  39. # Checks for header files.
  40. AC_FUNC_ALLOCA
  41. AC_HEADER_TIME
  42. AC_CHECK_HEADERS([openssl/ssl.h getopt.h])
  43. if test "$ac_cv_header_openssl_ssl_h" = "yes" \
  44. -a "$ac_cv_lib_ssl_SSL_version" = "yes" \
  45. -a "$ac_cv_lib_crypto_main" = "yes"; then
  46. CFLAGS="${CFLAGS} -DHAVE_SSL"
  47. LDFLAGS="${LDFLAGS}"
  48. fi
  49. # Checks for typedefs, structures, and compiler characteristics.
  50. AC_C_CONST
  51. AC_TYPE_SIZE_T
  52. AC_TYPE_SSIZE_T
  53. AC_CHECK_TYPE(u_char, unsigned char)
  54. AC_CHECK_TYPE(u_short, unsigned short)
  55. AC_CHECK_TYPE(u_int, unsigned int)
  56. AC_CHECK_TYPE(u_long, unsigned long)
  57. # Check for unsigned long long int (stat/basic.c)
  58. AC_TYPE_UNSIGNED_LONG_LONG_INT
  59. if test "$ac_cv_type_unsigned_long_long_int" != "yes" ; then
  60. AC_CHECK_TYPE(u_wide, unsigned long)
  61. else
  62. AC_CHECK_TYPE(u_wide, unsigned long long)
  63. fi
  64. # Checks for library functions.
  65. AC_FUNC_MMAP
  66. AC_FUNC_SELECT_ARGTYPES
  67. AC_TYPE_SIGNAL
  68. AC_FUNC_STRTOD
  69. AC_FUNC_VPRINTF
  70. AC_CHECK_FUNCS([getopt_long])
  71. # Turn on Debug if necessary
  72. AC_ARG_ENABLE(debug,
  73. [ --enable-debug enable debug support])
  74. if test "$enable_debug" = yes; then
  75. CFLAGS="${CFLAGS} -DDEBUG"
  76. fi
  77. AC_ARG_WITH(epoll, AS_HELP_STRING([--with-epoll], [use epoll if available]))
  78. AS_IF([test "$with_epoll" != "no"],
  79. AC_CHECK_FUNC(epoll_create,
  80. AC_DEFINE([HAVE_EPOLL], 1, [#undef HAVE_EPOLL])))
  81. AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)