Samba 2.0 Beta3 & configure.in fixes

Tim Rice tim at trr.metro.NET
Thu Dec 10 23:20:04 GMT 1998


On Tue, 8 Dec 1998, Jeremy Allison wrote:

> The Samba Team are pleased to announce Samba 2.0 Beta3
> 
It now builds on SCO 3.2v4.2 with the usuall warnings.
My test machine is broken so I can't check SCO OS5 right now.

I've attached a patch to configure.in that fixes some issues on 
UnixWare 

I removed the *sysv4.2*) AC_CHECK_LIB(resolv, strcasecmp) line
as it is now redundant.

I enhanced the AC_CHECK_LIB(resolv,strcasecmp section that was recently
added so it does a AC_DEFINE(HAVE_STRCASECMP)

The UnixWare compilers choke on autoconf's test for memset so I do 
a AC_DEFINE(HAVE_MEMSET) on the UnixWare platforms if not using gcc.

I moved the *mips-sni-sysv4*) AC_DEFINE(RELIANTUNIX) line inside
the case $host statement I added because it would allways fail on
a case $host_os.


> 

-- 
Tim Rice			Multitalents	(707) 887-1469 (voice)
tim at trr.metro.net
-------------- next part --------------
*** configure.in.old	Thu Dec 10 14:04:26 1998
--- configure.in	Thu Dec 10 15:14:02 1998
***************
*** 328,339 ****
  
  #
  # If no strcasecmp, check for it in some known places
! # It is in -lresolv on ReliantUNIX
  #   -lresolve *must* follow -lnsl for name resolution to work properly
  #
  
  if test x$ac_cv_func_strcasecmp = xno ; then
!   AC_CHECK_LIB(resolv,strcasecmp,[LIBS="$LIBS -lresolv"])
  fi
  
  #
--- 328,340 ----
  
  #
  # If no strcasecmp, check for it in some known places
! # It is in -lresolv on ReliantUNIX & UnixWare
  #   -lresolve *must* follow -lnsl for name resolution to work properly
  #
  
  if test x$ac_cv_func_strcasecmp = xno ; then
!   AC_CHECK_LIB(resolv,strcasecmp,[LIBS="$LIBS -lresolv"]
! 	AC_DEFINE(HAVE_STRCASECMP))
  fi
  
  #
***************
*** 386,393 ****
  		*sco*) AC_DEFINE(SCO);;
  		*next2*) AC_DEFINE(NEXT2);;
  		*dgux*) AC_CHECK_PROG( ROFF, groff, [groff -etpsR -Tascii -man]);;
! 		*sysv4.2*) AC_CHECK_LIB(resolv, strcasecmp);;
! 		*mips-sni-sysv4*) AC_DEFINE(RELIANTUNIX);;
  esac
  
  # try to work out how to produce pic code with this compiler
--- 387,405 ----
  		*sco*) AC_DEFINE(SCO);;
  		*next2*) AC_DEFINE(NEXT2);;
  		*dgux*) AC_CHECK_PROG( ROFF, groff, [groff -etpsR -Tascii -man]);;
! 		*sysv4*)    case "$host" in
! 				*-univel-*)	if [ test "$GCC" != yes ]; then
! 							AC_DEFINE(HAVE_MEMSET)
! 						fi
! 						LDSHFLAGS="-G"
! 						;;
! 				*mips-sni-sysv4*) AC_DEFINE(RELIANTUNIX);;
! 				esac ;;
! 		*sysv5*)	if [ test "$GCC" != yes ]; then
! 					AC_DEFINE(HAVE_MEMSET)
! 				fi
! 				LDSHFLAGS="-G"
! 				;;
  esac
  
  # try to work out how to produce pic code with this compiler


More information about the samba-technical mailing list