Subject: fix portability issues that led to Hurd build failures

* src/build-system/configure(.ac):
  - Reflect the Hurd's support for -Wl,rpath,... .
* src/connect/ncbi_socket_cxx.cpp, src/connect/ext/ncbi_localnet.c:
  cope with missing PATH_MAX everywhere, not just under Windows.

Author: Aaron M. Ucko <ucko@debian.org>
Last-Update: 2011-06-10
--- a/c++/src/build-system/configure
+++ b/c++/src/build-system/configure
@@ -7420,7 +7420,7 @@
     solaris* )
       CONF_f_runpath="-R"
       ;;
-    linux*:[GI]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
+    linux*:[GI]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC | gnu*:GCC)
       CONF_f_runpath="-Wl,-rpath,"
       ;;
     irix*:* | linux*:KCC | *:Compaq )
--- a/c++/src/build-system/configure.ac
+++ b/c++/src/build-system/configure.ac
@@ -1558,7 +1558,7 @@
     solaris* )
       CONF_f_runpath="-R"
       ;;
-    linux*:[[GI]]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
+    linux*:[[GI]]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC | gnu*:GCC )
       CONF_f_runpath="-Wl,-rpath,"
       ;;
     irix*:* | linux*:KCC | *:Compaq )
--- a/c++/src/connect/ncbi_socket_cxx.cpp
+++ b/c++/src/connect/ncbi_socket_cxx.cpp
@@ -35,7 +35,7 @@
 #include "ncbi_assert.h"                // no _ASSERT()s, keep clean from xncbi
 #include <connect/ncbi_socket_unix.hpp>
 #include <limits.h>                     // for PATH_MAX
-#if defined(NCBI_OS_MSWIN)  &&  !defined(PATH_MAX)
+#ifndef PATH_MAX
 #  define PATH_MAX 512                  // will actually use less than 32 chars
 #endif // NCBI_OS_MSWIN && !PATH_MAX
 
--- a/c++/src/connect/ext/ncbi_localnet.c
+++ b/c++/src/connect/ext/ncbi_localnet.c
@@ -62,6 +62,10 @@
 #  endif /*_MAX_PATH*/
 #endif /*NCBI_OS_MSWIN && !PATH_MAX*/
 
+#if !defined(PATH_MAX)
+#  define PATH_MAX 4096
+#endif /*Patch added for Ubuntu build*/
+
 #if PATH_MAX < 256
 #  define BUFSIZE  256
 #else
