Add GNU/Hurd support based upon Linux support
This is a simplified subset of the Linux support logic (non-xlC_r, i.e. GCC).
diff --git a/Makefile.incl.in b/Makefile.incl.in
index bb3c525..71fce7a 100644
--- a/Makefile.incl.in
+++ b/Makefile.incl.in
@@ -302,6 +302,33 @@
endif
+#=============== HURD SPECIFIC OPTIONS ======================
+
+ifeq ($(PLATFORM), HURD)
+
+ SUPPORTED = TRUE
+ ALLLIBS = ${LIBS} -L/usr/local/lib
+ SHLIBSUFFIX=.so
+ PIC_OPTION = -fPIC
+
+ PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} ${PIC_OPTION} ${WCSTOMBS}
+
+ # We need the ICU library if we are using the ICUBridge
+ ifdef XALAN_USE_ICU
+ LD_RPATH_PRE = -Wl,-rpath,
+ PLATFORM_LIB_LINK_OPTIONS = $(LD_RPATH_PRE)${ICUROOT}/lib
+ endif
+
+ CC1 = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(PLATFORM_COMPILE_OPTIONS)
+ CC4 = $(CC) $(CFLAGS) $(PLATFORM_COMPILE_OPTIONS)
+ MAKE_SHARED = $(CXX) $(CXXFLAGS) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS}
+ LINK_SONAME = -Wl,-soname,$(SO_NAME)
+ LINK = $(CXX) -D${PLATFORM} ${PIC_OPTION} ${LDFLAGS}
+
+ MAKE_SHARED_LOC = ${CXX} $(CXXFLAGS) -Wl,-soname,$(LOC_SONAME) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS}
+
+endif
+
#=============== NETBSD SPECIFIC OPTIONS ======================
ifeq ($(PLATFORM), NETBSD)
diff --git a/configure.in b/configure.in
index b80de9d..a3d5013 100644
--- a/configure.in
+++ b/configure.in
@@ -64,6 +64,7 @@
*-*-OS400*) platform=OS400 ;;
*-*-cygwin*) platform=CYGWIN ;;
*-*-mingw*) platform=MINGW ;;
+ *-*-gnu*) platform=HURD ;;
*) platform=UNKNOWN ;;
esac