1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
|
# Configure.in
#
# This file tests for various compiler features needed to configure
# the gtkmm package. Original skeleton was provided by Stephan Kulow.
# All tests were written by Tero Pulkkinen, Mirko Streckenbach, and
# Karl Nelson.
#
#
# Copyright 2001 Free Software Foundation
# Copyright 1999 gtkmm Development Team
# Copyright 1998 Stephan Kulow
#
AC_INIT(libnotify/libnotifymmconfig.h.in)
#########################################################################
# Version and initialization
#########################################################################
LIBNOTIFYMM_MAJOR_VERSION=0
LIBNOTIFYMM_MINOR_VERSION=6
LIBNOTIFYMM_MICRO_VERSION=1
#
# +1 : ? : +1 == new interface that does not break old one
# +1 : ? : 0 == new interface that breaks old one
# ? : ? : 0 == no new interfaces, but breaks apps
# ? :+1 : ? == just some internal changes, nothing breaks but might work
# better
# CURRENT : REVISION : AGE
LIBNOTIFYMM_SO_VERSION=7:0:0
LIBNOTIFYMM_VERSION=$LIBNOTIFYMM_MAJOR_VERSION.$LIBNOTIFYMM_MINOR_VERSION.$LIBNOTIFYMM_MICRO_VERSION
LIBNOTIFYMM_RELEASE=$LIBNOTIFYMM_MAJOR_VERSION.$LIBNOTIFYMM_MINOR_VERSION
AC_DEFINE_UNQUOTED(LIBNOTIFYMM_MAJOR_VERSION, $LIBNOTIFYMM_MAJOR_VERSION)
AC_DEFINE_UNQUOTED(LIBNOTIFYMM_MINOR_VERSION, $LIBNOTIFYMM_MINOR_VERSION)
AC_DEFINE_UNQUOTED(LIBNOTIFYMM_MICRO_VERSION, $LIBNOTIFYMM_MICRO_VERSION)
AC_DEFINE_UNQUOTED(LIBNOTIFYMM_VERSION, "$LIBNOTIFYMM_VERSION")
AC_SUBST(LIBNOTIFYMM_VERSION)
AC_SUBST(LIBNOTIFYMM_RELEASE)
AC_SUBST(LIBNOTIFYMM_SO_VERSION)
AC_CONFIG_AUX_DIR(scripts)
dnl For automake.
VERSION=$LIBNOTIFYMM_VERSION
PACKAGE=libnotifymm
dnl Initialize automake stuff
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
dnl Specify a configuration file (no autoheader)
AM_CONFIG_HEADER(libnotify/libnotifymmconfig.h)
AM_MAINTAINER_MODE
AL_ACLOCAL_INCLUDE(scripts)
#########################################################################
# Configure arguments
#########################################################################
#########################################################################
# Environment Checks
#########################################################################
AC_PROG_CC
AC_PROG_CPP
AC_PROG_MAKE_SET
AC_CANONICAL_HOST
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
AL_PROG_GNU_M4(AC_MSG_ERROR([dnl
SUN m4 does not work for building gtkmm.
Please install GNU m4.]))
AL_PROG_GNU_MAKE(AC_MSG_ERROR([dnl
SUN make does not work for building gtkmm.
Please install GNU make.]))
AL_PROG_PERL(AC_MSG_ERROR([Perl is required to build gtkmm.]))
AC_CHECK_PROGS(PERL, perl5 perl)
#########################################################################
# Dependancy checks
#########################################################################
PKG_CHECK_MODULES(LIBNOTIFYMM, glibmm-2.4 >= 2.12.8 gtkmm-2.4 >= 2.10 libnotify >= 0.4.3)
AC_SUBST(LIBNOTIFYMM_CFLAGS)
AC_SUBST(LIBNOTIFYMM_LIBS)
GLIBMM_PREFIX=`pkg-config --variable=prefix glibmm-2.4`
GMM_PROCDIR=$GLIBMM_PREFIX/lib/glibmm-2.4/proc
AC_SUBST(GMM_PROCDIR)
GMM_PROC=$GMM_PROCDIR/gmmproc
AC_SUBST(GMM_PROC)
#########################################################################
# C++ checks
#########################################################################
AC_PROG_CXX
AC_LANG_CPLUSPLUS
# Create a list of input directories for Doxygen. We have to check wether
# we are building in the source directory, because Doxygen doesn't like
# duplicated directories in the input list.
LIBNOTIFYMM_DOXYGEN_INPUT=''
gtkmm_srcdir=`cd "$srcdir" && pwd`
gtkmm_builddir=`pwd`
for sublib in libnotify
do
LIBNOTIFYMM_DOXYGEN_INPUT="$LIBNOTIFYMM_DOXYGEN_INPUT $gtkmm_builddir/$sublib/$sublib""mm/"
test "x$gtkmm_builddir" = "x$gtkmm_srcdir" || \
LIBNOTIFYMM_DOXYGEN_INPUT="$LIBNOTIFYMM_DOXYGEN_INPUT $gtkmm_srcdir/$sublib/$sublib""mm/"
done
AC_SUBST(LIBNOTIFYMM_DOXYGEN_INPUT)
# Add an --enable-reference option:
AC_ARG_ENABLE(reference,
[ --enable-reference Build the reference documentation],
[case "${enableval}" in
yes) reference=true ;;
no) reference=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-reference) ;;
esac],[reference=false])
AM_CONDITIONAL(BUILD_REFERENCE, test x$reference = xtrue)
# Dummy conditional just to make automake-1.4 happy.
# We need an always-false condition in docs/Makefile.am.
AM_CONDITIONAL(LIBNOTIFYMM_FALSE,[false])
# HACK: Assign a dummy in order to prevent execution of autoheader by the
# maintainer-mode rules. That would fail since we aren't using autoheader.
AUTOHEADER=':'
AC_OUTPUT([
Makefile
libnotify/Makefile
libnotify/libnotifymm-1.0.pc
libnotify/src/Makefile
libnotify/libnotifymm/Makefile
libnotify/libnotifymm/private/Makefile
tools/Makefile
tools/extra_defs_gen/Makefile
tools/m4/Makefile
scripts/Makefile
docs/Makefile
docs/reference/Makefile
docs/reference/Doxyfile
examples/Makefile
examples/action/Makefile
examples/basic/Makefile
examples/icon/Makefile
examples/server-info/Makefile
examples/status-icon/Makefile
examples/update/Makefile
examples/widget/Makefile
])
|