GNOME Bugzilla – Bug 124725
autogen.sh --enable-gnutls doesn't work with automake1.6/1.7
Last modified: 2004-12-22 21:47:04 UTC
That's the build error: ./autogen.sh --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info --sysconfdir=/etc \ --without-openssl-libs --without-openssl-includes \ --disable-gtk-doc \ --enable-gnutls . . checking for openssl... Package openssl was not found in the pkg-config search path. Perhaps you should add the directory containing `openssl.pc' to the PKG_CONFIG_PATH environment variable No package 'openssl' found checking for OpenSSL includes... no checking for OpenSSL libraries... no checking for libgnutls-config... /usr/bin/libgnutls-config checking for libgnutls - version >= 0.5.1... yes . . checking for getaddrinfo... yes configure: error: conditional "HAVE_SSL" was never defined. Usually this means the macro was only invoked conditionally. make: *** [stampdir/configure] Erreur 1 ----------- The build works fine on the same system with automake1.4 (but not with automake1.6)
I quickly tested that yesterday evening, it seems the problem is caused by the -without-openssl-libs --without-openssl-includes bit. To reproduce it easily, you just need to add REQUIRED_AUTOMAKE_VERSION=1.7 in autogen.sh
Fixed in both head and gnome-2-4 branch
This bug is not totally fixed, the ssl-modules.conf file is not installed with this solution. A patch to fix that on gnome-vfs 2.4.1 is attached to the bug report (the patch is used in the Debian package). The CVS seems to have change, I don't know if this patch is needed for gnome2.5 branch. diff -r -u gnome-vfs-2.4.1.old/configure.in gnome-vfs-2.4.1/configure.in --- gnome-vfs-2.4.1.old/configure.in 2003-10-12 12:51:55.000000000 +0200 +++ gnome-vfs-2.4.1/configure.in 2003-12-28 21:34:00.000000000 +0100 @@ -376,6 +376,7 @@ dnl OpenSSL dnl ****************************** +AM_CONDITIONAL(HAVE_SSL, false) AC_ARG_ENABLE(openssl, [ --disable-openssl build without openssl support]) if test "x$enable_openssl" != "xno"; then PKG_CHECK_MODULES(OPENSSL, openssl, AM_CONDITIONAL(HAVE_SSL, true),[ @@ -455,6 +456,7 @@ else AM_PATH_LIBGNUTLS(0.5.1, AC_DEFINE(HAVE_GNUTLS), AC_MSG_ERROR([Unable to find GNUTLS])) + AM_CONDITIONAL(HAVE_SSL, true) fi fi
Fixed in both branches (HEAD and 2-4)