This patch fixes -rpath handling under GNU/Linux and a problem when building
outside the source directory.

*** configure.in.orig   Mon May 28 17:02:47 2001
--- configure.in        Wed Oct 31 10:36:24 2001
***************
*** 205,211 ****
  AC_MSG_CHECKING("for runtime libraries flag")
  case "$host_os" in
    sol2 ) dash_r="-R" ;;
!   decosf* | linux* | irix*) dash_r="-rpath " ;;
    *)
      dash_r=""
      for try_dash_r in "-R" "-R " "-rpath "; do
--- 205,212 ----
  AC_MSG_CHECKING("for runtime libraries flag")
  case "$host_os" in
    sol2 ) dash_r="-R" ;;
!   linux* ) dash_r="-Wl,-rpath," ;;
!   decosf* | irix* ) dash_r="-rpath " ;;
    *)
      dash_r=""
      for try_dash_r in "-R" "-R " "-rpath "; do
*** configure.orig      Mon Jun  4 06:29:36 2001
--- configure   Wed Oct 31 10:35:55 2001
***************
*** 3490,3496 ****
  echo "configure:3491: checking "for runtime libraries flag"" >&5
  case "$host_os" in
    sol2 ) dash_r="-R" ;;
!   decosf* | linux* | irix*) dash_r="-rpath " ;;
    *)
      dash_r=""
      for try_dash_r in "-R" "-R " "-rpath "; do
--- 3490,3497 ----
  echo "configure:3491: checking "for runtime libraries flag"" >&5
  case "$host_os" in
    sol2 ) dash_r="-R" ;;
!   linux* ) dash_r="-Wl,-rpath," ;;
!   decosf* | irix* ) dash_r="-rpath " ;;
    *)
      dash_r=""
      for try_dash_r in "-R" "-R " "-rpath "; do
*** doc/Makefile.in.orig        Thu Apr 12 07:25:22 2001
--- doc/Makefile.in     Wed Oct 31 10:44:55 2001
***************
*** 108,121 ****
  # install info pages, creating install directory if necessary
  install.info: wget.info
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
!       -for file in wget.info wget.info-*[0-9]; do \
           test -f $$file && $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file ; \
        done
  
  # 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 sample.wgetrc
  install.wgetrc: $(srcdir)/sample.wgetrc
--- 108,121 ----
  # install info pages, creating install directory if necessary
  install.info: wget.info
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
!       -cd $(srcdir); for file in wget.info wget.info-*[0-9]; do \
           test -f $$file && $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file ; \
        done
  
  # install man page, creating install directory if necessary
  install.man: $(MAN)
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext)
!       $(INSTALL_DATA) $(MAN) $(DESTDIR)$(mandir)/man$(manext)/$(MAN)
  
  # install sample.wgetrc
  install.wgetrc: $(srcdir)/sample.wgetrc

Reply via email to