You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 1997/05/06 01:59:49 UTC

[PATCH] Re: [STATUS] Sun May 4 21:48:59 PDT 1997

Marc Slemko wrote:
> 
> On Mon, 5 May 1997, Jim Jagielski wrote:
> 
> > > 
> > >   * HP/UX 10 compilation problems ... it's a popular enough platform that
> > >     these should be fixed before release.
> > 
> > ?? What were the problems :/
> > 
> 
> I think Dean is referring to needing the -Ae and no -O2 compilation flags
> when using HP's cc. 
> 
> 

This should fix it:

Index: apache/src/Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.93
diff -c -r1.93 Configure
*** Configure	1997/04/27 07:52:16	1.93
--- Configure	1997/05/05 23:58:36
***************
*** 165,170 ****
--- 165,182 ----
  fi
  
  #
+ # Also look for the standard compilers
+ #
+ for compilers in "gcc" "cc" "acc" "c89"
+ do
+     lookedfor="$lookedfor $compilers"
+     if ./helpers/PrintPath -s $compilers; then
+ 	COMPILER="$compilers"
+     	break
+     fi
+ done
+ 
+ #
  SHELL="/bin/sh"
  
  case "$PLAT" in
***************
*** 210,232 ****
  	OS='HI-UX'
  	CFLAGS="$CFLAGS -DHIUX"
  	# if we're using the HIUX compiler, add a few flags.
! 	if [ "$CC" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HIUX_SOURCE"
  	fi
  	;;
      *-hp-hpux10.*)
  	OS='HP-UX 10'
  	CFLAGS="$CFLAGS -DHPUX10"
  	# if we're using the HPUX compiler, add a few flags.
! 	if [ "$CC" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
  	fi
  	;;
      *-hp-hpux*)
  	OS='HP-UX'
  	CFLAGS="$CFLAGS -DHPUX"
! 	if [ "$CC" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
  	fi
  	;;
      *-sgi-irix64)
--- 222,247 ----
  	OS='HI-UX'
  	CFLAGS="$CFLAGS -DHIUX"
  	# if we're using the HIUX compiler, add a few flags.
! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HIUX_SOURCE"
+ 	    OPTIM=""
  	fi
  	;;
      *-hp-hpux10.*)
  	OS='HP-UX 10'
  	CFLAGS="$CFLAGS -DHPUX10"
  	# if we're using the HPUX compiler, add a few flags.
! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
+ 	    OPTIM=""
  	fi
  	;;
      *-hp-hpux*)
  	OS='HP-UX'
  	CFLAGS="$CFLAGS -DHPUX"
! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
  	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
+ 	    OPTIM=""
  	fi
  	;;
      *-sgi-irix64)
***************
*** 321,327 ****
  	;;
      *-isc4*)
  	OS='ISC 4'
! 	CC=gcc
  	CFLAGS="$CFLAGS -posix -DISC"
  	LFLAGS="$LFLAGS -posix"
  	LIBS="$LIBS -linet"
--- 336,342 ----
  	;;
      *-isc4*)
  	OS='ISC 4'
! 	CC='gcc'
  	CFLAGS="$CFLAGS -posix -DISC"
  	LFLAGS="$LFLAGS -posix"
  	LIBS="$LIBS -linet"
***************
*** 473,487 ****
  # then we look for some popular compilers in our $PATH
  # and set a "safe" optimization level
  #
- 
- for compilers in "gcc" "cc" "acc" "c89"
- do
-     lookedfor="$lookedfor $compilers"
-     if ./helpers/PrintPath -s $compilers; then
- 	COMPILER="$compilers"
-     	break
-     fi
- done
  
  if grep "CC=" Makefile > /dev/null; then
      CC=""	# clear it just in case
--- 488,493 ----

-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
                  "Not the Craw... the CRAW!"

Re: [PATCH] Re: [STATUS] Sun May 4 21:48:59 PDT 1997

Posted by Marc Slemko <ma...@worldgate.com>.
I will ignore the fact that HPUX patch core dumps on the below patch.

After I had it applied (I love AFS when I don't hate it):

	- it still defines -O2, since the HPUX specific bit sets
 	  OPTIM="" so the later test:

	    if [ "x$OPTIM" = "x" ]; then
		OPTIM="-O2"
	    fi

	  causes OPTIM to be reset to -O2.  I _think_ -O sets
	  optimization for HPUX's compiler, but can't find the
	  darn man page.

	- if I set CC=mygcc then it still sets the HPUX cc specific
	  flags.

Don't have a chance to look any more deeply right now.

On Mon, 5 May 1997, Jim Jagielski wrote:

> Marc Slemko wrote:
> > 
> > On Mon, 5 May 1997, Jim Jagielski wrote:
> > 
> > > > 
> > > >   * HP/UX 10 compilation problems ... it's a popular enough platform that
> > > >     these should be fixed before release.
> > > 
> > > ?? What were the problems :/
> > > 
> > 
> > I think Dean is referring to needing the -Ae and no -O2 compilation flags
> > when using HP's cc. 
> > 
> > 
> 
> This should fix it:
> 
> Index: apache/src/Configure
> ===================================================================
> RCS file: /export/home/cvs/apache/src/Configure,v
> retrieving revision 1.93
> diff -c -r1.93 Configure
> *** Configure	1997/04/27 07:52:16	1.93
> --- Configure	1997/05/05 23:58:36
> ***************
> *** 165,170 ****
> --- 165,182 ----
>   fi
>   
>   #
> + # Also look for the standard compilers
> + #
> + for compilers in "gcc" "cc" "acc" "c89"
> + do
> +     lookedfor="$lookedfor $compilers"
> +     if ./helpers/PrintPath -s $compilers; then
> + 	COMPILER="$compilers"
> +     	break
> +     fi
> + done
> + 
> + #
>   SHELL="/bin/sh"
>   
>   case "$PLAT" in
> ***************
> *** 210,232 ****
>   	OS='HI-UX'
>   	CFLAGS="$CFLAGS -DHIUX"
>   	# if we're using the HIUX compiler, add a few flags.
> ! 	if [ "$CC" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HIUX_SOURCE"
>   	fi
>   	;;
>       *-hp-hpux10.*)
>   	OS='HP-UX 10'
>   	CFLAGS="$CFLAGS -DHPUX10"
>   	# if we're using the HPUX compiler, add a few flags.
> ! 	if [ "$CC" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
>   	fi
>   	;;
>       *-hp-hpux*)
>   	OS='HP-UX'
>   	CFLAGS="$CFLAGS -DHPUX"
> ! 	if [ "$CC" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
>   	fi
>   	;;
>       *-sgi-irix64)
> --- 222,247 ----
>   	OS='HI-UX'
>   	CFLAGS="$CFLAGS -DHIUX"
>   	# if we're using the HIUX compiler, add a few flags.
> ! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HIUX_SOURCE"
> + 	    OPTIM=""
>   	fi
>   	;;
>       *-hp-hpux10.*)
>   	OS='HP-UX 10'
>   	CFLAGS="$CFLAGS -DHPUX10"
>   	# if we're using the HPUX compiler, add a few flags.
> ! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
> + 	    OPTIM=""
>   	fi
>   	;;
>       *-hp-hpux*)
>   	OS='HP-UX'
>   	CFLAGS="$CFLAGS -DHPUX"
> ! 	if [ "$CC" = "cc" ] || [ "$COMPILER" = "cc" ]; then
>   	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
> + 	    OPTIM=""
>   	fi
>   	;;
>       *-sgi-irix64)
> ***************
> *** 321,327 ****
>   	;;
>       *-isc4*)
>   	OS='ISC 4'
> ! 	CC=gcc
>   	CFLAGS="$CFLAGS -posix -DISC"
>   	LFLAGS="$LFLAGS -posix"
>   	LIBS="$LIBS -linet"
> --- 336,342 ----
>   	;;
>       *-isc4*)
>   	OS='ISC 4'
> ! 	CC='gcc'
>   	CFLAGS="$CFLAGS -posix -DISC"
>   	LFLAGS="$LFLAGS -posix"
>   	LIBS="$LIBS -linet"
> ***************
> *** 473,487 ****
>   # then we look for some popular compilers in our $PATH
>   # and set a "safe" optimization level
>   #
> - 
> - for compilers in "gcc" "cc" "acc" "c89"
> - do
> -     lookedfor="$lookedfor $compilers"
> -     if ./helpers/PrintPath -s $compilers; then
> - 	COMPILER="$compilers"
> -     	break
> -     fi
> - done
>   
>   if grep "CC=" Makefile > /dev/null; then
>       CC=""	# clear it just in case
> --- 488,493 ----
> 
> -- 
> ====================================================================
>       Jim Jagielski            |       jaguNET Access Services
>      jim@jaguNET.com           |       http://www.jaguNET.com/
>                   "Not the Craw... the CRAW!"
>