samba 2.2.0 patch for NEC UX/4800 series

Oota Toshiya oota at ppd.fc.nec.co.jp
Thu Apr 19 08:44:34 GMT 2001


Dear Samba Team.

This is a patch for NEC UX/4800 series to compile samba-2.2.0 .

Please merge next release of samba-2.2.x

--------------------------------------------------------------
diff -ur samba-2.2.0/source/config.guess samba-2.2.0ews/source/config.guess
--- samba-2.2.0/source/config.guess	Mon Apr 16 07:21:03 2001
+++ samba-2.2.0ews/source/config.guess	Thu Apr 19 15:28:58 2001
@@ -493,7 +493,7 @@
     mc68*:A/UX:*:*)
 	echo m68k-apple-aux${UNAME_RELEASE}
 	exit 0 ;;
-    R3000:*System_V*:*:*)
+    R3000:*System_V*:*:*|R*000:UNIX_S*V:*:*)
 	if [ -d /usr/nec ]; then
 	        echo mips-nec-sysv${UNAME_RELEASE}
 	else
diff -ur samba-2.2.0/source/configure samba-2.2.0ews/source/configure
--- samba-2.2.0/source/configure	Tue Apr 17 14:44:24 2001
+++ samba-2.2.0ews/source/configure	Thu Apr 19 15:28:59 2001
@@ -1618,6 +1618,10 @@
       BROKEN_CC=#
 fi
 
+if test -d /usr/nec;then
+     BROKEN_CC=
+fi
+
 
 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
 echo "configure:1624: checking that the C compiler understands volatile" >&5
@@ -8612,6 +8616,11 @@
 #define RELIANTUNIX 1
 EOF
 ;;
+				*mips-nec-sysv4*) cat >> confdefs.h <<\EOF
+#define HAVE_MEMSET 1
+EOF
+				LDSHFLAGS="-G"
+;;
 			esac
 			;;
 		*sysv5*)
@@ -8664,6 +8673,28 @@
 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
   if test $ac_cv_prog_cc_KPIC = yes; then
     PICFLAG="-KPIC";
+  fi
+fi
+
+if test x$PICFLAG = x; then
+  echo $ac_n "checking whether ${CC-cc} accepts -Kconform_pic""... $ac_c" 1>&6
+echo "configure:7218: checking whether ${CC-cc} accepts -Kconform_pic" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_cc_Kconform_pic'+set}'`\" = set"; then
+  echo $ac_n "(cached) $ac_c" 1>&6
+else
+  echo 'void f(){}' > conftest.c
+if test -z "`${CC-cc} -Kconform_pic -c conftest.c 2>&1`"; then
+  ac_cv_prog_cc_Kconform_pic=yes
+else
+  ac_cv_prog_cc_Kconform_pic=no
+fi
+rm -f conftest*
+
+fi
+
+echo "$ac_t""$ac_cv_prog_cc_Kconform_pic" 1>&6
+  if test $ac_cv_prog_cc_Kconform_pic = yes; then
+    PICFLAG="-Kconform_pic";
   fi
 fi
 if test x$PICFLAG = x; then
diff -ur samba-2.2.0/source/include/includes.h samba-2.2.0ews/source/include/includes.h
--- samba-2.2.0/source/include/includes.h	Fri Apr 13 23:56:22 2001
+++ samba-2.2.0ews/source/include/includes.h	Thu Apr 19 15:28:59 2001
@@ -343,6 +343,9 @@
 
 #if defined (HAVE_NETGROUP)
 #if defined(HAVE_RPCSVC_YP_PROT_H)
+#if defined(_nec_ews)
+#include <rpcsvc/ypclnt.h>
+#endif
 #include <rpcsvc/yp_prot.h>
 #endif
 #if defined(HAVE_RPCSVC_YPCLNT_H)


----
--- Oota Toshiya ---        NEC Solutions   Computers Planning Division
 oota at ppd.fc.nec.co.jp      Fuchu,Tokyo,Japan,Earth,Solar system,Galaxy
(samba-jp ML maintainer/mutt-jp ML server maintainer)




More information about the samba-technical mailing list