X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=00ff4c6dcdad7a0ff9de241ddc2b9cc7a21724ba;hb=2dce96335e110f7d3536f13d51998c267e67eecb;hp=989a2282ed2bdeae85e1774f10783a4164d00c45;hpb=7d091ae2bea9ffb164a5736a416ceccd79639431;p=ptask.git diff --git a/configure.ac b/configure.ac index 989a228..00ff4c6 100644 --- a/configure.ac +++ b/configure.ac @@ -2,14 +2,16 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.64]) -AC_INIT([gtask], [0.0.x],[jeanfi@gmail.com],[gtask],[http://wpitchoune.net/gtask]) +AC_INIT([ptask], [0.0.x],[jeanfi@gmail.com],[ptask],[http://wpitchoune.net/ptask]) -AM_INIT_AUTOMAKE([-Wall -Werror gnu]) +AM_INIT_AUTOMAKE([-Wall gnu]) AC_CONFIG_SRCDIR([src/main.c]) +AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC +AC_PROG_CC_C99 AM_PROG_CC_C_O # Checks for header files. @@ -42,18 +44,20 @@ AC_SUBST(GTK_LIBS) # Check JSON JSON_LIBS= -PKG_CHECK_MODULES(JSON, - json, - [AC_DEFINE([HAVE_JSON],[1],[Use JSON])], - [AC_MSG_WARN("Remote monitoring disabled, json missing")]) -AM_CONDITIONAL(JSON, test -n "$JSON_LIBS") +PKG_CHECK_MODULES(JSON, json) AC_SUBST(JSON_CFLAGS) AC_SUBST(JSON_LIBS) +# Gsettings +GLIB_GSETTINGS + AC_CONFIG_FILES([ Makefile + icons/hicolor/scalable/Makefile po/Makefile.in src/Makefile + src/glade/Makefile + tests/Makefile ]) AC_CHECK_PROGS([HELP2MAN], [help2man])