Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial configuration changes for OpenBSD port.

git-svn-id: https://svn.apache.org/repos/asf/xalan/c/trunk@720636 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit ba68107b9f71d5f736a45f3cbbe199b19761faa0 1 parent 2fbf8b5
David N Berton authored
Showing with 32 additions and 3 deletions.
  1. +27 −0 Makefile.incl.in
  2. +1 −0  configure
  3. +1 −0  configure.in
  4. +3 −3 runConfigure
View
27 Makefile.incl.in
@@ -328,6 +328,33 @@ ifeq ($(PLATFORM), NETBSD)
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 =========================
View
1  configure
@@ -2818,6 +2818,7 @@ case "${host}" in
*-*-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;;
View
1  configure.in
@@ -46,6 +46,7 @@ case "${host}" in
*-*-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;;
View
6 runConfigure
@@ -152,7 +152,7 @@ usage()
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 @@ echo "Extra configure options: $configureoptions"
#
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 @@ fi
#
# 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 "
Please sign in to comment.
Something went wrong with that request. Please try again.