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/07/25 02:46:54 UTC

[PATCH] Barf if using HP-UXs cc compiler

Is this too simple?

Index: apache/src/Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.120
diff -u -r1.120 Configure
--- Configure	1997/07/24 04:35:45	1.120
+++ Configure	1997/07/25 00:43:59
@@ -629,9 +629,9 @@
 	;;
     'HP-UX'|'HP-UX 10')
 	if [ "$TCC" = "cc" ]; then
-	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
-	    OPTIM=" "
-	    TOPTIM=""
+	    echo "** Apache will not compile using HP-UX's 'cc' compiler"
+	    echo "** We strongly suggest installing 'gcc'"
+	    exit 1
 	fi
 	;;
 esac
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Re: [PATCH] Barf if using HP-UXs cc compiler

Posted by Marc Slemko <ma...@worldgate.com>.
On Thu, 24 Jul 1997, Jim Jagielski wrote:

> Is this too simple?

Yes, because cc works it is just cc that doesn't.  Sigh.  They are both
called cc from what I recall.

> 
> Index: apache/src/Configure
> ===================================================================
> RCS file: /export/home/cvs/apache/src/Configure,v
> retrieving revision 1.120
> diff -u -r1.120 Configure
> --- Configure	1997/07/24 04:35:45	1.120
> +++ Configure	1997/07/25 00:43:59
> @@ -629,9 +629,9 @@
>  	;;
>      'HP-UX'|'HP-UX 10')
>  	if [ "$TCC" = "cc" ]; then
> -	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
> -	    OPTIM=" "
> -	    TOPTIM=""
> +	    echo "** Apache will not compile using HP-UX's 'cc' compiler"
> +	    echo "** We strongly suggest installing 'gcc'"
> +	    exit 1
>  	fi
>  	;;
>  esac
> -- 
> ====================================================================
>       Jim Jagielski            |       jaguNET Access Services
>      jim@jaguNET.com           |       http://www.jaguNET.com/
>             "Look at me! I'm wearing a cardboard belt!"
> 


Re: [PATCH] Barf if using HP-UXs cc compiler

Posted by Alexei Kosut <ak...@organic.com>.
On Thu, 24 Jul 1997, Jim Jagielski wrote:

> Is this too simple?

I think so. If they have paid for their compiler, presumably they'll want
to use it. It would be named cc in that occasion.

> Index: apache/src/Configure
> ===================================================================
> RCS file: /export/home/cvs/apache/src/Configure,v
> retrieving revision 1.120
> diff -u -r1.120 Configure
> --- Configure	1997/07/24 04:35:45	1.120
> +++ Configure	1997/07/25 00:43:59
> @@ -629,9 +629,9 @@
>  	;;
>      'HP-UX'|'HP-UX 10')
>  	if [ "$TCC" = "cc" ]; then
> -	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
> -	    OPTIM=" "
> -	    TOPTIM=""
> +	    echo "** Apache will not compile using HP-UX's 'cc' compiler"
> +	    echo "** We strongly suggest installing 'gcc'"
> +	    exit 1
>  	fi
>  	;;
>  esac
> -- 
> ====================================================================
>       Jim Jagielski            |       jaguNET Access Services
>      jim@jaguNET.com           |       http://www.jaguNET.com/
>             "Look at me! I'm wearing a cardboard belt!"
> 

-- Alexei Kosut <ak...@organic.com>


Re: [PATCH] Barf if using HP-UXs cc compiler

Posted by Brian Behlendorf <br...@organic.com>.
Yes, because we will compile with the commercial compiler.

Something which still set those options yet had "Beware: with HP's compiler
family, you get what you pay for!" or something...

	Brian

At 08:46 PM 7/24/97 -0400, you wrote:
>Is this too simple?
>
>Index: apache/src/Configure
>===================================================================
>RCS file: /export/home/cvs/apache/src/Configure,v
>retrieving revision 1.120
>diff -u -r1.120 Configure
>--- Configure	1997/07/24 04:35:45	1.120
>+++ Configure	1997/07/25 00:43:59
>@@ -629,9 +629,9 @@
> 	;;
>     'HP-UX'|'HP-UX 10')
> 	if [ "$TCC" = "cc" ]; then
>-	    CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
>-	    OPTIM=" "
>-	    TOPTIM=""
>+	    echo "** Apache will not compile using HP-UX's 'cc' compiler"
>+	    echo "** We strongly suggest installing 'gcc'"
>+	    exit 1
> 	fi
> 	;;
> esac
>-- 
>====================================================================
>      Jim Jagielski            |       jaguNET Access Services
>     jim@jaguNET.com           |       http://www.jaguNET.com/
>            "Look at me! I'm wearing a cardboard belt!"
>
--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"Why not?" - TL           brian@organic.com - hyperreal.org - apache.org