Hello,

subjects says it all:

When trying to compile with -lssl, an already reported bug in libssl
detection causes the library not to be found. However, it seems that
after the failure of the libssl test some things are seriously broken:
at least on my system the configure script will later not find
`gettext' ...

(1) ./configure --with-ssl=/usr

| checking for runtime libraries flag... "-rpath "
| checking for dlopen in -ldl... yes
| checking for shl_load in -ldl... no
| Looking for SSL libraries in /usr
| checking for RSA_new in -lcrypto... no
| checking for SSL_new in -lssl... no
| 
| WARNING: Failed to link with OpenSSL libraries in /usr/lib.
|          Wget will be built without support for https://... URLs.
| 
| checking whether NLS is requested... yes
| language catalogs: cs da de el es et fr gl hr it ja nl no pl pt_BR ru
| sk sl sv tr zh_TW
| checking for msgfmt... /usr/bin/msgfmt
| checking for xgettext... /usr/bin/xgettext
| checking for gmsgfmt... /usr/bin/msgfmt
| checking for locale.h... yes
| checking for libintl.h... yes
| checking for gettext... no
| checking for gettext in -lintl... no
| gettext not found; disabling NLS
| checking for makeinfo... makeinfo

(It seems that the SSL check forces `-rpath' and gcc does not like
it. Moreover, the SSL checks for -ldl and ingores it afterwards.)

(1) ./configure

| checking for socket in -lsocket... no
| checking for runtime libraries flag... "-rpath "
| checking whether NLS is requested... yes
| language catalogs: cs da de el es et fr gl hr it ja nl no pl pt_BR ru
| sk sl sv tr zh_TW
| checking for msgfmt... /usr/bin/msgfmt
| checking for xgettext... /usr/bin/xgettext
| checking for gmsgfmt... /usr/bin/msgfmt
| checking for locale.h... yes
| checking for libintl.h... yes
| checking for gettext... yes
| checking for makeinfo... makeinfo
 
The system is RedHat 6.2 CZ + numerous updates, compiler is a
prerelease of gcc 3.0 ("gcc version 3.0 20010308 (prerelease)")

I'm attaching a patch against current CVS version, which is almost 1.7
anyway. It's "WORKSFORME", the SSL handling is certainly not optimal.

-- jan

--------------------+------------------------------------------------------
 Jan Prikryl        | vr|vis center for virtual reality and visualisation
 <[EMAIL PROTECTED]> | http://www.vrvis.at
--------------------+------------------------------------------------------
Index: configure.in
===================================================================
RCS file: /pack/anoncvs/wget/configure.in,v
retrieving revision 1.17
diff -u -r1.17 configure.in
--- configure.in        2001/05/28 22:02:47     1.17
+++ configure.in        2001/06/05 21:27:09
@@ -205,14 +205,18 @@
 AC_MSG_CHECKING("for runtime libraries flag")
 case "$host_os" in
   sol2 ) dash_r="-R" ;;
-  decosf* | linux* | irix*) dash_r="-rpath " ;;
+  decosf* | irix*) dash_r="-rpath " ;;
+  linux*) dash_r="" ;;
   *)
     dash_r=""
     for try_dash_r in "-R" "-R " "-rpath "; do
       OLD_LDFLAGS=$LDFLAGS
       LDFLAGS="${try_dash_r}/no/such/file-or-directory $LDFLAGS"
+      dnl gcc seems to only produce a warning about nonexistent option
+      dnl `-R/no/such/file-or-directory' so the test comes thru
+      dnl (tested with "gcc version 3.0 20010308 (prerelease)")
       AC_TRY_LINK(, , dash_r="$try_dash_r")
-      LDFLAGS=$ODL_LDFLAGS
+      LDFLAGS=$OLD_LDFLAGS
       test -n "$dash_r" && break
     done ;;
 esac
@@ -235,9 +239,6 @@
     ssl_all_roots=$with_ssl
   fi
 
-  OLD_LIBS=$LIBS
-  OLD_LDFLAGS=$LDFLAGS
-
   dnl Unfortunately, as of this writing (OpenSSL 0.9.6), the libcrypto
   dnl shared library doesn't record its dependency on libdl, so we
   dnl need to check for it ourselves so we won't fail to link due to a
@@ -245,6 +246,9 @@
   dnl shl_load().
   AC_CHECK_LIB(dl,dlopen)
   AC_CHECK_LIB(dl,shl_load)
+
+  OLD_LIBS=$LIBS
+  OLD_LDFLAGS=$LDFLAGS
 
   ssl_linked=no
 
Index: doc/Makefile.in
===================================================================
RCS file: /pack/anoncvs/wget/doc/Makefile.in,v
retrieving revision 1.13
diff -u -r1.13 Makefile.in
--- doc/Makefile.in     2001/04/12 12:25:22     1.13
+++ doc/Makefile.in     2001/06/05 21:27:09
@@ -66,7 +66,7 @@
        sed s/@/@@/g $< > $@
 
 wget.info: $(SAMPLERCTEXI) $(srcdir)/wget.texi
-       -$(MAKEINFO)
+       $(MAKEINFO) -I$(srcdir)
 
 $(TEXI2POD): $(srcdir)/$(TEXI2POD).in
        sed s,/usr/bin/perl,@PERL@, $< > $@
@@ -115,7 +115,7 @@
 # install man page, creating install directory if necessary
 install.man: $(MAN)
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext)
-       $(INSTALL_DATA) $(srcdir)/$(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
+       $(INSTALL_DATA) $(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
 
 # install sample.wgetrc
 install.wgetrc: $(srcdir)/sample.wgetrc

Reply via email to