File: configure.in

package info (click to toggle)
httperf 0.8-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 736 kB
  • ctags: 816
  • sloc: ansic: 6,665; sh: 2,473; makefile: 228
file content (75 lines) | stat: -rw-r--r-- 1,789 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
dnl Process this file with autoconf to produce a configure script.
AC_INIT(timer.h)
AC_CONFIG_HEADER(config.h)

AC_ARG_ENABLE(debug, [  --enable-debug          enable debug support])

if test "$enable_debug" = yes; then
  CPPFLAGS="${CPPFLAGS} -DDEBUG"
else
  CPPFLAGS="${CPPFLAGS} -DNDEBUG"
fi

CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -D_XOPEN_SOURCE"
LDFLAGS="${LDFLAGS}"

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_GCC_TRADITIONAL
AC_CANONICAL_SYSTEM

if test "$GCC" = "yes"; then
 CFLAGS="${CFLAGS} -Wall"
else
 # ugly, there's gotta be a better way to do this...
 case "${build_os}" in
   hpux*)
     CPPFLAGS="${CPPFLAGS} -Ae"
     CFLAGS="${CFLAGS} +ESlit"
     if test "$enable_debug" != yes; then
       CFLAGS="${CFLAGS} +O2"
     fi
     ;;
 esac
fi

dnl Checks for libraries.
dnl Replace `main' with a function in -lm:
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(crypto, main)
AC_CHECK_LIB(ssl, SSL_version)


dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h openssl/ssl.h)

if test "$ac_cv_header_openssl_ssl_h" = "yes" \
	-a "$ac_cv_lib_ssl_SSL_version" = "yes" \
	-a "$ac_cv_lib_crypto_main" = "yes"; then
  AC_DEFINE(HAVE_SSL)
fi

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_LONG_LONG
AC_HEADER_TIME
AC_CHECK_SIZEOF(long)
AC_CHECK_TYPE(u_char, unsigned char)
AC_CHECK_TYPE(u_short, unsigned short)
AC_CHECK_TYPE(u_int, unsigned int)
AC_CHECK_TYPE(u_long, unsigned long)

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MMAP
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gettimeofday select socket strdup strerror strtod strtol \
	       strtoul getopt_long)

AC_OUTPUT(stat/Makefile lib/Makefile Makefile gen/Makefile)