Hello, * J.T. Conklin wrote on Fri, Nov 09, 2007 at 05:48:04AM CET: > overbored <[EMAIL PROTECTED]> writes: > > How do I tell automake not to pass "-I." to g++/gcc? Thanks in advance.
Use the nostdinc option: <http://sources.redhat.com/automake/automake.html#Options> <http://sources.redhat.com/automake/automake.html#Program-variables> > > (The problem is that this project has a string.h, which conflicts with > > the standard string.h. Besides, why "-I." in the first place? Is it > > because some people prefer #include <blah> over #include "blah" for > > their own header files as well?) Almost. For VPATH builds (source tree != build tree), you want to not have to differentiate via <> or "" whether the included or the including file lives in the source or the build tree, respectively. > I've run into a similar problem with the ACE framework (in my case, it > only effected systems with case insensitve filesystems), and solved it > by adding "DEFAULT_INCLUDES=" to the offending Makefile.am. > > As far as I know, it's not documented and may not even be intended > behavior. But I'll use it as long as it does what I need. Yep, overriding DEFAULT_INCLUDES is not documented, so using nostdinc is safer. Cheers, Ralf