You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2008/11/25 23:46:14 UTC

svn commit: r720636 - in /xalan/c/trunk: Makefile.incl.in configure configure.in runConfigure

Author: dbertoni
Date: Tue Nov 25 14:46:13 2008
New Revision: 720636

URL: http://svn.apache.org/viewvc?rev=720636&view=rev
Log:
Initial configuration changes for OpenBSD port.

Modified:
    xalan/c/trunk/Makefile.incl.in
    xalan/c/trunk/configure
    xalan/c/trunk/configure.in
    xalan/c/trunk/runConfigure

Modified: xalan/c/trunk/Makefile.incl.in
URL: http://svn.apache.org/viewvc/xalan/c/trunk/Makefile.incl.in?rev=720636&r1=720635&r2=720636&view=diff
==============================================================================
--- xalan/c/trunk/Makefile.incl.in (original)
+++ xalan/c/trunk/Makefile.incl.in Tue Nov 25 14:46:13 2008
@@ -328,6 +328,33 @@
   MAKE_SHARED_LOC=$(MAKE_SHARED)
 endif
 
+#=============== OPENBSD SPECIFIC OPTIONS ======================
+
+ifeq ($(PLATFORM), OPENBSD)
+
+  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
+    PLATFORM_LIB_LINK_OPTIONS += -licuuc -licudata
+    ALLLIBS += -L${ICUROOT}
+  endif
+
+  CC1 = $(CXX) $(CXXFLAGS) $(PLATFORM_COMPILE_OPTIONS)
+  CC4 = $(CC) $(CFLAGS) $(PLATFORM_COMPILE_OPTIONS)
+  MAKE_SHARED = $(CXX) $(CXXFLAGS) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS}
+  LINK = $(CXX) -D${PLATFORM} ${PIC_OPTION} ${LDFLAGS}
+
+  MAKE_SHARED_LOC=$(MAKE_SHARED)
+endif
+
 #=============== HPUX SPECIFIC OPTIONS =========================
 
 

Modified: xalan/c/trunk/configure
URL: http://svn.apache.org/viewvc/xalan/c/trunk/configure?rev=720636&r1=720635&r2=720636&view=diff
==============================================================================
--- xalan/c/trunk/configure (original)
+++ xalan/c/trunk/configure Tue Nov 25 14:46:13 2008
@@ -2818,6 +2818,7 @@
         *-*-linux*)     platform=LINUX ;;
         *-*-freebsd*)   platform=FREEBSD ;;
         *-*-netbsd*)    platform=NETBSD ;;
+        *-*-openbsd*)    platform=OPENBSD ;;
         *-*-irix*)      platform=IRIX ;;
         *-*-aix*)       platform=AIX ;;
         ia64-hp*)       platform=HPUX ; osver=HPUX11 ; osvariant=IA64;;

Modified: xalan/c/trunk/configure.in
URL: http://svn.apache.org/viewvc/xalan/c/trunk/configure.in?rev=720636&r1=720635&r2=720636&view=diff
==============================================================================
--- xalan/c/trunk/configure.in (original)
+++ xalan/c/trunk/configure.in Tue Nov 25 14:46:13 2008
@@ -46,6 +46,7 @@
         *-*-linux*)     platform=LINUX ;;
         *-*-freebsd*)   platform=FREEBSD ;;
         *-*-netbsd*)    platform=NETBSD ;;
+        *-*-openbsd*)   platform=OPENBSD ;;
         *-*-irix*)      platform=IRIX ;;
         *-*-aix*)       platform=AIX ;;
         ia64-hp*)       platform=HPUX ; osver=HPUX11 ; osvariant=IA64;;

Modified: xalan/c/trunk/runConfigure
URL: http://svn.apache.org/viewvc/xalan/c/trunk/runConfigure?rev=720636&r1=720635&r2=720636&view=diff
==============================================================================
--- xalan/c/trunk/runConfigure (original)
+++ xalan/c/trunk/runConfigure Tue Nov 25 14:46:13 2008
@@ -152,7 +152,7 @@
     echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
     echo "Usage: runConfigure \"options\""
     echo "       where options may be any of the following:"
-    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'solaris' 'solaris-x86',
+    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'openbsd', 'solaris' 'solaris-x86',
             'hp-10', 'hp-11', 'hp-11-ia64', 'irix', 'tru64', 'macosx', 'os390', 'os400', 'cygwin' 'mingw-msys')"
     echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
     echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
@@ -343,7 +343,7 @@
 #
 
 case $platform in
-   aix | linux | freebsd | netbsd | solaris | solaris-x86 | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin | mingw-msys)
+   aix | linux | freebsd | netbsd | openbsd | solaris | solaris-x86 | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin | mingw-msys)
        # platform has been recognized
        ;;
    *)
@@ -382,7 +382,7 @@
 
 #
 #  aix | linux | hp-11 | hp-11-ia64 | solaris |
-#  freebsd | netbsd | irix | openserver | unixware | os390 | os400 | ptx | tru64 | macosx
+#  freebsd | netbsd | openbsd | irix | os390 | os400 | tru64 | macosx
 #
 if test $bitsToBuild = 64; then
     bitstobuildDefines=" -DXML_BITSTOBUILD_64 "



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org