Sitsofe Wheeler
7c6a3e4a0b
iscsi-perf: Use gettimeofday if clock_gettime is unavailable
...
clock_gettime doesn't existing on OS X
(http://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x
) so add an autoconf test to check if the platform has it and fall back
on gettimeofday if not.
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com >
2015-03-01 16:15:51 +00:00
Ronnie Sahlberg
7865a8a26e
Merge branch 'sgio'
2014-12-21 15:07:40 -08:00
Ronnie Sahlberg
3d6c2be342
configure: only build the test tool and ld-iscsi iff we have shared libraries
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2014-10-22 17:44:03 -07:00
Ronnie Sahlberg
40de7d95a9
Configure: add a test for SG_IO
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2014-09-18 14:26:03 -07:00
Thomas Petazzoni
474e88740a
Fix CUnit test for cross-compilation
...
The current test in configure.ac for CUnit uses AC_TRY_RUN, which
doesn't work in a cross-compilation context, because we can't run on
the build machine the binaries that are built for the target. In
addition, the current logic assumes CUnit is available when the
AC_TRY_RUN test cannot be used (e.g in a cross-compilation case).
Since we actually don't care about *running* but only about testing
whether a simple program include the CUnit header file and linking
against the cunit library works, simply use AC_TRY_LINK() instead of
AC_TRY_RUN().
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com >
2014-09-07 14:40:02 +02:00
Ronnie Sahlberg
1deb4f8e4a
configure: tell platforms that dont have AM_PROG_* to just ignore it
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2014-08-16 19:43:25 -07:00
Ronnie Sahlberg
ace7f200fb
Revert "Revert "configure.ac: Avoid that automake complains that AM_PROG_AR is missing""
...
After checking several platforms, we do need this change in order to build.
If CentOS<old-version> does not manage we need to figure out why and how to fix it.
This reverts commit b9cf7e8cd2 .
2014-08-16 18:23:34 -07:00
Ronnie Sahlberg
b9cf7e8cd2
Revert "configure.ac: Avoid that automake complains that AM_PROG_AR is missing"
...
AM_PROG_AR is not available on some platforms. Revert while I investigate.
This reverts commit 6cdb47b9b4 .
2014-08-11 05:59:17 -07:00
Bart Van Assche
370741f83d
configure.ac: Enable the subdir-objects option
...
Avoid that automake >= 1.14 warns that some source files are in a
subdirectory but that the option subdir-objects is disabled. See also
http://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html#index-Options_002c-subdir_002dobjects
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2014-08-02 08:29:56 -07:00
Bart Van Assche
6cdb47b9b4
configure.ac: Avoid that automake complains that AM_PROG_AR is missing
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2014-08-02 08:29:26 -07:00
Ronnie Sahlberg
ae60611f68
AUTOTOOLS: Add Makefile.am for examples/
2014-03-22 17:46:02 -07:00
Ronnie Sahlberg
ea790b2f75
AUTOTOOLS: Add Makefile.am to test-tool
2014-03-22 16:46:25 -07:00
Ronnie Sahlberg
c07779cfa7
AUTOTOOLS: Add a Makefile.am for the iscsi-* utilities
2014-03-22 13:10:19 -07:00
Ronnie Sahlberg
65d3597c1b
AUTOTOOLS: Create Makefile.am for lib
2014-03-22 13:10:15 -07:00
Ronnie Sahlberg
5500f84402
AUTOTOOLS: Create a separate Makefile.am for the docs directory
2014-03-22 13:10:07 -07:00
Ronnie Sahlberg
7d1f7a5308
DOCS: Add configure --enable-manpages which controls whether to build the manpages or not
2014-03-22 13:08:24 -07:00
Bart Van Assche
bd948c959e
Port to CUnit version 2
...
Linux distributions like openSUSE 12.3 include CUnit version 2.
Apparently libiscsi uses some CUnit version 1 data structures that
have been modified in CUnit version 2. This causes the libiscsi
build to fail against CUnit version 2. Fix this by detecting the
CUnit version during the configure step.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2013-10-01 06:22:06 -07:00
Ronnie Sahlberg
027ff2fdca
Solaris: older versions of solaris needs to link with nsl/socket
2013-06-29 12:16:16 -07:00
Ronnie Sahlberg
b73e91c89a
Don't use -Wwrite-strings on Solaris
...
They have a weirdass struct option {} so we can't use this warning.
2013-06-29 12:10:43 -07:00
Doug Goldstein
2d43a056a9
Allow users to disable -Werror at configure time
...
Some users and distro packagers might not want to build with -Werror,
this allows them to disable using -Werror but enables it in the default
case so as to maintain the current behavior.
2013-06-05 14:28:48 -05:00
Paolo Bonzini
bcb2950d8d
use libgcrypt for MD5
...
This makes sure that CHAP authentication is disabled if the system
is running in FIPS 140-2 mode. MD5 is not a secure algorithm according
to the standard.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-05-03 12:51:15 +02:00
Ronnie Sahlberg
b3ca40efbe
Get rid of the popt dependency
2013-04-21 10:25:30 -07:00
Ronnie Sahlberg
402653b9f3
portability updates
...
add check if ipv6/sockaddr_in6 is availavble or not
add check for poll.h and only include when available
add includes for AROS
2013-04-18 19:43:36 -07:00
Paolo Bonzini
5bb67f0a0b
remove libdir hack
...
This does not work with Debian (which uses lib32 or multiarch) nor
when cross-compiling.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-02-22 18:01:23 +01:00
Paolo Bonzini
a5fd68472e
distribute pkgconfig file
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-02-22 18:01:22 +01:00
Ronnie Sahlberg
d21ad441bf
Add check for libcunit and only build the test suite if libcunit is available
2013-01-06 11:28:07 -08:00
Lee Duncan
efcb6a4df9
Added no-strict-aliasing to compile flags.
...
Would not compile on my openSUSE 12.2 system without this fix.
2012-12-22 10:59:07 -08:00
Ronnie Sahlberg
736e175e83
Build with -Werror
2012-11-11 10:15:52 -08:00
Michael Tokarev
aee0e3bf72
always export iscsi_set_tcp_keepalive()
...
Set only the (socket) options which are defined on a given platform.
The function becomes a no-op if no option is known at complie time.
Remove autoconf test for HAVE_TCP_KEEPALIVE too.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru >
2012-05-12 08:41:34 +10:00
Ronnie Sahlberg
846ace255a
Autoconf: Remove AS_SET_STATUS to be compatible with autoconf < 2.65
2012-03-10 10:55:48 +11:00
Ronnie Sahlberg
add1ce67e4
Revert "Rename libiscsi to libiscsiclient to avoid clash with obscure linux library"
...
We dont need to change name anymore so witch back to original libiscsi name
This reverts commit c4386dfb87 .
2012-03-07 14:30:37 +11:00
Ronnie Sahlberg
c4386dfb87
Rename libiscsi to libiscsiclient to avoid clash with obscure linux library
...
Change to version 2
2012-03-03 17:01:37 +11:00
Paolo Bonzini
b4bddce2c6
compile the library if popt is not available
2011-10-28 17:05:00 +02:00
Paolo Bonzini
a235a20fda
remove LOGDIR
...
It looks unused
2011-10-28 17:05:00 +02:00
Paolo Bonzini
17319072b1
use automake and libtool
...
This commits replaces the handwritten makefile with automake+libtool.
There is some hackery needed for the LD_PRELOAD shared library,
but apart from that there is nothing special and it is a large gain in
portability and standardization.
The spec file is modified as little as is needed to properly build
the RPMs.
2011-10-28 17:04:59 +02:00
Ronnie Sahlberg
49017fda58
OpenSolaris: Add support for opensolaris
2011-09-01 18:04:29 +10:00
Ronnie Sahlberg
cbc5bd5f96
only build the LD_PRELOAD hack on linux
2011-07-17 09:56:52 +10:00
Ronnie Sahlberg
b6782dd7c8
TCP KEEPALIVE support
...
Add tcp keeplaive support on platforms that support these socket options.
Set default to fail the socket after 120 seconds
2011-04-13 21:37:28 +10:00
Ronnie Sahlberg
87072d5622
Dont use gethostbyname2() at all since it is non-portable,
...
use gethostbyname() instead.
2011-01-03 14:48:43 +11:00
Ronnie Sahlberg
71ec54603d
Solaris install fixes, solaris needs to use ginstall, not install and it does not have ldconfig
2011-01-03 11:15:50 +11:00
Ronnie Sahlberg
adfb7326e3
Solaris needs -lsocket and -lnsl and does not support gethostbyname2()
...
With these changes we build and work on solaris
2011-01-03 10:57:35 +11:00
Ronnie Sahlberg
4e5fb3a60b
We need libpopt-dev to compile the utilities.
...
Add a test to configure to verify popt development libraries are available
and print an error and exit otherwise.
2010-12-05 14:48:34 +11:00
Ronnie Sahlberg
631954405a
add prefix exec_prefix libdir and bindir to the makefile
2010-12-05 13:40:48 +11:00
Ronnie Sahlberg
d7a1103e13
Add initial autoconf support to make it easier to get ported to
...
other platforms
2010-12-05 13:31:11 +11:00