33# Now you only need to update the version number in two places - below,
44# and in the README
55
6- AC_INIT ( [ wandio] ,[ 4.2.3 ] ,[ contact@wand.net .nz] ,[ wandio] )
6+ AC_INIT ( [ wandio] ,[ 4.2.4 ] ,[ shane@alcock.co .nz] ,[ wandio] )
77
88WANDIO_MAJOR=4
99WANDIO_MID=2
10- WANDIO_MINOR=3
10+ WANDIO_MINOR=4
1111
1212# OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not
1313# searched by default - add it to LDFLAGS so we at least have a chance of
@@ -50,7 +50,7 @@ AC_CACHE_CHECK([whether the C++ compiler works],
5050] )
5151
5252# Put all our automake definitions in config.h
53- AM_CONFIG_HEADER ([ config.h] )
53+ AC_CONFIG_HEADERS ( [ config.h] )
5454
5555# Checks for C and C++ compilers
5656AC_PROG_CC
@@ -76,7 +76,8 @@ AC_FUNC_REALLOC
7676AC_C_CONST
7777AC_C_BIGENDIAN
7878AC_TYPE_SIZE_T
79- AC_HEADER_TIME
79+ AC_CHECK_HEADERS_ONCE ( [ sys/time.h] )
80+
8081AC_SYS_LARGEFILE
8182
8283ADD_INCLS=""
@@ -96,7 +97,7 @@ gcc_PURE
9697gcc_FORMAT
9798
9899# Check for libtool
99- AC_PROG_LIBTOOL
100+ LT_INIT
100101
101102# Checks for library functions.
102103AC_PROG_GCC_TRADITIONAL
@@ -106,9 +107,6 @@ AC_PROG_GCC_TRADITIONAL
106107
107108AC_CHECK_SIZEOF ( [ long int] )
108109
109-
110- # Checks for header files.
111- AC_HEADER_STDC
112110AC_CHECK_HEADERS ( stddef.h inttypes.h sys/prctl.h )
113111
114112# Checks for various "optional" libraries
124122LIBS=
125123
126124AC_ARG_WITH ( [ bzip2] ,
127- AC_HELP_STRING ( [ --with-bzip2] , [ build with support for bzip2 compressed files] ))
125+ AS_HELP_STRING ( [ --with-bzip2] ,[ build with support for bzip2 compressed files] ) )
128126
129127AS_IF ( [ test "x$with_bzip2" != "xno"] ,
130128 [
@@ -145,7 +143,7 @@ AS_IF([test "x$have_bzip" = "xyes"], [
145143)
146144
147145AC_ARG_WITH ( [ zlib] ,
148- AC_HELP_STRING ( [ --with-zlib] , [ build with support for zlib compressed files] ))
146+ AS_HELP_STRING ( [ --with-zlib] ,[ build with support for zlib compressed files] ) )
149147
150148AS_IF ( [ test "x$with_zlib" != "xno"] ,
151149 [
@@ -167,7 +165,7 @@ AS_IF([test "x$have_zlib" = "xyes"], [
167165)
168166
169167AC_ARG_WITH ( [ lzo] ,
170- AC_HELP_STRING ( [ --with-lzo] , [ build with support for writing lzo compressed files] ))
168+ AS_HELP_STRING ( [ --with-lzo] ,[ build with support for writing lzo compressed files] ) )
171169
172170AS_IF ( [ test "x$with_lzo" != "xno"] ,
173171 [
@@ -189,7 +187,7 @@ AS_IF([test "x$have_lzo" = "xyes"], [
189187)
190188
191189AC_ARG_WITH ( [ lzma] ,
192- AC_HELP_STRING ( [ --with-lzma] , [ build with support for lzma compressed files] ))
190+ AS_HELP_STRING ( [ --with-lzma] ,[ build with support for lzma compressed files] ) )
193191
194192AS_IF ( [ test "x$with_lzma" != "xno"] ,
195193 [
@@ -211,7 +209,7 @@ AS_IF([test "x$have_lzma" = "xyes"], [
211209)
212210
213211AC_ARG_WITH ( [ zstd] ,
214- AC_HELP_STRING ( [ --with-zstd] , [ build with support for zstd compressed files] ))
212+ AS_HELP_STRING ( [ --with-zstd] ,[ build with support for zstd compressed files] ) )
215213
216214AS_IF ( [ test "x$with_zstd" != "xno"] ,
217215 [
@@ -233,7 +231,7 @@ AS_IF([test "x$have_zstd" = "xyes"], [
233231)
234232
235233AC_ARG_WITH ( [ qatzip] ,
236- AC_HELP_STRING ( [ --with-qatzip] , [ build with support for Intel QuickAssist compression] ))
234+ AS_HELP_STRING ( [ --with-qatzip] ,[ build with support for Intel QuickAssist compression] ) )
237235
238236AS_IF ( [ test "x$with_qatzip" != "xno"] ,
239237 [
@@ -255,12 +253,12 @@ AS_IF([test "x$have_qatzip" = "xyes"], [
255253)
256254
257255AC_ARG_WITH ( [ lz4] ,
258- AC_HELP_STRING ( [ --with-lz4] , [ build with support for lz4 compressed files] ))
256+ AS_HELP_STRING ( [ --with-lz4] ,[ build with support for lz4 compressed files] ) )
259257
260258AS_IF ( [ test "x$with_lz4" != "xno"] ,
261259 [
262260 AC_CHECK_LIB ( lz4 , LZ4F_createDecompressionContext , have_lz4f=yes , have_lz4f=no )
263- ] , [ have_zstd =no] )
261+ ] , [ have_lz4f =no] )
264262
265263AS_IF ( [ test "x$have_lz4f" = "xyes"] , [
266264 if test "$ac_cv_lib_lz4_code" != "none required"; then
@@ -291,7 +289,7 @@ AS_IF([test "x$have_lz4f" = "xyes"], [
291289)
292290
293291AC_ARG_WITH ( [ http] ,
294- AC_HELP_STRING ( [ --with-http] , [ build with support for reading files over http (using libcurl)] ))
292+ AS_HELP_STRING ( [ --with-http] ,[ build with support for reading files over http (using libcurl)] ) )
295293
296294AS_IF ( [ test "x$with_http" != "xno"] ,
297295 [
0 commit comments