source: trunk/third/atk/configure.in @ 20776

Revision 20776, 5.7 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20775, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.54)
4
5dnl ==========================================================================
6dnl                              Versioning             
7dnl ==========================================================================
8
9dnl Making releases:
10dnl   ATK_MICRO_VERSION += 1;
11dnl   ATK_INTERFACE_AGE += 1;
12dnl   ATK_BINARY_AGE += 1;
13dnl if any functions have been added, set ATK_INTERFACE_AGE to 0.
14dnl if backwards compatibility has been broken,
15dnl set ATK_BINARY_AGE _and_ ATK_INTERFACE_AGE to 0.
16
17dnl The triplet
18m4_define([atk_major_version], [1])
19m4_define([atk_minor_version], [8])
20m4_define([atk_micro_version], [0])
21m4_define([atk_version],
22          [atk_major_version.atk_minor_version.atk_micro_version])
23
24dnl The X.Y in -latk-X.Y line. This is expected to stay 1.0 until Atk 2.
25m4_define([atk_api_version], [1.0])
26
27dnl Number of releases since we've added interfaces
28m4_define([atk_interface_age], [0])
29
30m4_define([atk_binary_age],
31          [m4_eval(100 * atk_minor_version + atk_micro_version)])
32
33m4_define([lt_current],
34          [m4_eval(100 * atk_minor_version + atk_micro_version - atk_interface_age)])`
35m4_define([lt_revision], [atk_interface_age])
36m4_define([lt_age], [m4_eval(atk_binary_age - atk_interface_age)])
37m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
38m4_define([lt_current_minus_age], [m4_eval(lt_current - lt_age)])
39
40
41AC_INIT(atk, [atk_version],
42        [http://bugzilla.gnome.org/enter_bug.cgi?product=atk])
43AC_CONFIG_SRCDIR([ChangeLog])
44
45AM_CONFIG_HEADER(config.h)
46
47AM_INIT_AUTOMAKE
48
49dnl ==========================================================================
50dnl
51dnl If you add a version number here, you *must* add an AC_SUBST line for
52dnl it too, or it will never make it into the spec file!
53dnl
54dnl ==========================================================================
55
56GLIB_REQUIRED_VERSION=2.0.0
57AC_SUBST(GLIB_REQUIRED_VERSION)
58
59
60ATK_MAJOR_VERSION=atk_major_version
61ATK_MINOR_VERSION=atk_minor_version
62ATK_MICRO_VERSION=atk_micro_version
63ATK_VERSION=atk_version
64ATK_API_VERSION=atk_api_version
65ATK_INTERFACE_AGE=atk_interface_age
66ATK_BINARY_AGE=atk_binary_age
67
68AC_SUBST(ATK_MAJOR_VERSION)
69AC_SUBST(ATK_MINOR_VERSION)
70AC_SUBST(ATK_VERSION)
71AC_SUBST(ATK_API_VERSION)
72AC_SUBST(ATK_MICRO_VERSION)
73AC_SUBST(ATK_INTERFACE_AGE)
74AC_SUBST(ATK_BINARY_AGE)
75
76dnl libtool versioning
77LT_VERSION_INFO=lt_version_info
78LT_CURRENT_MINUS_AGE=lt_current_minus_age
79AC_SUBST(LT_VERSION_INFO)
80AC_SUBST(LT_CURRENT_MINUS_AGE)
81
82dnl ==========================================================================
83
84GETTEXT_PACKAGE=atk10
85AC_SUBST(GETTEXT_PACKAGE)
86AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"],
87  [Define the gettext package to be used])
88
89AC_PROG_CC
90AM_DISABLE_STATIC
91AC_LIBTOOL_WIN32_DLL
92AM_PROG_LIBTOOL
93
94AC_MSG_CHECKING([for some Win32 platform])
95case "$host" in
96  *-*-mingw*|*-*-cygwin*)
97    platform_win32=yes
98    ;;
99  *)
100    platform_win32=no
101    ;;
102esac
103AC_MSG_RESULT([$platform_win32])
104AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
105
106AC_MSG_CHECKING([for native Win32 platform])
107case "$host" in
108  *-*-mingw*)
109    atk_native_win32=yes
110    ;;
111  *)
112    atk_native_win32=no
113    ;;
114esac
115AC_MSG_RESULT([$atk_native_win32])
116AM_CONDITIONAL(OS_WIN32, test "$atk_native_win32" = "yes")
117
118if test "$atk_native_win32" = "yes"; then
119  AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
120fi
121AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
122
123dnl Cache $ACLOCAL_FLAGS
124AC_CACHE_CHECK([for aclocal flags], ac_cv_atk_aclocal_flags,[
125   ac_cv_atk_aclocal_flags="$ACLOCAL_FLAGS"
126])
127ACLOCAL="$ACLOCAL $ac_cv_atk_aclocal_flags"
128
129AC_ARG_ENABLE(rebuilds,
130              [AC_HELP_STRING([--disable-rebuilds],
131                              [disable all source autogeneration rules])],,
132              [enable_rebuilds=yes])
133
134changequote(,)dnl
135if test "x$GCC" = "xyes"; then
136  case " $CFLAGS " in
137  *[\ \ ]-Wall[\ \      ]*) ;;
138  *) CFLAGS="$CFLAGS -Wall" ;;
139  esac
140fi
141changequote([,])dnl
142
143GLIB_PACKAGES="gobject-2.0 gmodule-2.0"
144AC_SUBST(GLIB_PACKAGES)
145
146dnl This PATH_GLIB is somewhat redundant, but does a sanity compile and
147dnl importantly defines the GLIB_GENMARSHAL variable for subst into the
148dnl Makefile
149AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,
150  AC_MSG_ERROR([
151*** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of
152*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
153*** but not in the same location as pkg-config add the location of the file
154*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.]),
155  gobject gmodule)
156
157PKG_CHECK_MODULES(DEP, glib-2.0 >= $GLIB_REQUIRED_VERSION $GLIB_PACKAGES, ,
158  AC_MSG_ERROR([
159        *** GLib not found. You can find it on ftp://ftp.gtk.org
160        *** Errors follow:
161            $DEP_PKG_ERRORS]))
162
163# Rerun PKG_CONFIG to add gthread-2.0 cflags, but not libs
164DEP_CFLAGS=`$PKG_CONFIG --cflags $GLIB_PACKAGES gthread-2.0`
165
166ALL_LINGUAS="af am az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gu he hi hr hu id is it ja kn ko li lt lv mk ml mn mr ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta tk tr uk vi wa yi zh_CN zh_TW"
167AM_GLIB_GNU_GETTEXT
168
169AM_GLIB_DEFINE_LOCALEDIR(ATK_LOCALEDIR)
170
171AC_CHECK_FUNCS(bind_textdomain_codeset)
172
173GTK_DOC_CHECK([1.0])
174
175# define a MAINT-like variable REBUILD which is set if Perl
176# and awk are found, so autogenerated sources can be rebuilt
177
178AC_PROG_AWK
179AC_CHECK_PROGS(PERL, perl5 perl)
180
181REBUILD=\#
182if test "x$enable_rebuilds" = "xyes" && \
183        test -n "$PERL" && \
184        $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
185     test -n "$AWK" ; then
186  REBUILD=
187fi
188AC_SUBST(REBUILD)
189
190AC_CONFIG_FILES([
191Makefile
192po/Makefile.in
193atk.pc
194atk-uninstalled.pc
195atk/Makefile
196atk/atk.rc
197tests/Makefile
198docs/Makefile
199docs/version.xml
200atk.spec
201atk-zip.sh
202])
203
204AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.