equal
deleted
inserted
replaced
|
1 # -*- Autoconf -*- |
|
2 # Process this file with autoconf to produce a configure script. |
|
3 |
|
4 AC_PREREQ(2.59) |
|
5 AC_INIT(mcabber, 0.6.0-dev, bmikael@lists.lilotux.net) |
|
6 AM_INIT_AUTOMAKE |
|
7 AC_CONFIG_SRCDIR([src]) |
|
8 AM_CONFIG_HEADER(config.h) |
|
9 |
|
10 AC_PROG_RANLIB |
|
11 |
|
12 CFLAGS="$CFLAGS -Wall" |
|
13 |
|
14 # Checks for programs. |
|
15 AC_PROG_CXX |
|
16 AC_PROG_CC |
|
17 AC_PROG_INSTALL |
|
18 |
|
19 # Checks for libraries. |
|
20 #AC_CHECK_LIB([connwrap], [cw_nb_connect]) |
|
21 #AC_CHECK_LIB([libjabber], [jab_new]) |
|
22 AC_CHECK_LIB([ncurses], [initscr]) |
|
23 AC_CHECK_LIB([panel], [new_panel]) |
|
24 AC_CHECK_LIB([ssl], [SSL_new]) |
|
25 |
|
26 # Checks for header files. |
|
27 AC_HEADER_STDC |
|
28 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h ncurses.h panel.h getopt.h]) |
|
29 |
|
30 # Checks for typedefs, structures, and compiler characteristics. |
|
31 AC_HEADER_STDBOOL |
|
32 AC_C_CONST |
|
33 AC_C_INLINE |
|
34 AC_TYPE_SIZE_T |
|
35 AC_HEADER_TIME |
|
36 AC_STRUCT_TM |
|
37 |
|
38 # Checks for library functions. |
|
39 AC_FUNC_ERROR_AT_LINE |
|
40 AC_FUNC_MALLOC |
|
41 AC_FUNC_MEMCMP |
|
42 AC_FUNC_REALLOC |
|
43 AC_FUNC_SELECT_ARGTYPES |
|
44 AC_TYPE_SIGNAL |
|
45 AC_FUNC_STRFTIME |
|
46 AC_FUNC_VPRINTF |
|
47 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii memmove memset modf select setlocale socket strcasecmp strchr strdup strncasecmp strrchr strstr]) |
|
48 |
|
49 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) |
|
50 |
|
51 AC_CONFIG_FILES([connwrap/Makefile |
|
52 libjabber/Makefile |
|
53 src/Makefile |
|
54 Makefile]) |
|
55 AC_OUTPUT |