2 AC_CONFIG_MACRO_DIR([m4])
4 AC_INIT([gsecret],[0.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=gsecret])
6 AC_CONFIG_SRCDIR([library/gsecret-data.c])
7 AC_CONFIG_HEADERS([config.h])
9 dnl Other initialization
11 AM_MAINTAINER_MODE([enable])
12 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
15 dnl Checks for programs.
20 dnl Checks for libraries.
22 dnl ****************************
23 dnl *** Checks for intltool
25 IT_PROG_INTLTOOL([0.35.0])
26 GETTEXT_PACKAGE=gsecret
28 AC_SUBST([GETTEXT_PACKAGE])
29 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[The gettext domain name])
32 dnl *****************************
35 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0 gio-2.0 >= 2.16.0 gthread-2.0 >= 2.16.0)
36 LIBS="$LIBS $GLIB_LIBS"
37 CFLAGS="$CFLAGS $GLIB_CFLAGS"
41 dnl *************************************
42 dnl *** Warnings to show if using GCC ***
43 dnl *************************************
45 AC_ARG_ENABLE(more-warnings,
46 AS_HELP_STRING([--disable-more-warnings], [Inhibit compiler warnings]),
49 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
51 -Wall -Wstrict-prototypes -Wmissing-declarations \
52 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
53 -Wdeclaration-after-statement -Wformat=2 -Winit-self \
54 -Waggregate-return -Wmissing-format-attribute"
56 for option in -Wmissing-include-dirs -Wundef; do
58 CFLAGS="$CFLAGS $option"
59 AC_MSG_CHECKING([whether gcc understands $option])
60 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])],
63 AC_MSG_RESULT($has_option)
64 if test $has_option = no; then
70 dnl *****************************
72 dnl *****************************
73 AC_CONFIG_FILES([Makefile