The httperf - HTTP load generator with post-quantum support from BoringSSL
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

configure.ac 2.4 KiB

há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
há 18 anos
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)