2013-09-26 20:30:31 +00:00
|
|
|
m4_define([swe_glib_major_version], [2])
|
2014-07-08 09:25:55 +00:00
|
|
|
m4_define([swe_glib_minor_version], [1])
|
|
|
|
m4_define([swe_glib_micro_version], [0])
|
2013-09-16 20:07:34 +00:00
|
|
|
m4_define([swe_glib_version], [swe_glib_major_version.swe_glib_minor_version.swe_glib_micro_version])
|
|
|
|
m4_define([swe_glib_api_version], [swe_glib_major_version.0])
|
2014-05-21 15:04:54 +00:00
|
|
|
m4_define([swe_major_version], [2])
|
|
|
|
m4_define([swe_minor_version], [0])
|
|
|
|
m4_define([swe_version], [swe_major_version.swe_minor_version])
|
2013-09-05 15:17:23 +00:00
|
|
|
|
2013-09-16 20:07:34 +00:00
|
|
|
AC_INIT([SWE-GLib], [swe_glib_version], [gergely@polonkai.eu], [swe-glib])
|
2013-09-05 10:25:58 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wall foreign])
|
2013-09-16 20:07:34 +00:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2013-09-05 10:25:58 +00:00
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [compile with debugging support])], , enable_debug=no)
|
|
|
|
|
|
|
|
if test "x$enable_debug" = "xyes" ; then
|
|
|
|
AC_DEFINE([DEBUG], [1], [Define if debugging is enabled])
|
2013-10-04 21:37:36 +00:00
|
|
|
if test x$cflags_set != xset ; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[[\ \ ]]-g[[\ \ ]]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -g" ;;
|
|
|
|
esac
|
|
|
|
fi
|
2013-09-05 10:25:58 +00:00
|
|
|
fi
|
|
|
|
|
2013-09-16 20:07:34 +00:00
|
|
|
AC_SUBST([SWE_GLIB_MAJOR_VERSION], [swe_glib_major_version])
|
|
|
|
AC_SUBST([SWE_GLIB_MINOR_VERSION], [swe_glib_minor_version])
|
|
|
|
AC_SUBST([SWE_GLIB_MICRO_VERSION], [swe_glib_micro_version])
|
2013-09-16 20:37:37 +00:00
|
|
|
AC_SUBST([SWE_GLIB_VERSION], [swe_glib_version])
|
2013-09-05 15:17:23 +00:00
|
|
|
AC_SUBST([SWE_GLIB_API_VERSION], [swe_glib_api_version])
|
|
|
|
AC_SUBST([SWE_GLIB_API_VERSION_U], [AS_TR_SH([swe_glib_api_version])])
|
2014-05-21 15:04:54 +00:00
|
|
|
AC_SUBST([SWE_VERSION], [swe_version])
|
2013-09-05 15:17:23 +00:00
|
|
|
|
2013-09-05 10:25:58 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AM_PROG_AR
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
|
|
|
GETTEXT_PACKAGE=swe-glib
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GETTEXT package name])
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.17])
|
|
|
|
LT_INIT
|
|
|
|
AC_CHECK_LIB([m], [atan])
|
2013-10-04 21:46:00 +00:00
|
|
|
m4_ifdef([GTK_DOC_CHECK], [
|
2013-10-05 00:05:17 +00:00
|
|
|
GTK_DOC_CHECK([1.19], [--flavour no-tmpl])
|
2013-10-04 21:46:00 +00:00
|
|
|
],[
|
2013-10-05 00:05:17 +00:00
|
|
|
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
|
2013-10-04 21:46:00 +00:00
|
|
|
])
|
2013-09-05 15:17:23 +00:00
|
|
|
GOBJECT_INTROSPECTION_CHECK([1.0])
|
2014-05-07 06:36:24 +00:00
|
|
|
m4_ifdef([VALA_PROG_VAPIGEN], [
|
|
|
|
VALA_PROG_VAPIGEN([0.21])
|
|
|
|
AM_CONDITIONAL([HAVE_VAPIGEN], true)
|
|
|
|
],[
|
|
|
|
AM_CONDITIONAL([HAVE_VAPIGEN], false)
|
|
|
|
])
|
2013-09-05 10:25:58 +00:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
|
2013-10-04 21:37:36 +00:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
native_win32=no
|
|
|
|
case "$host" in
|
|
|
|
*-*-mingw*)
|
|
|
|
native_win32=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AM_CONDITIONAL(OS_WIN32, [test "$native_win32" = "yes"])
|
|
|
|
AM_CONDITIONAL(OS_UNIX, [test "$native_win32" != "yes"])
|
|
|
|
AC_PATH_PROG([GTESTER], [gtester])
|
|
|
|
AC_PATH_PROG([GTESTER_REPORT], [gtester-report])
|
2013-10-05 01:05:22 +00:00
|
|
|
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.32.0])
|
|
|
|
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.32.0])
|
2014-10-14 21:19:51 +00:00
|
|
|
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.26])
|
|
|
|
|
|
|
|
GLIB_GSETTINGS
|
2013-09-05 10:25:58 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2014-05-21 15:04:54 +00:00
|
|
|
LIBSWE_LIBS='$(top_builddir)/swe/src/libswe-$(SWE_VERSION).la'
|
2013-09-05 10:25:58 +00:00
|
|
|
AC_SUBST(LIBSWE_LIBS)
|
|
|
|
|
2013-09-10 00:00:04 +00:00
|
|
|
LIBSWE_GLIB_LIBS='$(top_builddir)/src/libswe-glib-$(SWE_GLIB_API_VERSION).la'
|
2013-09-05 13:52:27 +00:00
|
|
|
AC_SUBST(LIBSWE_GLIB_LIBS)
|
|
|
|
|
2013-09-05 10:25:58 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
2013-09-10 00:52:03 +00:00
|
|
|
swe/Makefile
|
2013-09-05 10:25:58 +00:00
|
|
|
swe/src/Makefile
|
2013-09-10 00:52:03 +00:00
|
|
|
swe/doc/Makefile
|
2013-09-05 10:25:58 +00:00
|
|
|
src/Makefile
|
2013-09-06 09:08:48 +00:00
|
|
|
data/Makefile
|
2013-09-05 10:25:58 +00:00
|
|
|
po/Makefile.in
|
2013-10-04 21:37:36 +00:00
|
|
|
tests/Makefile
|
2013-09-10 17:31:45 +00:00
|
|
|
data/swe-glib.pc
|
2013-09-18 09:54:05 +00:00
|
|
|
data/swe-glib.spec
|
2014-07-06 08:23:59 +00:00
|
|
|
src/gswe-version.h
|
2013-09-05 10:25:58 +00:00
|
|
|
])
|
2013-10-04 22:00:48 +00:00
|
|
|
AM_COND_IF([ENABLE_GTK_DOC], [
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
docs/reference/swe-glib/version.xml
|
|
|
|
docs/reference/swe-glib/Makefile
|
|
|
|
])
|
|
|
|
])
|
2013-09-05 10:25:58 +00:00
|
|
|
AC_OUTPUT
|