mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
This is a major redesign a modernization of Sysprof. The core data structures and design are largely the same, but it has been ported to Gtk3 and has lots of additions that should make your profiling experience smoother. Especially for those that are new to profiling. There are some very simple help docs added, but we really need the experts to come in and write some documentation here.
197 lines
6.3 KiB
Plaintext
197 lines
6.3 KiB
Plaintext
AC_PREREQ([2.69])
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Define Versioning Information
|
|
dnl ***********************************************************************
|
|
m4_define([major_version],[3])
|
|
m4_define([minor_version],[19])
|
|
m4_define([micro_version],[90])
|
|
m4_define([package_version],[major_version.minor_version.micro_version])
|
|
m4_define([bug_report_url],[https://bugzilla.gnome.org/enter_bug.cgi?product=sysprof])
|
|
m4_define([api_version],[2])
|
|
|
|
AX_IS_RELEASE([micro-version])
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Initialize autoconf
|
|
dnl ***********************************************************************
|
|
AC_INIT([sysprof],[package_version],[bug_report_url])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_SRCDIR([data/sysprof.pc.in])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AC_SUBST([ACLOCAL_AMFLAGS], "-I m4")
|
|
AC_CANONICAL_HOST
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Make version information available to autoconf files
|
|
dnl ***********************************************************************
|
|
AC_SUBST([MAJOR_VERSION],major_version)
|
|
AC_SUBST([MINOR_VERSION],minor_version)
|
|
AC_SUBST([MICRO_VERSION],micro_version)
|
|
AC_SUBST([API_VERSION],api_version)
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Initialize automake
|
|
dnl ***********************************************************************
|
|
AM_SILENT_RULES([yes])
|
|
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects tar-ustar no-dist-gzip dist-xz -Wno-portability])
|
|
AM_MAINTAINER_MODE([enable])
|
|
AX_GENERATE_CHANGELOG
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Add extra debugging with --enable-debug and --enable-compile-warnings
|
|
dnl ***********************************************************************
|
|
AX_CHECK_ENABLE_DEBUG([no],[]
|
|
[G_DISABLE_ASSERT G_DISABLE_CHECKS G_DISABLE_CAST_CHECKS])
|
|
AX_COMPILER_FLAGS
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Internationalization
|
|
dnl ***********************************************************************
|
|
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
|
|
AC_SUBST([GETTEXT_PACKAGE])
|
|
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [GETTEXT package name])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.19.6])
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Check for required programs
|
|
dnl ***********************************************************************
|
|
AX_COMPILER_FLAGS_CXXFLAGS
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
AX_CXX_COMPILE_STDCXX_0X
|
|
AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
|
|
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
|
|
AC_PATH_PROG([GLIB_COMPILE_RESOURCES],[glib-compile-resources])
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
|
GLIB_GSETTINGS
|
|
GOBJECT_INTROSPECTION_CHECK([1.42.0])
|
|
VAPIGEN_CHECK
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Check for required packages
|
|
dnl ***********************************************************************
|
|
PKG_CHECK_MODULES(SYSPROF, [gio-2.0 >= 2.44
|
|
gtk+-3.0 >= 3.16
|
|
polkit-gobject-1])
|
|
PKG_CHECK_MODULES(SYSTEMD, [libsystemd >= 222],
|
|
[have_systemd=yes],
|
|
[have_systemd=no])
|
|
|
|
|
|
# we require systemd for sysprofd
|
|
AM_CONDITIONAL(ENABLE_SYSPROFD, [test x$have_systemd = xyes])
|
|
|
|
|
|
# where to place systemd units if necessary
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
|
|
[Directory for systemd service files]),
|
|
[],
|
|
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
if test "x$with_systemdsystemunitdir" != "xno"; then
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
fi
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Override location of debug symbols for system libraries
|
|
dnl ***********************************************************************
|
|
debugdir=${libdir}/debug
|
|
|
|
# Separate debug dir
|
|
|
|
dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
|
|
dnl Version 1.3 (2001/03/02)
|
|
dnl source http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
|
|
|
|
AC_DEFUN([AC_DEFINE_DIR], [
|
|
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
ac_define_dir=`eval echo [$]$2`
|
|
ac_define_dir=`eval echo [$]ac_define_dir`
|
|
ifelse($3, ,
|
|
AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
|
|
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
|
|
])
|
|
|
|
AC_ARG_WITH(separate-debug-dir,
|
|
[ --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]],
|
|
[debugdir="${withval}"])
|
|
|
|
AC_DEFINE_DIR(DEBUGDIR, debugdir,
|
|
[Look for global separate debug info in this path])
|
|
|
|
AC_SUBST([LIBEXECDIR], `eval echo "${libexecdir}"`)
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl User documentation
|
|
dnl ***********************************************************************
|
|
YELP_HELP_INIT
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Initialize Libtool
|
|
dnl ***********************************************************************
|
|
LT_PREREQ([2.2])
|
|
LT_INIT
|
|
|
|
|
|
dnl ***********************************************************************
|
|
dnl Process .in Files
|
|
dnl ***********************************************************************
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
|
|
lib/Makefile
|
|
lib/sysprof-version.h
|
|
|
|
daemon/Makefile
|
|
|
|
data/Makefile
|
|
data/icons/Makefile
|
|
data/sysprof-$API_VERSION.pc:data/sysprof.pc.in
|
|
data/org.gnome.Sysprof2.conf
|
|
data/org.gnome.sysprof2.policy
|
|
|
|
help/Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
src/Makefile
|
|
|
|
tests/Makefile
|
|
|
|
tools/Makefile
|
|
],[],
|
|
[API_VERSION='$API_VERSION'])
|
|
AC_OUTPUT
|
|
|
|
|
|
echo ""
|
|
echo " ${PACKAGE} - ${VERSION}"
|
|
echo ""
|
|
echo " Options"
|
|
echo ""
|
|
echo " Prefix ............................... : ${prefix}"
|
|
echo " Libdir ............................... : ${libdir}"
|
|
echo " Libexecdir ........................... : ${libexecdir}"
|
|
echo ""
|
|
echo " Debug Directory ...................... : ${debugdir}"
|
|
echo ""
|
|
echo " Sysprofd ............................. : ${have_systemd}"
|
|
echo " Systemd System Units ................. : ${with_systemdsystemunitdir}"
|
|
echo ""
|