Re-Added the getopt.c and getopt1.c to the build process

httperf now compiles on Linux, OpenBSD, FreeBSD,  Solaris
(with cc and gcc) and HP-UX 11i (with cc and gcc)
This commit is contained in:
tbbulloc 2007-01-27 02:09:55 +00:00
parent 5fd630229b
commit 0b1310494b
7 changed files with 15 additions and 13 deletions

View File

@ -1,3 +1,9 @@
2007-01-26 Ted Bullock <tbullock@canada.com>
* Re-Added the getopt.c and getopt1.c to the build process
httperf now compiles on Linux, OpenBSD, FreeBSD, Solaris
(with cc and gcc) and HP-UX 11i (with cc and gcc)
2007-01-26 Ted Bullock <tbullock@canada.com>
* Revised Makefile.am for src directories to explicitly include the

View File

@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT(httperf, 0.9, httperf@linux.hpl.hp.com)
AC_INIT(httperf, 0.9.0, httperf@linux.hpl.hp.com)
AC_CONFIG_SRCDIR([src/httperf.c])
AC_CONFIG_HEADER([config.h])
@ -19,13 +19,14 @@ if test "$enable_debug" = yes; then
fi
# Checks for programs.
AC_PROG_CC
AC_GNU_SOURCE
AC_PROG_CC([cc gcc])
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_GCC_TRADITIONAL
# Checks for libraries.
AC_CHECK_LIB(m, sqrt)
AC_CHECK_LIB(crypto, main)
AC_CHECK_LIB(ssl, SSL_version)
# The following checks are for solaris and its ilk
@ -71,6 +72,6 @@ AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([gethostbyname gettimeofday memset munmap select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul inet_aton])
AC_CHECK_FUNCS([gethostbyname gettimeofday memset munmap select socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol strtoul inet_aton getopt_long])
AC_OUTPUT(Makefile man/Makefile src/stat/Makefile src/lib/Makefile src/gen/Makefile src/Makefile)

View File

@ -1,8 +1,7 @@
SUBDIRS = gen lib stat
# what flags you want to pass to the C compiler & linker
AM_CFLAGS = -Wall -I$(srcdir)/{gen,lib,stat}/ -I.
AM_LDFLAGS = -lm
AM_CFLAGS = -I$(srcdir) -I$(srcdir)/gen -I$(srcdir)/lib -I$(srcdir)/stat
bin_PROGRAMS = httperf idleconn
httperf_SOURCES = httperf.c httperf.h object.c object.h call.c call.h conn.c \

View File

@ -1,5 +1,5 @@
# what flags you want to pass to the C compiler & linker
AM_CFLAGS = -Wall -O2 -I$(srcdir)/../ -I$(srcdir)/../../ -I.. -I$(srcdir)
AM_CFLAGS = -I$(srcdir)/..
AM_LDFLAGS =
noinst_LIBRARIES = libgen.a

View File

@ -61,9 +61,7 @@
#include <ctype.h>
#include <errno.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>

View File

@ -1,7 +1,6 @@
# what flags you want to pass to the C compiler & linker
AM_CFLAGS = -Wall -O2 -I$(srcdir)/../ -I$(srcdir)/../../
AM_LDFLAGS =
noinst_LIBRARIES = libutil.a
libutil_a_SOURCES = ssl_writev.c
libutil_a_SOURCES = getopt.c getopt.h getopt1.c ssl_writev.c

View File

@ -1,6 +1,5 @@
# what flags you want to pass to the C compiler & linker
AM_CFLAGS = -Wall -O2 -I$(srcdir)/../ -I$(srcdir)/../gen/ -I$(srcdir)/../../
AM_LDFLAGS =
AM_CFLAGS = -I$(srcdir)/.. -I$(srcdir)/../gen
noinst_LIBRARIES = libstat.a
libstat_a_SOURCES = basic.c sess_stat.c print_reply.c stats.h