/ [swis] / trunk / configure.ac
To checkout: svn checkout http://svn.gnu.org.ua/sources/swis/trunk/configure.ac
Puszcza

Contents of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Thu Oct 4 08:32:15 2007 UTC (13 years, 8 months ago) by gray
File size: 2011 byte(s)
* src/Makefile.am (LDADD): Add LIBICONV
* configure.ac: Minor change
* gnulib.modules: Add iconv

1 # This file is part of SWIS
2 # Copyright (C) 2007 Sergey Poznyakoff
3 #
4 # SWIS is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # SWIS is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with SWIS. If not, see <http://www.gnu.org/licenses/>.
16
17 AC_PREREQ(2.59)
18 AC_INIT([swis], 0.1, [gray@gnu.org.ua])
19 AC_CONFIG_SRCDIR([src/swis.h])
20 AC_CONFIG_AUX_DIR([build-aux])
21 AC_CONFIG_HEADER([config.h])
22 AM_INIT_AUTOMAKE
23
24 # Checks for programs.
25 AC_PROG_CC
26 AC_PROG_LEX
27 AC_PROG_YACC
28 AC_PROG_RANLIB
29 gl_EARLY
30
31 # Checks for libraries.
32
33 # Checks for header files.
34 AC_HEADER_STDC
35 AC_HEADER_SYS_WAIT
36 AC_CHECK_HEADERS([stdlib.h string.h sys/file.h unistd.h sys/sendfile.h])
37
38 # Checks for typedefs, structures, and compiler characteristics.
39 AC_C_CONST
40 AC_TYPE_SIGNAL
41 AC_TYPE_UID_T
42 AC_TYPE_PID_T
43 AC_TYPE_SIZE_T
44 AC_HEADER_STDBOOL
45
46 # Checks for library functions.
47 gl_INIT
48 AC_FUNC_FORK
49 AC_FUNC_MALLOC
50 AC_FUNC_MEMCMP
51 AC_FUNC_STAT
52 AC_FUNC_VPRINTF
53 AC_CHECK_FUNCS([memset strchr strdup strerror strrchr setegid setregid setresgid seteuid setreuid vsyslog sysconf getdtablesize])
54
55 # Iconv
56 AM_ICONV
57 AC_CHECK_HEADERS(iconv.h)
58 AC_CHECK_TYPE(iconv_t,:,
59 AC_DEFINE(iconv_t, int,
60 [Conversion descriptor type]),
61 [
62 #ifdef HAVE_ICONV_H
63 # include <iconv.h>
64 #endif
65 ])
66
67 AH_BOTTOM([
68 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
69 # define __attribute__(x)
70 #endif
71
72 #ifndef GSC_PRINTFLIKE
73 # define GSC_PRINTFLIKE(fmt,narg) __attribute__ ((__format__ (__printf__, fmt, narg)))
74 #endif
75 ])
76
77 AC_CONFIG_FILES([Makefile
78 gnu/Makefile
79 src/Makefile])
80
81 AC_OUTPUT

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20