diff --git a/src/common.h b/src/common.h index 1292508..5aa5c82 100644 --- a/src/common.h +++ b/src/common.h @@ -1,5 +1,9 @@ #ifndef COMMON_H #define COMMON_H + +#ifdef HAVE_CONFIG_H +# include +#endif void myfunc(); #endif /* COMMON_H */ diff --git a/src/main.c b/src/main.c index 821c0ef..5b72c0e 100644 --- a/src/main.c +++ b/src/main.c @@ -1,10 +1,17 @@ -#include "config.h" +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include "common.h" int main(int argc, char *argv[]) { printf ("Hello world\n"); - myfunc(); + printf ("PACKAGE " PACKAGE "\n"); + printf ("PACKAGE_BUGREPORT " PACKAGE_BUGREPORT "\n"); + printf ("PACKAGE_NAME "PACKAGE_NAME "\n"); + printf ("PACKAGE_STRING " PACKAGE_STRING "\n"); + printf ("PACKAGE_TARNAME " PACKAGE_TARNAME "\n"); return 0; }