Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 1040:b6c6734a781b
Add libgpgme detection
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 26 Nov 2006 10:14:47 +0100 |
parents | f79e6d3d7190 |
children | a61c3311a5bb |
comparison
equal
deleted
inserted
replaced
1039:f79e6d3d7190 | 1040:b6c6734a781b |
---|---|
90 MC_TM_GMTOFF | 90 MC_TM_GMTOFF |
91 | 91 |
92 # Check for glib | 92 # Check for glib |
93 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append]) | 93 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append]) |
94 | 94 |
95 # Check for gpgme | |
96 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [Disable GPGME support]), | |
97 [ if test x"$enableval" = x"no"; then | |
98 enable_gpgme=no | |
99 fi | |
100 ]) | |
101 | |
102 if test x"${enable_gpgme}" != x"no"; then | |
103 AM_PATH_GPGME(1.0.0, AC_DEFINE(HAVE_GPGME, 1, | |
104 [Define if you use GPGME to support OpenPGP])) | |
105 fi | |
106 | |
95 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL | 107 AC_ARG_WITH(ssl, [ --with-ssl enable SSL secured connections using either OpenSSL |
96 or GnuTLS], | 108 or GnuTLS], |
97 [with_ssl=$withval]) | 109 [with_ssl=$withval]) |
98 | 110 |
99 if test "$with_ssl" != "no"; then | 111 if test "$with_ssl" != "no"; then |
139 fi | 151 fi |
140 | 152 |
141 AC_ARG_ENABLE(debug, | 153 AC_ARG_ENABLE(debug, |
142 [AC_HELP_STRING(--enable-debug, Add development compilation options)], | 154 [AC_HELP_STRING(--enable-debug, Add development compilation options)], |
143 debug=$enableval, debug="") | 155 debug=$enableval, debug="") |
144 if test "${debug}" = "yes"; then | 156 if test x"${debug}" = x"yes"; then |
145 AC_DEFINE_UNQUOTED([DEBUG_ENABLE],[1],[Devel compilation options]) | 157 AC_DEFINE_UNQUOTED([DEBUG_ENABLE],[1],[Devel compilation options]) |
146 if test "x$GCC" = "xyes"; then | 158 if test "x$GCC" = "xyes"; then |
147 if test "$gccvernum" -ge "400"; then | 159 if test "$gccvernum" -ge "400"; then |
148 CFLAGS="$CFLAGS -Wextra" | 160 CFLAGS="$CFLAGS -Wextra" |
149 else | 161 else |