From 7885f76d408b1a71a0f98e00bc16fe72dd351808 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 3 Feb 2011 20:26:22 +0100 Subject: initial commit Signed-off-by: Florian Pritz --- configure.ac | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..6175e37 --- /dev/null +++ b/configure.ac @@ -0,0 +1,37 @@ +AC_INIT(qinfo, 1.0) +AC_CONFIG_SRCDIR(src/qinfo.c) +AC_PREREQ(2.57) +AM_INIT_AUTOMAKE +AC_CONFIG_HEADERS(config.h) + +AC_PROG_CC +AC_STDC_HEADERS +AC_PROG_INSTALL + +if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall -std=c99" +fi + +PKG_CHECK_MODULES(DEPS, gtk+-2.0 gobject-2.0 gmodule-2.0) +AC_SUBST(DEPS_CFLAGS) +AC_SUBST(DEPS_LIBS) + +AC_ARG_WITH(desktop-dir, [ --with-desktop-dir=PATH where to install desktop files (default=PREFIX/share)]) + +if test "x$with_desktop_dir" != x; then + DESKTOP_DATADIR=$with_desktop_dir +else + DESKTOP_DATADIR="$datadir" +fi + +AM_CONDITIONAL(DESKTOP_DATADIR, test "x$with_desktop_dir" != xno) +AC_SUBST(DESKTOP_DATADIR) + +AC_CONFIG_FILES([Makefile + src/Makefile + data/Makefile + data/desktop/Makefile + data/ui/Makefile]) +AC_CONFIG_COMMANDS([default],[[ echo timestamp > stamp-h ]],[[]]) + +AC_OUTPUT -- cgit v1.2.3-24-g4f1b