[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CFLAGS for AC_COMPILE_IFELSE.
From: |
Ralf Corsepius |
Subject: |
Re: CFLAGS for AC_COMPILE_IFELSE. |
Date: |
Wed, 14 May 2008 14:08:42 +0200 |
On Tue, 2008-05-13 at 13:11 -0500, Bob Friesenhahn wrote:
> On Tue, 13 May 2008, Ralf Corsepius wrote:
> >
> > /usr/include (and /usr/lib) + /usr/local/include (and /usr/local/lib)
> > are special to GCC, they are on the system-default (include, library)
> > search paths, and are treated differently than other directories by GCC
>
> More often than not, the formally installed GCC ignores
> /usr/local/include. For example, the GCC that comes with OS-X Leopard
> does not look there. The GCC that comes with FreeBSD 7.0 does not
> look there. On the other hand, the 'cc' that came with SunOS 4.1.3
> does check /usr/local/include by default, so the GCC install for that
> target did check /usr/local/include by default so that it would match
> the system compiler. It should not be assumed that if the compiler is
> GCC that it will pay any attention to /usr/local/include.
Vendor supplied "cc"s (traditionally closed source), traditionally don't
look into /usr/local/include.
FSF-GCC's do, because they treat /usr/local/{lib/include} as the
directories to put files into which are supposed to replace vendor
supplied files.
That said, the behavior you describe for OS-X's cc doesn't surprise me,
but I can't find FreeBSD's behavior helpful.
Ralf
Re: CFLAGS for AC_COMPILE_IFELSE., Brian Dessent, 2008/05/13