On 08/15/2013 10:28 AM, Alexander Aring wrote: [...] >> The config.h is autogenerated by autotools. >> > Yea, I saw this too. AC_CONFIG_HEADERS([config.h]). > > But the main "coap.h" header file for the api includes this "config.h" header > file. So a aplication which uses autotools can't do a include > because it includes the config.h from the autotools generated header file > and redefined all autotools related things. > > Difficult to explain... :) Oh yes, I remember this problem. Have a look at libabc if they have a proper solution for this. If not have a look at rtnet's configure.ac [1], search for "AH_VERBATIM" and have a look at the end of that file. Marc [1] http://www.rts.uni-hannover.de/rtnet/lxr/source/configure.ac -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |