From d8e88386748d3952c6a82726c9d36cad870992fd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Sep 2006 09:23:05 +0000 Subject: r18447: make sure we bail out if the config.h is not generated by samba's configure. this could happen when you have done a standalone build in lib/replace/, lib/talloc, ... metze --- source/include/includes.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/include') diff --git a/source/include/includes.h b/source/include/includes.h index dc7db5d3bb1..5850103145c 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -23,8 +23,15 @@ #ifndef NO_CONFIG_H /* for some tests */ #include "lib/replace/replace.h" + +/* make sure we have included the correct config.h */ +#ifndef CONFIG_H_IS_FROM_SAMBA +#warn "make sure you have removed all config.h files from standalone builds!" +#error "the included config.h isn't from samba!" #endif +#endif /* NO_CONFIG_H */ + #include "local.h" #ifdef __GNUC__ -- cgit v1.2.1