Check if config.h passed correctly via gcc -include

laforge/swu
Martin Willi 2012-07-04 14:53:21 +02:00
parent 7115448529
commit 4c311ffb1f
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ AC_INIT(strongSwan,5.0.0)
AM_INIT_AUTOMAKE(tar-ustar)
AC_CONFIG_MACRO_DIR([m4/config])
AC_CONFIG_HEADERS([config.h])
AC_DEFINE([CONFIG_H_INCLUDED], [], [defined if config.h included])
PKG_PROG_PKG_CONFIG
dnl =================================

View File

@ -67,6 +67,10 @@
#ifndef LIBRARY_H_
#define LIBRARY_H_
#ifndef CONFIG_H_INCLUDED
# error config.h not included, pass "-include [...]/config.h" to gcc
#endif
#include "printf_hook.h"
#include "utils.h"
#include "chunk.h"