GCC 2.95 does not look in /usr/local/include

H.J. Lu hjl@lucon.org
Tue Jul 27 08:35:00 GMT 1999

> Just in case someone wonders why gcc 2.95 does not find their headers in
> /usr/local/include when prefix != /usr/local I'd suggest to take a look at
> http://egcs.cygnus.com/ml/gcc-patches/1999-07/msg00488.html or
> http://egcs.cygnus.com/ml/gcc-patches/1999-05/msg00477.html .  I won't
> report this bug a third time, but IMHO it is still enough time to fix it
> before the release.

I sent a patch many years for Linux to make gcc as the vendor compiler and
it was accepted. However, egcs didn't have the patch and I sent it again.
This time I was told egcs wouldn't be used as the vendor compiler and
someone might even remove my patch from the gcc subdirectory. That might be
ok since there was gcc Now egcs == gcc. My patch should go in.

Here is the patch again.

H.J. Lu (hjl@gnu.org)
Tue Jul 27 08:33:08 1999  H.J. Lu  (hjl@gnu.org)

	* configure (native_prefix): New, set to /usr
	(default_prefix): New, set to /usr/local.
	(prefix): Set by ${native_prefix} or ${default_prefix}.

Index: configure
RCS file: /work/cvs/gnu/egcs/configure,v
retrieving revision
diff -u -p -r1.1.1.17 configure
--- configure	1999/07/11 18:28:23
+++ configure	1999/07/11 18:35:57
@@ -67,7 +67,9 @@ norecursion=
@@ -575,6 +577,18 @@ case "${srcdir}" in
                 exit 1
+# Are we using gcc as the native compiler?
+if [ x${prefix} = xNONE ]; then
+	case ${host_alias} in
+	*linux*)	# All Linux's use gcc as the native compiler.
+		prefix=${native_prefix}
+		;;
+	*)
+		prefix=${default_prefix}
+		;;
+	esac
 # default exec_prefix
 case "${exec_prefixoption}" in

More information about the Gcc-patches mailing list