File: configure.ac

package info (click to toggle)
mailfilter 0.6.2-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,268 kB
  • ctags: 2,088
  • sloc: ansic: 6,502; sh: 4,443; cpp: 2,169; makefile: 465; yacc: 426; lex: 171; perl: 106; sed: 16
file content (124 lines) | stat: -rw-r--r-- 3,384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# configure.in: Autoconfigure input file for mailfilter
# $Id: configure.ac,v 1.6 2004/08/08 13:21:59 baueran Exp $
#
# Copyright (c) 2000 - 2004  Andreas Bauer <baueran@in.tum.de>
#  
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#  
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#  
#  
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a configuration
# script generated by Autoconf, you may include it under the same
# distribution terms that you use for the rest of that program.
#  
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.54)
AC_INIT(mailfilter, 0.6.2, [mailfilter-dev@lists.sourceforge.net])
AC_REVISION($Revision: 1.6 $)
AC_COPYRIGHT(Copyright (c) 2000 - 2004  Andreas Bauer <baueran@in.tum.de>)

AC_CONFIG_SRCDIR([src/mailfilter.cc])
AC_CONFIG_HEADERS(config.h)

AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_AWK
AC_PROG_CXX
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_MAKE_SET
AC_PROG_YACC
AM_PROG_LEX

# Static or dynamic linking?  Look inside m4/ for further information.
PETI_ENABLED_DYNAMIC_LINKING

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h \
	fcntl.h               \
	inttypes.h            \
	libintl.h             \
	locale.h              \
	netdb.h               \
	netinet/in.h          \
	stdlib.h              \
	string.h              \
	sys/socket.h          \
	sys/time.h            \
	unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME

# GNU gettext.
ALL_LINGUAS="de el es fr it pl pt_BR ru"
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION(0.11.5)

AC_CHECK_FUNC(getopt_long,
 	[AC_DEFINE(HAVE_GETOPT_H,1,
	           [Define this if there is a system getopt.h header])],
	[AC_MSG_RESULT(Using included getopt header)])

# Checks for (library) functions.
AC_FUNC_ERROR_AT_LINE
AC_TYPE_SIGNAL
AC_CHECK_LIB(socket,connect)
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(regex,regcomp)

AC_CHECK_FUNCS([alarm \
	gethostbyname \
	gettimeofday  \
	memset        \
	regcomp       \
	select        \
	setlocale     \
	socket        \
	strcasecmp    \
	strdup        \
	snprintf      \
	strerror])

# Usually this should not be changed.
AC_DEFINE(PREVIEW_COMMAND, "TOP %d 0\r\n",
           [Define different only if you know what you're doing!])

AC_CONFIG_FILES([Makefile \
	intl/Makefile     \
	po/Makefile.in    \
	m4/Makefile       \
	mailfilter.spec   \
	src/Makefile      \
	man/Makefile      \
	doc/Makefile      \
	contrib/Makefile  \
	doc/Doxyfile])

AC_OUTPUT

cat <<EOF

$PACKAGE_NAME $PACKAGE_VERSION configured.

You can now type \`gmake' to compile $PACKAGE_NAME.
If \`gmake' is not available on your system, try \`make' instead.
EOF