From 680944d583d1fd90278ce16b6ade7840548f4941 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 20 May 2008 19:55:14 +0200 Subject: [PATCH] [build] Use autoheader & config.h Signed-off-by: Julien Danjou --- common/draw.h | 1 + common/version.c | 1 + configure.ac | 1 + lua.c | 15 +++------------ 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/common/draw.h b/common/draw.h index fcfa5ddac..a7fb2d3b6 100644 --- a/common/draw.h +++ b/common/draw.h @@ -29,6 +29,7 @@ #include +#include "config.h" #include "common/util.h" #include "common/list.h" #include "common/xutil.h" diff --git a/common/version.c b/common/version.c index 3d8fead35..7349bcb11 100644 --- a/common/version.c +++ b/common/version.c @@ -22,6 +22,7 @@ #include #include +#include "config.h" #include "common/version.h" #include "awesome-version-internal.h" diff --git a/configure.ac b/configure.ac index c79efdf72..6a5ddae7e 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ foreign std-options subdir-objects ]) +AC_CONFIG_HEADER([config.h]) AC_DEFINE_UNQUOTED([AWESOME_RELEASE], [m4_esyscmd([./build-utils/package-codename . codename-stamp])], [release code name]) diff --git a/lua.c b/lua.c index 43b796c32..ed9756c43 100644 --- a/lua.c +++ b/lua.c @@ -11,22 +11,13 @@ /* XStringToKeysym() */ #include +#include "config.h" #include "structs.h" #include "lua.h" -#include "tag.h" -#include "statusbar.h" -#include "widget.h" -#include "placement.h" -#include "client.h" #include "window.h" -#include "mouse.h" -#include "statusbar.h" -#include "screen.h" -#include "titlebar.h" +#include "tag.h" +#include "client.h" #include "layouts/tile.h" -#include "layouts/floating.h" -#include "common/util.h" -#include "common/xutil.h" extern AwesomeConf globalconf; extern bool running;