Subject: net/ORBit: question regarding Makefile variable
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 03/09/2005 14:50:37
net/ORBit in some of its Makefiles has
ORBIT_HAVE_ALLOCA_H=1  (or =0, depending on the system)

Now is this sufficient for a define ORBIT_HAVE_ALLOCA_H to be accessible
in the C code?
config.h uses
#if ORBIT_HAVE_ALLOCA_H
#include <alloca.h>
#endif

At least on my system I had to add to the CPPFLAGS definition in the
Makefile
-DORBIT_HAVE_ALLOCA_H=$(ORBIT_HAVE_ALLOCA_H)
in order to have ORBIT_HAVE_ALLOCA_H known to the C preprocessor.
Is this a bug in ORBit? If so, does anyone know a better fix than
patching the Makefile.in's and add the above -D to the CPPFLAGS?

Georg   

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de     +49 178 8545053