|
Packit Service |
ef73c4 |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_PREREQ([2.63])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl ==========================================================================
|
|
Packit Service |
ef73c4 |
dnl Versioning
|
|
Packit Service |
ef73c4 |
dnl ==========================================================================
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl Making releases:
|
|
Packit Service |
ef73c4 |
dnl ATK_MICRO_VERSION += 1;
|
|
Packit Service |
ef73c4 |
dnl ATK_INTERFACE_AGE += 1;
|
|
Packit Service |
ef73c4 |
dnl ATK_BINARY_AGE += 1;
|
|
Packit Service |
ef73c4 |
dnl if any functions have been added, set ATK_INTERFACE_AGE to 0.
|
|
Packit Service |
ef73c4 |
dnl if backwards compatibility has been broken,
|
|
Packit Service |
ef73c4 |
dnl set ATK_BINARY_AGE _and_ ATK_INTERFACE_AGE to 0.
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl The triplet
|
|
Packit Service |
ef73c4 |
m4_define([atk_major_version], [2])
|
|
Packit Service |
ef73c4 |
m4_define([atk_minor_version], [28])
|
|
Packit Service |
ef73c4 |
m4_define([atk_micro_version], [1])
|
|
Packit Service |
ef73c4 |
m4_define([atk_version],
|
|
Packit Service |
ef73c4 |
[atk_major_version.atk_minor_version.atk_micro_version])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl The X.Y in -latk-X.Y line. This is expected to stay 1.0 until Atk 3.
|
|
Packit Service |
ef73c4 |
m4_define([atk_api_version], [1.0])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl Number of releases since we've added interfaces
|
|
Packit Service |
ef73c4 |
m4_define([atk_interface_age], [1])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl binary_age includes major version as ATK 2 is still fully API and ABI compatible
|
|
Packit Service |
ef73c4 |
m4_define([atk_binary_age],
|
|
Packit Service |
ef73c4 |
[m4_eval(10000 * atk_major_version + 100 * atk_minor_version + 10 + atk_micro_version)])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
m4_define([lt_current],
|
|
Packit Service |
ef73c4 |
[m4_eval(10000 * atk_major_version + 100 * atk_minor_version + 10 + atk_micro_version - atk_interface_age)])
|
|
Packit Service |
ef73c4 |
m4_define([lt_revision], [atk_interface_age])
|
|
Packit Service |
ef73c4 |
m4_define([lt_age], [m4_eval(atk_binary_age - atk_interface_age)])
|
|
Packit Service |
ef73c4 |
m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
|
|
Packit Service |
ef73c4 |
m4_define([lt_current_minus_age], [m4_eval(lt_current - lt_age)])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_INIT([atk],
|
|
Packit Service |
ef73c4 |
[atk_version],
|
|
Packit Service |
ef73c4 |
[http://bugzilla.gnome.org/enter_bug.cgi?product=atk],
|
|
Packit Service |
ef73c4 |
[atk])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_CONFIG_HEADERS([config.h])
|
|
Packit Service |
ef73c4 |
AC_CONFIG_SRCDIR([README])
|
|
Packit Service |
ef73c4 |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-dist-gzip dist-xz tar-ustar])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Support silent build rules, requires at least automake-1.11. Disable
|
|
Packit Service |
ef73c4 |
# by either passing --disable-silent-rules to configure or passing V=1
|
|
Packit Service |
ef73c4 |
# to make
|
|
Packit Service |
ef73c4 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl ==========================================================================
|
|
Packit Service |
ef73c4 |
dnl
|
|
Packit Service |
ef73c4 |
dnl If you add a version number here, you *must* add an AC_SUBST line for
|
|
Packit Service |
ef73c4 |
dnl it too, or it will never make it into the spec file!
|
|
Packit Service |
ef73c4 |
dnl
|
|
Packit Service |
ef73c4 |
dnl ==========================================================================
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
ATK_MAJOR_VERSION=atk_major_version
|
|
Packit Service |
ef73c4 |
ATK_MINOR_VERSION=atk_minor_version
|
|
Packit Service |
ef73c4 |
ATK_MICRO_VERSION=atk_micro_version
|
|
Packit Service |
ef73c4 |
ATK_VERSION=atk_version
|
|
Packit Service |
ef73c4 |
ATK_API_VERSION=atk_api_version
|
|
Packit Service |
ef73c4 |
ATK_INTERFACE_AGE=atk_interface_age
|
|
Packit Service |
ef73c4 |
ATK_BINARY_AGE=atk_binary_age
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_MAJOR_VERSION)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_MINOR_VERSION)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_VERSION)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_API_VERSION)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_MICRO_VERSION)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_INTERFACE_AGE)
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_BINARY_AGE)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl libtool versioning
|
|
Packit Service |
ef73c4 |
LT_VERSION_INFO=lt_version_info
|
|
Packit Service |
ef73c4 |
LT_CURRENT_MINUS_AGE=lt_current_minus_age
|
|
Packit Service |
ef73c4 |
AC_SUBST(LT_VERSION_INFO)
|
|
Packit Service |
ef73c4 |
AC_SUBST(LT_CURRENT_MINUS_AGE)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl ==========================================================================
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Check for programs
|
|
Packit Service |
ef73c4 |
AC_PROG_CC
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Initialize libtool
|
|
Packit Service |
ef73c4 |
LT_PREREQ([2.2])
|
|
Packit Service |
ef73c4 |
LT_INIT([disable-static win32-dll])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_CHECK_FUNCS(bind_textdomain_codeset)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_MSG_CHECKING([for some Win32 platform])
|
|
Packit Service |
ef73c4 |
case "$host" in
|
|
Packit Service |
ef73c4 |
*-*-mingw*|*-*-cygwin*)
|
|
Packit Service |
ef73c4 |
platform_win32=yes
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
*)
|
|
Packit Service |
ef73c4 |
platform_win32=no
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
esac
|
|
Packit Service |
ef73c4 |
AC_MSG_RESULT([$platform_win32])
|
|
Packit Service |
ef73c4 |
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_MSG_CHECKING([for native Win32 platform])
|
|
Packit Service |
ef73c4 |
case "$host" in
|
|
Packit Service |
ef73c4 |
*-*-mingw*)
|
|
Packit Service |
ef73c4 |
atk_native_win32=yes
|
|
Packit Service |
ef73c4 |
case "$host" in
|
|
Packit Service |
ef73c4 |
x86_64-*-*)
|
|
Packit Service |
ef73c4 |
LIB_EXE_MACHINE_FLAG=X64
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
*)
|
|
Packit Service |
ef73c4 |
LIB_EXE_MACHINE_FLAG=X86
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
esac
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
*)
|
|
Packit Service |
ef73c4 |
atk_native_win32=no
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
esac
|
|
Packit Service |
ef73c4 |
AC_MSG_RESULT([$atk_native_win32])
|
|
Packit Service |
ef73c4 |
AM_CONDITIONAL(OS_WIN32, test "$atk_native_win32" = "yes")
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_SUBST(LIB_EXE_MACHINE_FLAG)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
if test "$atk_native_win32" = "yes"; then
|
|
Packit Service |
ef73c4 |
AC_CHECK_TOOL(WINDRES, windres, no)
|
|
Packit Service |
ef73c4 |
if test "$WINDRES" = no; then
|
|
Packit Service |
ef73c4 |
AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])
|
|
Packit Service |
ef73c4 |
fi
|
|
Packit Service |
ef73c4 |
AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
fi
|
|
Packit Service |
ef73c4 |
AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
dnl Cache $ACLOCAL_FLAGS
|
|
Packit Service |
ef73c4 |
AC_CACHE_CHECK([for aclocal flags], ac_cv_atk_aclocal_flags,[
|
|
Packit Service |
ef73c4 |
ac_cv_atk_aclocal_flags="$ACLOCAL_FLAGS"
|
|
Packit Service |
ef73c4 |
])
|
|
Packit Service |
ef73c4 |
ACLOCAL="$ACLOCAL $ac_cv_atk_aclocal_flags"
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_ARG_ENABLE(rebuilds,
|
|
Packit Service |
ef73c4 |
[AS_HELP_STRING([--disable-rebuilds],
|
|
Packit Service |
ef73c4 |
[disable all source autogeneration rules])],,
|
|
Packit Service |
ef73c4 |
[enable_rebuilds=yes])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES"
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
changequote(,)dnl
|
|
Packit Service |
ef73c4 |
if test "x$GCC" = "xyes"; then
|
|
Packit Service |
ef73c4 |
case " $CFLAGS " in
|
|
Packit Service |
ef73c4 |
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
Packit Service |
ef73c4 |
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
Packit Service |
ef73c4 |
esac
|
|
Packit Service |
ef73c4 |
fi
|
|
Packit Service |
ef73c4 |
changequote([,])dnl
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
GLIB_REQUIRED_VERSION=2.31.2
|
|
Packit Service |
ef73c4 |
AC_SUBST(GLIB_REQUIRED_VERSION)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
PKG_CHECK_MODULES(DEP, [gobject-2.0 >= $GLIB_REQUIRED_VERSION])
|
|
Packit Service |
ef73c4 |
AC_SUBST(DEP_CFLAGS)
|
|
Packit Service |
ef73c4 |
AC_SUBST(DEP_LIBS)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
|
|
Packit Service |
ef73c4 |
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
|
|
Packit Service |
ef73c4 |
AC_SUBST(GLIB_MKENUMS)
|
|
Packit Service |
ef73c4 |
AC_SUBST(GLIB_GENMARSHAL)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# i18n stuff
|
|
Packit Service |
ef73c4 |
AM_GNU_GETTEXT_VERSION([0.19.2])
|
|
Packit Service |
ef73c4 |
AM_GNU_GETTEXT([external])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
GETTEXT_PACKAGE=atk10
|
|
Packit Service |
ef73c4 |
AC_SUBST(GETTEXT_PACKAGE)
|
|
Packit Service |
ef73c4 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"],
|
|
Packit Service |
ef73c4 |
[Define the gettext package to be used])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Introspection support
|
|
Packit Service |
ef73c4 |
GOBJECT_INTROSPECTION_CHECK([1.32.0])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Documentation support
|
|
Packit Service |
ef73c4 |
GTK_DOC_CHECK([1.25])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# define a MAINT-like variable REBUILD which is set if Perl
|
|
Packit Service |
ef73c4 |
# and awk are found, so autogenerated sources can be rebuilt
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_PROG_AWK
|
|
Packit Service |
ef73c4 |
AC_CHECK_PROGS(PERL, perl5 perl)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Check whether MSVC toolset is explicitly set
|
|
Packit Service |
ef73c4 |
AM_CONDITIONAL(MSVC_BASE_NO_TOOLSET_SET, [test x$MSVC_BASE_TOOLSET = x])
|
|
Packit Service |
ef73c4 |
AM_CONDITIONAL(MSVC_NO_TOOLSET_SET, [test x$MSVC_TOOLSET = x])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
REBUILD=\#
|
|
Packit Service |
ef73c4 |
if test "x$enable_rebuilds" = "xyes" && \
|
|
Packit Service |
ef73c4 |
test -n "$PERL" && \
|
|
Packit Service |
ef73c4 |
$PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
|
|
Packit Service |
ef73c4 |
test -n "$AWK" ; then
|
|
Packit Service |
ef73c4 |
REBUILD=
|
|
Packit Service |
ef73c4 |
fi
|
|
Packit Service |
ef73c4 |
AC_SUBST(REBUILD)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
# Check for the visibility flags
|
|
Packit Service |
ef73c4 |
ATK_HIDDEN_VISIBILITY_CFLAGS=""
|
|
Packit Service |
ef73c4 |
case "$host" in
|
|
Packit Service |
ef73c4 |
*-*-mingw*)
|
|
Packit Service |
ef73c4 |
dnl on mingw32 we do -fvisibility=hidden and __declspec(dllexport)
|
|
Packit Service |
ef73c4 |
AC_DEFINE([_ATK_EXTERN], [__attribute__((visibility("default"))) __declspec(dllexport) extern],
|
|
Packit Service |
ef73c4 |
[defines how to decorate public symbols while building])
|
|
Packit Service |
ef73c4 |
CFLAGS="${CFLAGS} -fvisibility=hidden"
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
*)
|
|
Packit Service |
ef73c4 |
dnl on other compilers, check if we can do -fvisibility=hidden
|
|
Packit Service |
ef73c4 |
SAVED_CFLAGS="${CFLAGS}"
|
|
Packit Service |
ef73c4 |
CFLAGS="-fvisibility=hidden"
|
|
Packit Service |
ef73c4 |
AC_MSG_CHECKING([for -fvisibility=hidden compiler flag])
|
|
Packit Service |
ef73c4 |
AC_TRY_COMPILE([], [int main (void) { return 0; }],
|
|
Packit Service |
ef73c4 |
AC_MSG_RESULT(yes)
|
|
Packit Service |
ef73c4 |
enable_fvisibility_hidden=yes,
|
|
Packit Service |
ef73c4 |
AC_MSG_RESULT(no)
|
|
Packit Service |
ef73c4 |
enable_fvisibility_hidden=no)
|
|
Packit Service |
ef73c4 |
CFLAGS="${SAVED_CFLAGS}"
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AS_IF([test "${enable_fvisibility_hidden}" = "yes"], [
|
|
Packit Service |
ef73c4 |
AC_DEFINE([_ATK_EXTERN], [__attribute__((visibility("default"))) extern],
|
|
Packit Service |
ef73c4 |
[defines how to decorate public symbols while building])
|
|
Packit Service |
ef73c4 |
ATK_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
|
|
Packit Service |
ef73c4 |
])
|
|
Packit Service |
ef73c4 |
;;
|
|
Packit Service |
ef73c4 |
esac
|
|
Packit Service |
ef73c4 |
AC_SUBST(ATK_HIDDEN_VISIBILITY_CFLAGS)
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_CONFIG_FILES([
|
|
Packit Service |
ef73c4 |
Makefile
|
|
Packit Service |
ef73c4 |
po/Makefile.in
|
|
Packit Service |
ef73c4 |
atk.pc
|
|
Packit Service |
ef73c4 |
atk/Makefile
|
|
Packit Service |
ef73c4 |
atk/atk.rc
|
|
Packit Service |
ef73c4 |
atk/atkversion.h
|
|
Packit Service |
ef73c4 |
tests/Makefile
|
|
Packit Service |
ef73c4 |
win32/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs9/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs9/atk-version-paths.vsprops
|
|
Packit Service |
ef73c4 |
win32/vs10/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs10/atk-version-paths.props
|
|
Packit Service |
ef73c4 |
win32/vs11/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs12/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs14/Makefile
|
|
Packit Service |
ef73c4 |
win32/vs15/Makefile
|
|
Packit Service |
ef73c4 |
docs/Makefile
|
|
Packit Service |
ef73c4 |
config.h.win32
|
|
Packit Service |
ef73c4 |
])
|
|
Packit Service |
ef73c4 |
|
|
Packit Service |
ef73c4 |
AC_OUTPUT
|