libclammspack/configure.ac
d3699d57
 # -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59)
a7ac0e8d
 AC_INIT([libmspack],[0.10.1alpha],[kyzer@cabextract.org.uk])
d3699d57
 AC_CONFIG_MACRO_DIR([m4])
a7ac0e8d
 AM_INIT_AUTOMAKE([1.11])
 AM_SILENT_RULES([yes])
d3699d57
 AC_CONFIG_SRCDIR([mspack/mspack.h])
 AC_CONFIG_HEADER([config.h])
 
 # --enable-debug option
 AC_ARG_ENABLE(debug,
   AS_HELP_STRING(--enable-debug,enable debugging),
   enable_debug=$enableval,
   enable_debug=no)
 if test x$enable_debug = xyes; then
   AC_DEFINE(DEBUG, 1, [Turn debugging mode on?])
 fi
 
 # Checks for programs.
 AC_PROG_CC
 AM_CONDITIONAL(GCC, test x$GCC = 'xyes')
45706a62
 AM_PROG_AR
d3699d57
 AC_PROG_INSTALL
 LT_INIT
 
 # Checks for header files.
a7ac0e8d
 AC_CHECK_HEADERS([inttypes.h])
d3699d57
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
a7ac0e8d
 AC_C_BIGENDIAN
d3699d57
 AC_TYPE_MODE_T
 AC_TYPE_OFF_T
 AC_TYPE_SIZE_T
 AC_CHECK_SIZEOF([off_t])
45706a62
 
 # Checks for library functions
 AX_FUNC_MKDIR
a7ac0e8d
 AC_CHECK_FUNCS([towlower])
d3699d57
 
 # largefile support
 AC_SYS_LARGEFILE
 AC_FUNC_FSEEKO
 
a7ac0e8d
 AC_CONFIG_FILES([Makefile libmspack.pc])
d3699d57
 AC_OUTPUT