From a215500011290121925cfe929d71b80696732230 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 18 Jan 2015 02:03:56 +0100 Subject: initial import --- configure.ac | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..20ecfc1 --- /dev/null +++ b/configure.ac @@ -0,0 +1,48 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT(libtopmenu-gtk, 1.0, javier@javispedro.com) +AC_CONFIG_SRCDIR([libmdock/mdock-widget.h]) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE([foreign]) + +AC_CONFIG_MACRO_DIR([m4]) + +AC_ARG_ENABLE([mate-applet], + [AS_HELP_STRING([--enable-mate-applet], [build the Mate panel applet @<:@default=check@:>@])], + [], + [enable_mate_applet=check]) + +# Checks for programs. +AC_PROG_CC +AM_PROG_CC_C_O +AC_PROG_LIBTOOL + +# Checks for libraries. +PKG_CHECK_MODULES([GTK], [gtk+-x11-2.0]) +PKG_CHECK_MODULES([WNCK], [libwnck-1.0]) + +AS_IF([test "x$enable_mate_applet" != xno], + [PKG_CHECK_MODULES([MATEPANELAPPLET], [libmatepanelapplet-4.0], + [ + AC_DEFINE([HAVE_MATEPANELAPPLET], [1], [Define if you have libmatepanelapplet]) + enable_mate_applet=yes + ], + [if test "x$enable_mate_applet" = xyes; then + AC_MSG_FAILURE([--enable-mate-applet was given, but test for libmatepanelapplet failed]) + fi] + )] +) + +AM_CONDITIONAL([WANT_MATE_APPLET], [test x$enable_mate_applet = xyes]) + +# Output files +AC_CONFIG_FILES([ + Makefile + libmdock/Makefile + mate-applet/Makefile + test/Makefile +]) + +AC_OUTPUT -- cgit v1.2.3