Mercurial > hg
annotate mcabber/configure.ac @ 1426:a64778f5f26b
Implement FIFO named command pipe
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 18 Feb 2008 22:59:37 +0100 |
parents | 757ebe4df0b9 |
children | 844410b9b4cc |
rev | line source |
---|---|
68 | 1 # -*- Autoconf -*- |
2 # Process this file with autoconf to produce a configure script. | |
3 | |
4 AC_PREREQ(2.59) | |
1412 | 5 AC_INIT([mcabber],[0.9.7-dev],[mcabber@lilotux.net]) |
68 | 6 AM_INIT_AUTOMAKE |
7 AC_CONFIG_SRCDIR([src]) | |
145 | 8 AM_CONFIG_HEADER(config.h) |
68 | 9 |
1089
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
10 #AC_PROG_LIBTOOL |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
11 AC_PROG_RANLIB |
68 | 12 |
13 # Checks for programs. | |
14 AC_PROG_CC | |
15 AC_PROG_INSTALL | |
16 | |
821
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
17 if test "x$GCC" = "xyes"; then |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
18 dnl Get gcc version |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
19 AC_MSG_CHECKING([gcc version]) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
20 gccver=$($CC -dumpversion) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
21 gccvermajor=$(echo $gccver | cut -d . -f1) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
22 gccverminor=$(echo $gccver | cut -d . -f2) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
23 gccvernum=$(expr $gccvermajor "*" 100 + $gccverminor) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
24 AC_MSG_RESULT($gccver) |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
25 |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
26 CFLAGS="$CFLAGS -Wall" |
1332
bde2dc51c06b
Improve changeset 486b4feeddb8
Mikael Berthe <mikael@lilotux.net>
parents:
1323
diff
changeset
|
27 if test x"$gccvermajor" = x"4" -a x"$gccverminor" = x"2"; then |
bde2dc51c06b
Improve changeset 486b4feeddb8
Mikael Berthe <mikael@lilotux.net>
parents:
1323
diff
changeset
|
28 DBGCFLAGS="-fgnu89-inline" |
bde2dc51c06b
Improve changeset 486b4feeddb8
Mikael Berthe <mikael@lilotux.net>
parents:
1323
diff
changeset
|
29 fi |
821
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
30 fi |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
31 |
68 | 32 # Checks for header files. |
33 AC_HEADER_STDC | |
744
c3b76a1a07cb
Fix wrapping error introduced in changeset 76e00324c404
Mikael Berthe <mikael@lilotux.net>
parents:
742
diff
changeset
|
34 AC_CHECK_HEADERS([arpa/inet.h fcntl.h locale.h netdb.h netinet/in.h stddef.h \ |
c3b76a1a07cb
Fix wrapping error introduced in changeset 76e00324c404
Mikael Berthe <mikael@lilotux.net>
parents:
742
diff
changeset
|
35 stdlib.h string.h strings.h sys/socket.h sys/time.h \ |
1382
1447c5296977
Fix locale charset detection on some BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1381
diff
changeset
|
36 syslog.h termios.h unistd.h getopt.h wchar.h wctype.h \ |
1447c5296977
Fix locale charset detection on some BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1381
diff
changeset
|
37 localcharset.h]) |
926
8a31dd49130d
configure: Improve ncurses detection (use ncursesw if available)
Mikael Berthe <mikael@lilotux.net>
parents:
924
diff
changeset
|
38 AC_CHECK_HEADERS([getopt.h], , AC_MSG_ERROR([Missing header file])) |
800 | 39 AC_VAR_TIMEZONE_EXTERNALS |
68 | 40 |
41 # Checks for typedefs, structures, and compiler characteristics. | |
42 AC_HEADER_STDBOOL | |
43 AC_C_CONST | |
44 AC_C_INLINE | |
45 AC_TYPE_SIZE_T | |
46 AC_HEADER_TIME | |
47 AC_STRUCT_TM | |
48 | |
49 # Checks for library functions. | |
50 AC_FUNC_ERROR_AT_LINE | |
51 AC_FUNC_MALLOC | |
52 AC_FUNC_MEMCMP | |
53 AC_FUNC_REALLOC | |
54 AC_FUNC_SELECT_ARGTYPES | |
55 AC_TYPE_SIGNAL | |
56 AC_FUNC_STRFTIME | |
57 AC_FUNC_VPRINTF | |
744
c3b76a1a07cb
Fix wrapping error introduced in changeset 76e00324c404
Mikael Berthe <mikael@lilotux.net>
parents:
742
diff
changeset
|
58 AC_CHECK_FUNCS([alarm bzero gethostbyname gethostname inet_ntoa isascii \ |
c3b76a1a07cb
Fix wrapping error introduced in changeset 76e00324c404
Mikael Berthe <mikael@lilotux.net>
parents:
742
diff
changeset
|
59 memmove memset modf select setlocale socket strcasecmp \ |
1211
56f7f504b4ba
Add an autoconf check for vsnprintf() (Suggested by Till Maas)
Mikael Berthe <mikael@lilotux.net>
parents:
1179
diff
changeset
|
60 strchr strdup strncasecmp strrchr strstr strcasestr vsnprintf]) |
800 | 61 |
1089
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
62 |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
63 AC_CHECK_DECLS([strptime],,, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
64 [#define _GNU_SOURCE |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
65 #include <time.h>]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
66 |
800 | 67 # Check for tm_gmtoff |
68 MC_TM_GMTOFF | |
68 | 69 |
1089
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
70 # Checks for libraries. |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
71 |
1411
4029e3447f2b
Add a check for libcharset
Mikael Berthe <mikael@lilotux.net>
parents:
1407
diff
changeset
|
72 AC_CHECK_LIB(charset, locale_charset) |
4029e3447f2b
Add a check for libcharset
Mikael Berthe <mikael@lilotux.net>
parents:
1407
diff
changeset
|
73 |
1089
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
74 AC_CHECK_FUNC(initscr,, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
75 [ |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
76 cf_ncurses="ncurses" |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
77 for lib in ncursesw ncurses |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
78 do |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
79 AC_CHECK_LIB($lib, waddnwstr, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
80 [cf_ncurses="$lib"; cf_ncurses_unicode="yes"; break]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
81 done |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
82 AC_CHECK_LIB($cf_ncurses, initscr, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
83 [LIBS="$LIBS -l$cf_ncurses" |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
84 if test "$cf_ncurses" = ncursesw; then |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
85 AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/panel.h],, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
86 [AC_CHECK_HEADERS([ncurses.h panel.h],, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
87 AC_MSG_ERROR([Missing header file]))]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
88 else |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
89 AC_CHECK_HEADERS([ncurses/ncurses.h ncurses/panel.h],, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
90 [AC_CHECK_HEADERS([ncurses.h panel.h],, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
91 AC_MSG_ERROR([Missing header file]))]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
92 fi |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
93 ], |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
94 [CF_CURSES_LIBS]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
95 ]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
96 |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
97 AC_CHECK_LIB([panelw], [new_panel],, |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
98 AC_CHECK_LIB([panel], [new_panel]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
99 ) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
100 |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
101 if test x"$cf_ncurses_unicode" = x"yes"; then |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
102 AC_DEFINE([HAVE_UNICODE], [], [Define if ncurses have unicode support]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
103 else |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
104 AC_MSG_WARN([Your ncurses installation does not support unicode]) |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
105 fi |
a61c3311a5bb
Hopefully fix unicode detection on BSD systems
Mikael Berthe <mikael@lilotux.net>
parents:
1040
diff
changeset
|
106 |
1386 | 107 AC_CACHE_CHECK([for ESCDELAY variable], |
108 [mc_cv_ncurses_escdelay], | |
109 [AC_TRY_LINK([], [ | |
110 extern int ESCDELAY; | |
111 ESCDELAY = 0; | |
112 ], | |
113 [mc_cv_ncurses_escdelay=yes], | |
114 [mc_cv_ncurses_escdelay=no]) | |
115 ]) | |
116 if test "$mc_cv_ncurses_escdelay" = yes; then | |
117 AC_DEFINE(HAVE_ESCDELAY, 1, | |
118 [Define if ncurses has ESCDELAY variable]) | |
119 fi | |
120 | |
73 | 121 # Check for glib |
122 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append]) | |
123 | |
1040 | 124 # Check for gpgme |
125 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [Disable GPGME support]), | |
126 [ if test x"$enableval" = x"no"; then | |
127 enable_gpgme=no | |
128 fi | |
129 ]) | |
130 | |
131 if test x"${enable_gpgme}" != x"no"; then | |
132 AM_PATH_GPGME(1.0.0, AC_DEFINE(HAVE_GPGME, 1, | |
133 [Define if you use GPGME to support OpenPGP])) | |
134 fi | |
135 | |
1300
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
136 # Check for otr |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
137 AC_ARG_ENABLE(otr, [ --enable-otr Enable OTR (Off-the-Record) messaging support], |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
138 enable_otr=$enableval, otr="") |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
139 if test "x$enable_otr" = "xyes"; then |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
140 # Look for libgcrypt and libotr |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
141 AM_PATH_LIBGCRYPT(1.2.2, [ |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
142 AM_PATH_LIBOTR(3.1.0, , |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
143 AC_MSG_ERROR(libotr 3.1.0 or newer is required.)) |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
144 ], AC_MSG_ERROR(libgcrypt 1.2.2 or newer is required.) |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
145 ) |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
146 fi |
0d4a1699accb
Add OTR check to autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
1253
diff
changeset
|
147 |
69 | 148 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL |
742 | 149 or GnuTLS], |
150 [with_ssl=$withval]) | |
69 | 151 |
152 if test "$with_ssl" != "no"; then | |
153 AC_ARG_WITH(openssl, | |
742 | 154 [ --with-openssl=[DIR] enable SSL secured connections using the OpenSSL |
155 library in DIR (optional)], | |
156 [with_openssl=$withval]) | |
69 | 157 |
158 if test -z "$with_openssl"; then | |
742 | 159 for ac_dir in /usr/local /usr; do |
160 if test -f "$ac_dir/include/openssl/ssl.h"; then | |
161 with_openssl=$ac_dir | |
162 break; | |
163 fi | |
164 done | |
69 | 165 fi |
166 | |
167 AC_MSG_CHECKING(for OpenSSL) | |
168 | |
169 if test -n "$with_openssl" -a "$with_openssl" != "no"; then | |
742 | 170 if test "$with_openssl" = "yes"; then with_openssl="/usr"; fi |
171 CFLAGS="$CFLAGS -I${with_openssl}" | |
172 AC_DEFINE([HAVE_OPENSSL], [], [OpenSSL]) | |
173 AC_MSG_RESULT([found in $with_openssl]) | |
1025
804aebb39028
[BP-d530e5fb506a] Fix SSL on OS X
Mikael Berthe <mikael@lilotux.net>
parents:
1024
diff
changeset
|
174 AC_CHECK_LIB(crypto, main) |
742 | 175 AC_CHECK_LIB(ssl, main) |
69 | 176 else |
742 | 177 AC_MSG_RESULT([not found or disabled]) |
69 | 178 |
1253 | 179 AM_PATH_LIBGNUTLS_EXTRA(0.0.1, [ |
180 CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS" | |
181 LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra -lgnutls-openssl" | |
182 AC_DEFINE([HAVE_GNUTLS], [], [GNU TLS]) | |
183 ]) | |
69 | 184 fi |
185 fi | |
186 | |
1179 | 187 # Check for Aspell stuff |
188 AC_ARG_ENABLE(aspell, [ --enable-aspell Enable aspell support], | |
189 enable_aspell=$enableval, aspell="") | |
190 if test "x$enable_aspell" = "xyes"; then | |
191 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ]) | |
192 if test "x$have_aspell_includes" = "xyes"; then | |
193 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ]) | |
194 if test "x$have_aspell_libs" = "xyes"; then | |
195 AC_DEFINE(WITH_ASPELL, 1, [define if you want aspell support]) | |
196 LIBS="$LIBS -laspell" | |
197 else | |
198 enable_aspell=no | |
199 fi | |
200 else | |
201 enable_aspell=no | |
202 fi | |
203 fi | |
204 | |
68 | 205 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) |
206 | |
882
c3c2f7a0c5d5
autoconf: use datadir, not datarootdir
Mikael Berthe <mikael@lilotux.net>
parents:
881
diff
changeset
|
207 # Export $datadir to the source tree. |
c3c2f7a0c5d5
autoconf: use datadir, not datarootdir
Mikael Berthe <mikael@lilotux.net>
parents:
881
diff
changeset
|
208 if test x"${datadir}" != x""; then |
1388
40371a7d49f4
Fix DATA_DIR in configure.ac (patch from "undet")
Mikael Berthe <mikael@lilotux.net>
parents:
1386
diff
changeset
|
209 AC_DEFINE_DIR(DATA_DIR, datadir, [Data files directory]) |
868
cefdaeb42e67
Add online /help command
Mikael Berthe <mikael@lilotux.net>
parents:
821
diff
changeset
|
210 fi |
cefdaeb42e67
Add online /help command
Mikael Berthe <mikael@lilotux.net>
parents:
821
diff
changeset
|
211 |
741 | 212 AC_ARG_ENABLE(debug, |
213 [AC_HELP_STRING(--enable-debug, Add development compilation options)], | |
214 debug=$enableval, debug="") | |
1040 | 215 if test x"${debug}" = x"yes"; then |
1423
757ebe4df0b9
Replace DEBUG_ENABLE with ENABLE_DEBUG
Mikael Berthe <mikael@lilotux.net>
parents:
1412
diff
changeset
|
216 AC_DEFINE_UNQUOTED([ENABLE_DEBUG],[1],[Devel compilation options]) |
821
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
217 if test "x$GCC" = "xyes"; then |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
218 if test "$gccvernum" -ge "400"; then |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
219 CFLAGS="$CFLAGS -Wextra" |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
220 else |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
221 CFLAGS="$CFLAGS -W" |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
222 fi |
1332
bde2dc51c06b
Improve changeset 486b4feeddb8
Mikael Berthe <mikael@lilotux.net>
parents:
1323
diff
changeset
|
223 CFLAGS="$CFLAGS -Wno-unused-parameter -pedantic -std=gnu99 $DBGCFLAGS -O0" |
821
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
224 fi # gcc |
8c64874c449e
More gcc configure checks
Mikael Berthe <mikael@lilotux.net>
parents:
813
diff
changeset
|
225 CFLAGS="$CFLAGS -g" |
741 | 226 else |
1169
36450491b884
Change -O2 flag as suggested by Myhailo
Mikael Berthe <mikael@lilotux.net>
parents:
1152
diff
changeset
|
227 CFLAGS="-O2 $CFLAGS" |
741 | 228 fi |
229 | |
1426
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
230 AC_ARG_ENABLE(fifo, |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
231 [AC_HELP_STRING(--enable-fifo, Enable FIFO named pipe)], |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
232 fifo=$enableval, fifo="") |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
233 AM_CONDITIONAL([FIFO], [test x$fifo = xyes]) |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
234 if test x"${fifo}" = x"yes"; then |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
235 AC_DEFINE_UNQUOTED([ENABLE_FIFO],[1],[Named pipe support]) |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
236 fi |
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
237 |
781
d3af6877a7df
Add --enable-hgcset to configure script
Mikael Berthe <mikael@lilotux.net>
parents:
778
diff
changeset
|
238 AC_ARG_ENABLE(hgcset, |
1216
8645b5166040
Use Mercurial changeset by default
Mikael Berthe <mikael@lilotux.net>
parents:
1211
diff
changeset
|
239 [AC_HELP_STRING(--disable-hgcset, Do not use Mercurial changeset value)], |
8645b5166040
Use Mercurial changeset by default
Mikael Berthe <mikael@lilotux.net>
parents:
1211
diff
changeset
|
240 hgcset=$enableval, hgcset="yes") |
1426
a64778f5f26b
Implement FIFO named command pipe
Mikael Berthe <mikael@lilotux.net>
parents:
1423
diff
changeset
|
241 AM_CONDITIONAL(HGCSET, [test x$hgcset = xyes]) |
781
d3af6877a7df
Add --enable-hgcset to configure script
Mikael Berthe <mikael@lilotux.net>
parents:
778
diff
changeset
|
242 if test "${hgcset}" = "yes"; then |
d3af6877a7df
Add --enable-hgcset to configure script
Mikael Berthe <mikael@lilotux.net>
parents:
778
diff
changeset
|
243 AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset]) |
d3af6877a7df
Add --enable-hgcset to configure script
Mikael Berthe <mikael@lilotux.net>
parents:
778
diff
changeset
|
244 fi |
d3af6877a7df
Add --enable-hgcset to configure script
Mikael Berthe <mikael@lilotux.net>
parents:
778
diff
changeset
|
245 |
1309
887f8801418c
Only compile otr.c if libotr is available
franky@veqlargh.fs
parents:
1300
diff
changeset
|
246 AM_CONDITIONAL([OTR], [test x$libotr_found = xyes]) |
887f8801418c
Only compile otr.c if libotr is available
franky@veqlargh.fs
parents:
1300
diff
changeset
|
247 |
924
a07bd351008b
Move _GNU_SOURCE define to the Makefile (Reimar Döffinger)
Mikael Berthe <mikael@lilotux.net>
parents:
923
diff
changeset
|
248 # We need _GNU_SOURCE for strptime() and strcasestr() |
a07bd351008b
Move _GNU_SOURCE define to the Makefile (Reimar Döffinger)
Mikael Berthe <mikael@lilotux.net>
parents:
923
diff
changeset
|
249 CFLAGS="$CFLAGS -D_GNU_SOURCE" |
a07bd351008b
Move _GNU_SOURCE define to the Makefile (Reimar Döffinger)
Mikael Berthe <mikael@lilotux.net>
parents:
923
diff
changeset
|
250 |
68 | 251 AC_CONFIG_FILES([connwrap/Makefile |
252 libjabber/Makefile | |
253 src/Makefile | |
233 | 254 doc/Makefile |
903 | 255 doc/help/Makefile |
68 | 256 Makefile]) |
257 AC_OUTPUT |