X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=71d097845e08245f95362cc303b5fbc70e7e7ee9;hb=68e95c289f412df1e3293cbd921bdfbc786192b9;hp=8a9c2910e837e22df035eaba911e7569199d4073;hpb=9ceb471a15f39b9a1619afb51f6c90c26819297d;p=profile%2Fivi%2Fweston.git diff --git a/configure.ac b/configure.ac index 8a9c291..71d0978 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,21 @@ +m4_define([weston_major_version], [1]) +m4_define([weston_minor_version], [0]) +m4_define([weston_micro_version], [6]) +m4_define([weston_version], + [weston_major_version.weston_minor_version.weston_micro_version]) + AC_PREREQ([2.64]) AC_INIT([weston], - [1.0.5], - [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.0.5], + [weston_version], + [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=weston_version], [weston], [http://wayland.freedesktop.org/]) +AC_SUBST([WESTON_VERSION_MAJOR], [weston_major_version]) +AC_SUBST([WESTON_VERSION_MINOR], [weston_minor_version]) +AC_SUBST([WESTON_VERSION_MICRO], [weston_micro_version]) +AC_SUBST([WESTON_VERSION], [weston_version]) + AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz]) @@ -240,12 +251,21 @@ fi AC_SUBST(GCC_CFLAGS) AC_SUBST(GCC_CXXFLAGS) +PKG_CHECK_MODULES(LIBUNWIND, libunwind, + [have_libunwind=yes], [have_libunwind=no]) +if test "x$have_libunwind" = xyes; then + AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support]) +fi +AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$have_libunwind" = xyes]) + WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol']) AC_CONFIG_FILES([Makefile shared/Makefile src/Makefile src/xwayland/Makefile + src/version.h + src/weston.pc clients/Makefile wcap/Makefile data/Makefile