From 0c6a6ffce7c6bb15b18d8c59135c10f2fbadb34b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 17 Jun 2008 19:06:39 +0200 Subject: Use config.h --- .gitignore | 1 + autogen.sh | 1 + configure.in | 1 + libpiano/configure.in | 1 + libpiano/src/xml.c | 1 + src/settings.c | 1 + 6 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 26f6eab..a2ce306 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ make Makefile Makefile.in missing +stamp-h1 diff --git a/autogen.sh b/autogen.sh index 3d09394..a0cb304 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,6 +4,7 @@ for DIR in . libpiano; do cd $DIR libtoolize --force \ && aclocal \ + && autoheader \ && automake --add-missing \ && autoconf done diff --git a/configure.in b/configure.in index 2edfb6e..9dec623 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,6 @@ AC_INIT([pianobar], [0.1], [PromyLOPh@gmail.com]) AC_CONFIG_SRCDIR([src/main.c]) +AM_CONFIG_HEADER([src/config.h]) AM_INIT_AUTOMAKE([-Wall]) AC_PROG_CC diff --git a/libpiano/configure.in b/libpiano/configure.in index 6d7e380..9ad6541 100644 --- a/libpiano/configure.in +++ b/libpiano/configure.in @@ -1,6 +1,7 @@ AC_INIT([libpiano], [0.1], [PromyLOPh@gmail.com]) AC_CONFIG_AUX_DIR([.]) AC_CONFIG_SRCDIR([src/main.c]) +AM_CONFIG_HEADER([src/config.h]) AM_INIT_AUTOMAKE([-Wall]) AC_PROG_CC diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 3369074..1267951 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -28,6 +28,7 @@ THE SOFTWARE. #include "piano.h" #include "crypt.h" +#include "config.h" void PianoXmlStructParser (xmlNode *structRoot, void (*callback) (char *, xmlNode *, void *), void *data); diff --git a/src/settings.c b/src/settings.c index 66cf59b..91fce9a 100644 --- a/src/settings.c +++ b/src/settings.c @@ -25,6 +25,7 @@ THE SOFTWARE. #include #include "settings.h" +#include "config.h" /* tries to guess your config dir; somehow conforming to * http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html -- cgit v1.2.3