Adding autoconf support for Irix. Thanks to Lee Iverson <leei@ai.sri.com> for the patches. unlabeled-1.1.2.10.4
authorcls%seawood.org
Thu, 02 Sep 1999 21:59:33 +0000
branchunlabeled-1.1.2.10.4
changeset 796 187a6d806183cf942d2909668869895f68511f2e
parent 793 1c2783f0b24144c6505254e62568762467b0b0fa
child 825 d368e279931ccfd451338a50655c4a6b28c72dc1
push idunknown
push userunknown
push dateunknown
Adding autoconf support for Irix. Thanks to Lee Iverson <leei@ai.sri.com> for the patches.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -161,17 +161,19 @@ DLL_SUFFIX=so
 MKSHLIB='$(CCC) -shared -o $@'
 PR_MD_ASFILES=
 PR_MD_CSRCS=
 
 dnl ========================================================
 dnl Override of system specific host options
 dnl ========================================================
 case "$host" in
-*-linux*)
+*-mingw*)
+    ;;
+*)
     HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
     ;;
 esac
 
 dnl ========================================================
 dnl Override of system specific target options
 dnl ========================================================
 case "$target" in
@@ -190,16 +192,31 @@ case "$target" in
     alpha*)
 	AC_DEFINE(XP_UNIX)
 	AC_DEFINE(_POSIX_SOURCE)
 	AC_DEFINE(_BSD_SOURCE)
 	;;
     esac
     ;;
 
+*-irix*)
+    AC_DEFINE(XP_UNIX)
+    MDCPUCFG_H=_irix32.cfg
+    PR_MD_CSRCS=irix.c
+    AS="as -D_ASM $(INCLUDES) -n32"
+    PR_MD_ASFILES=os_Irix.s
+    PR_MD_ARCH_DIR=unix
+    case "${target_cpu}" in
+    alpha*)
+	AC_DEFINE(_POSIX_SOURCE)
+	AC_DEFINE(_BSD_SOURCE)
+	;;
+    esac
+    ;;
+
 *-mingw*)
     AC_DEFINE(XP_PC)
     PR_MD_ARCH_DIR=windows
     if test -z "$GNU_CC"; then
 	OBJ_SUFFIX=obj
 	LIB_SUFFIX=lib
 	DLL_SUFFIX=dll
     fi
@@ -453,17 +470,21 @@ if test -n "$USE_PTHREADS"; then
     esac
 
 else 
     if test -n "$USE_USER_PTHREADS"; then
 	USE_PTHREADS=
 	USE_NSPR_THREADS=
     else
 	USE_NSPR_THREADS=1
-	AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
+	case "$target" in
+    	*-linux*)
+	    AC_DEFINE(_PR_LOCAL_THREADS_ONLY)
+	    ;;
+	esac
     fi
 fi
 dnl Special thread exceptions
 
 case "$target" in
     *-mingw*|*-cygwin*|*-uwin*)
 	# win32 does not use pthreads
 	USE_PTHREADS=