You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1999/07/21 13:57:10 UTC

cvs commit: apache-1.3/src/include ap_config.h

martin      99/07/21 04:57:10

  Modified:    src      Configure
               src/include ap_config.h
  Log:
  Adapt some compile time switches for BS2000 platform.
  Auto-detect presence of initgroups()
  and take advantage of the faster USE_SHMGET_SCOREBOARD
  
  Revision  Changes    Path
  1.360     +19 -2     apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.359
  retrieving revision 1.360
  diff -u -r1.359 -r1.360
  --- Configure	1999/07/20 17:59:42	1.359
  +++ Configure	1999/07/21 11:57:08	1.360
  @@ -619,10 +619,9 @@
       BS2000*-siemens-sysv4*)
   	OS='BS2000'
   	OSDIR='os/bs2000'
  -	CC='c89 -XLLML -XLLMK'
  +	CC='c89 -XLLML -XLLMK -XL'
   	CFLAGS="$CFLAGS -DCHARSET_EBCDIC -DSVR4 -D_XPG_IV"
   	DEF_WANTHSREGEX=yes
  -	LIBS="$LIBS -lsocket -lnsl -lc"
   	DBM_LIB=""
   	;;
       *-siemens-sysv4*)
  @@ -1403,6 +1402,24 @@
   	fi
   	if TLIB=$TLIB ./helpers/TestCompile lib socket; then
   	    LIBS="-lsocket $LIBS"
  +	fi
  +	;;
  +    BS2000*-siemens-sysv4*)
  +	# Depending on the BS2000 OS and compiler/crte release,
  +	# -lnsl may be available (or may be not).
  +	# In standard SVR4 systems, -lsocket relies on some symbols
  +	# from -lnsl, so the test for -lnsl must appear first.
  +	if ./helpers/TestCompile lib nsl; then
  +	    LIBS="$LIBS -lnsl"
  +	    TLIB='-lnsl'
  +	fi
  +	if TLIB=$TLIB ./helpers/TestCompile lib socket; then
  +	    LIBS="-lsocket $LIBS"
  +	fi
  +	if ./helpers/TestCompile func initgroups; then
  +	    :
  +	else
  +	    CFLAGS="$CFLAGS -DNEED_INITGROUPS"
   	fi
   	;;
   esac
  
  
  
  1.263     +1 -3      apache-1.3/src/include/ap_config.h
  
  Index: ap_config.h
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/include/ap_config.h,v
  retrieving revision 1.262
  retrieving revision 1.263
  diff -u -r1.262 -r1.263
  --- ap_config.h	1999/06/30 09:09:37	1.262
  +++ ap_config.h	1999/07/21 11:57:09	1.263
  @@ -605,12 +605,10 @@
   #define HAVE_SHMGET 1
   #define USE_SHMGET_SCOREBOARD
   #ifdef _OSD_POSIX /* BS2000-POSIX mainframe needs initgroups */
  -#define NEED_INITGROUPS
   #define NEED_HASHBANG_EMUL /* execve() doesn't start shell scripts by default */
  -#undef HAVE_SHMGET
  +#define _KMEMUSER          /* Enable SHM_R/SHM_W defines in <shm.h> */
   #undef NEED_STRCASECMP
   #undef NEED_STRNCASECMP
  -#undef USE_SHMGET_SCOREBOARD
   #undef bzero
   #endif /*_OSD_POSIX*/