~ubuntu-branches/ubuntu/trusty/advancecomp/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ozarowski
  • Date: 2006-05-13 21:15:49 UTC
  • Revision ID: james.westby@ubuntu.com-20060513211549-2vu7peis643ojcm5
Tags: upstream-1.15
ImportĀ upstreamĀ versionĀ 1.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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])
 
6
AC_CANONICAL_HOST
 
7
 
 
8
# Checks for programs.
 
9
AC_PROG_CC
 
10
AC_PROG_CXX
 
11
AC_PROG_INSTALL
 
12
AC_PROG_AWK
 
13
AC_CHECK_PROGS(TAR, tar)
 
14
AC_CHECK_PROGS(GZIP, gzip)
 
15
AC_CHECK_PROGS(GROFF, groff)
 
16
AC_CHECK_PROGS(COL, col)
 
17
 
 
18
# Checks for libraries.
 
19
AC_CHECK_LIB([z], [adler32], [], [
 
20
AC_MSG_ERROR([the zlib library is required])
 
21
])
 
22
 
 
23
# Checks for header files.
 
24
AC_HEADER_STDC
 
25
AC_HEADER_SYS_WAIT
 
26
AC_HEADER_DIRENT
 
27
AC_HEADER_TIME
 
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])
 
30
 
 
31
# Checks for typedefs, structures, and compiler characteristics.
 
32
AC_C_CONST
 
33
AC_C_INLINE
 
34
 
 
35
# Checks for library functions.
 
36
AC_CHECK_FUNCS([getopt getopt_long snprintf vsnprintf])
 
37
 
 
38
AC_DEFINE(USE_7Z,1,[Use the 7z library])
 
39
AC_DEFINE(USE_LZMA,1,[Use the lzma compression])
 
40
 
 
41
AC_ARG_ENABLE(
 
42
        bzip2,
 
43
        [  --enable-bzip2       Use the bzip2 compression],
 
44
        AC_DEFINE(USE_BZIP2,1,[Use the bzip2 compression])
 
45
        AC_CHECK_LIB([bz2],[BZ2_bzBuffToBuffCompress])
 
46
)
 
47
 
 
48
# Configure the library
 
49
CFLAGS="$CFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
 
50
CXXFLAGS="$CXXFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
 
51
 
 
52
AC_CONFIG_FILES([Makefile])
 
53
AC_OUTPUT
 
54