refdes_renum: warn of possible number clash with non-conforming values
[geda-gaf/whiteaudio.git] / m4 / geda-libgeda.m4
blobc373baf48578c358da7ce043cd1c480275282dbf
1 # geda-libgeda.m4                                       -*-Autoconf-*-
2 # serial 1.0
4 dnl libgeda-specific setup
5 dnl Copyright (C) 2009  Peter Brett <peter@peter-b.co.uk>
6 dnl
7 dnl This program is free software; you can redistribute it and/or modify
8 dnl it under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation; either version 2 of the License, or
10 dnl (at your option) any later version.
11 dnl
12 dnl This program is distributed in the hope that it will be useful,
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 dnl GNU General Public License for more details.
16 dnl
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with this program; if not, write to the Free Software
19 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 # Work out the gettext domain that libgeda should use
22 AC_DEFUN([AX_LIBGEDA],
24   AC_PREREQ([2.60])dnl
26   # First argument is the shared library version to use.
27   AC_MSG_CHECKING([libgeda shared library version])
28   AC_MSG_RESULT($1)
29   AC_SUBST([LIBGEDA_SHLIB_VERSION], $1)
31   # Work out the gettext domain to use
32   AC_MSG_CHECKING([libgeda gettext domain])
33   so_major=`echo $LIBGEDA_SHLIB_VERSION | sed -e "s/:.*//"`
34   LIBGEDA_GETTEXT_DOMAIN="libgeda$so_major"
35   AC_MSG_RESULT([$LIBGEDA_GETTEXT_DOMAIN])
36   AC_SUBST([LIBGEDA_GETTEXT_DOMAIN])
37   AC_DEFINE_UNQUOTED([LIBGEDA_GETTEXT_DOMAIN], ["$LIBGEDA_GETTEXT_DOMAIN"],
38     "Name of libgeda's gettext domain.")