Mercurial > pidgin.yaz
comparison configure.ac @ 21328:daf85e00658b
Some versions of libgadu use __GG_LIBGADU_HAVE_OPENSSL, others use
GG_CONFIG_HAVE_OPENSSL to define if it is linked with OpenSSL, so we need
to check for both to avoid linking with it.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 11 Nov 2007 16:30:46 +0000 |
parents | a07cfce78345 |
children | a97f24eda509 |
comparison
equal
deleted
inserted
replaced
21324:97dc2a474513 | 21328:daf85e00658b |
---|---|
898 if test "x$gadu_libs" = "xyes"; then | 898 if test "x$gadu_libs" = "xyes"; then |
899 AC_MSG_CHECKING(for libgadu GPL compatibility) | 899 AC_MSG_CHECKING(for libgadu GPL compatibility) |
900 CPPFLAGS_save="$CPPFLAGS" | 900 CPPFLAGS_save="$CPPFLAGS" |
901 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | 901 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" |
902 AC_TRY_COMPILE([#include <libgadu.h>], [ | 902 AC_TRY_COMPILE([#include <libgadu.h>], [ |
903 #ifdef __GG_LIBGADU_HAVE_OPENSSL | 903 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL) |
904 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." | 904 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." |
905 #endif | 905 #endif |
906 ], [ | 906 ], [ |
907 AC_MSG_RESULT(yes) | 907 AC_MSG_RESULT(yes) |
908 AC_DEFINE([HAVE_LIBGADU], [1], | 908 AC_DEFINE([HAVE_LIBGADU], [1], |
910 ], [ | 910 ], [ |
911 AC_MSG_RESULT(no) | 911 AC_MSG_RESULT(no) |
912 echo | 912 echo |
913 echo | 913 echo |
914 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." | 914 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." |
915 echo "Please recompile libgadu using:" | 915 echo "To compile against system libgadu, please recompile libgadu using:" |
916 echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" | 916 echo "./autogen.sh --disable-libgadu-openssl --disable-static --enable-shared" |
917 echo "Then rerun this ./configure" | 917 echo "Then rerun this ./configure" |
918 echo | 918 echo |
919 echo "Falling back to using our own copy of libgadu" | |
919 echo | 920 echo |
920 GADU_LIBS="" | 921 GADU_LIBS="" |
921 GADU_CFLAGS="" | 922 GADU_CFLAGS="" |
922 gadu_libs=no | 923 gadu_libs=no |
923 ]) | 924 ]) |