• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl Example for use of GNU gettext.
2dnl This file is in the public domain.
3dnl
4dnl Configuration file - processed by autoconf.
5
6AC_INIT([hello-c-gnome3], [0])
7AC_CONFIG_SRCDIR([hello.c])
8AM_INIT_AUTOMAKE([1.11])
9
10AC_PROG_CC
11AC_CHECK_HEADERS([unistd.h])
12AM_GNU_GETTEXT([external])
13AM_GNU_GETTEXT_VERSION([0.21])
14
15dnl Check GNOME specific stuff.
16dnl
17dnl If you have full GNOME development environment installed on your
18dnl system, you should be able to use the following macros:
19dnl
20dnl   AM_PATH_GLIB_2_0
21dnl   PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.10], ,
22dnl     [AC_MSG_ERROR([can't find gtk+-3.0])])
23dnl
24dnl Here, in gettext-tools/examples, we do the checks manually for
25dnl simplicity.
26
27AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
28AS_IF([test -z "$GLIB_COMPILE_RESOURCES"], [
29  AC_MSG_ERROR([can't find glib-compile-resources])
30])
31
32AC_PATH_PROG([GLIB_COMPILE_SCHEMAS], [glib-compile-schemas])
33AS_IF([test -z "$GLIB_COMPILE_SCHEMAS"], [
34  AC_MSG_ERROR([can't find glib-compile-schemas])
35])
36
37AC_PATH_PROG([PKG_CONFIG], [pkg-config])
38AS_IF([test -z "$PKG_CONFIG"], [
39  AC_MSG_ERROR([can't find pkg-config])
40])
41
42GTK="gtk+-3.0 >= 3.10"
43AS_IF(["$PKG_CONFIG" --exists "$GTK"], , [
44  AC_MSG_ERROR([can't find $GTK])
45])
46
47GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK"`
48AC_SUBST([GTK_CFLAGS])
49
50GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK"`
51AC_SUBST([GTK_LIBS])
52
53AC_CONFIG_FILES([Makefile])
54AC_CONFIG_FILES([m4/Makefile])
55AC_CONFIG_FILES([po/Makefile.in])
56AC_OUTPUT
57