1
# Process this file with autoconf to produce a configure script.
2
AC_INIT([AdvanceCOMP],[1.15])
3
AC_CONFIG_SRCDIR([rezip.cc])
4
AM_INIT_AUTOMAKE([foreign no-dependencies])
5
AC_CONFIG_HEADERS([config.h])
13
AC_CHECK_PROGS(TAR, tar)
14
AC_CHECK_PROGS(GZIP, gzip)
15
AC_CHECK_PROGS(GROFF, groff)
16
AC_CHECK_PROGS(COL, col)
18
# Checks for libraries.
19
AC_CHECK_LIB([z], [adler32], [], [
20
AC_MSG_ERROR([the zlib library is required])
23
# Checks for header files.
28
AC_CHECK_HEADERS([unistd.h getopt.h utime.h stdarg.h varargs.h stdint.h])
29
AC_CHECK_HEADERS([sys/types.h sys/stat.h sys/time.h sys/utime.h])
31
# Checks for typedefs, structures, and compiler characteristics.
35
# Checks for library functions.
36
AC_CHECK_FUNCS([getopt getopt_long snprintf vsnprintf])
38
AC_DEFINE(USE_7Z,1,[Use the 7z library])
39
AC_DEFINE(USE_LZMA,1,[Use the lzma compression])
43
[ --enable-bzip2 Use the bzip2 compression],
44
AC_DEFINE(USE_BZIP2,1,[Use the bzip2 compression])
45
AC_CHECK_LIB([bz2],[BZ2_bzBuffToBuffCompress])
48
# Configure the library
49
CFLAGS="$CFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
50
CXXFLAGS="$CXXFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
52
AC_CONFIG_FILES([Makefile])