~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl vim: set noai tw=0:
2
 
dnl $Id: configure.ac 6685 2007-11-24 04:33:51Z relson $
 
2
dnl $Id: configure.ac 6813 2009-02-21 20:41:42Z relson $
3
3
dnl
4
4
dnl configure.ac for bogofilter
5
5
dnl (C) Copyright 2003 Clint Adams, Gyepi Sam, David Relson, Matthias Andree
17
17
dnl                 part of the bogofilter source).
18
18
dnl ********************************************************
19
19
dnl
20
 
AC_INIT([bogofilter],[1.1.7])
 
20
AC_INIT([bogofilter],[1.2.0])
21
21
dnl
22
22
AC_PREREQ(2.59)
 
23
dnl AC_PREREQ(2.60) dnl if AC_USE_SYSTEM_EXTENSIONS is desired
23
24
AC_CONFIG_SRCDIR([src/bogofilter.c])
24
25
AC_CANONICAL_TARGET
25
26
AM_INIT_AUTOMAKE([foreign 1.8 dist-bzip2 no-installinfo])
27
28
 
28
29
AC_PROG_AWK
29
30
AC_PROG_CC(gcc xlc cc)
30
 
dnl AC_GNU_SOURCE
 
31
dnl this requires autoconf 2.60:
 
32
dnl AC_USE_SYSTEM_EXTENSIONS
31
33
AC_CHECK_TOOL(AR, ar, no)
32
34
if test "$AR" = no ; then
33
35
  AC_MSG_ERROR([Please make sure that "ar" is in your PATH.])
192
194
        *2.5.4) flex=254 ;;
193
195
        *2.5.31) flex=253x ;;
194
196
        *2.5.33) flex=253x ;;
 
197
        *2.5.35) flex=O.K. ;;
195
198
    esac
196
199
fi
197
200
dnl flex=yes
377
380
AC_TYPE_UID_T
378
381
AC_TYPE_SIGNAL
379
382
AC_FUNC_SELECT_ARGTYPES
380
 
if test "$ICC" = no ; then
381
 
# AC_FUNC_SETVBUF_REVERSED for some reason reports a bogus "yes"
382
 
# with Intel C++ that leads to SIGSEGV at run time.
383
 
# Skip the test on ICC.
384
 
AC_FUNC_SETVBUF_REVERSED
385
 
fi
386
383
AC_CHECK_TYPES([uint, ulong, uint32_t, u_int32_t, int32_t, int16_t, u_int16_t, uint16_t, u_int8_t, ssize_t])
387
384
AC_CHECK_TYPE(u_long, unsigned long)
388
385
dnl XXX FIXME - this is a crude hack and not necessarily working,
472
469
        AC_LIB_LINKFLAGS([sqlite3])
473
470
        LIBDB="$LIBSQLITE3"
474
471
        WITH_DB_ENGINE="sqlite3"
 
472
        saveLIBS="$LIBS"
 
473
        LIBS="$LIBDB $LIBS"
 
474
        AC_CHECK_FUNC([sqlite3_prepare_v2],,AC_DEFINE(sqlite3_prepare_v2,sqlite3_prepare,[Define to sqlite3_prepare if new interface missing (for sqlite < 3.3.9)]))
 
475
        LIBS="$saveLIBS"
475
476
        ;;
476
477
    xtokyocabinet)
477
478
        AC_DEFINE(ENABLE_TOKYOCABINET_DATASTORE,1, [Enable tokyocabinet datastore])
838
839
       ;;
839
840
esac
840
841
 
 
842
bogofilter_transform=`echo "${program_transform_name}" | sed -e 's,\\\\\\\\,\\\\,g;s,\\\$\\\$,\$,g'`
 
843
transformed_bogofilter=`echo bogofilter | sed -e "$bogofilter_transform"`
 
844
transformed_bogoutil=`echo bogoutil | sed -e "$bogofilter_transform"`
 
845
AC_SUBST(transformed_bogofilter)
 
846
AC_SUBST(transformed_bogoutil)
 
847
 
841
848
# Note the \\\\ for backslashes.  Autoconf eats one layer, leaving \\
842
849
 
843
850
AC_DEFINE(CURDIR_S, ".", [Define name of current directory (C string)])