1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
AC_INIT([ui-gxmlcpp],[1.4.6])
# See DEVELOPERS file for shared library versioning instructions
#Guidelines for SO_VERSION changes for an official release (initial
#version is always "0:0:0"):
#One of A, B1 or B2 will be your path:
#
# A) If only the source code, but not the interface was changed,
# the REVISION is increased by one.
# B) If the interface changed, the INTERFACE number is increased by
# one and REVISION is set to zero.
# B1) If only new interfaces were added, the AGE is increased by
# one.
# B2) If interfaces were removed or there were incompatible
# changes, the AGE is set to zero.
# INTERFACE:REVISION:AGE
UI_INIT([src/ui-gxmlcpp/Tree.hpp], [5:2:0],,,[tar-pax])
AC_CONFIG_HEADERS([config.h])
dnl All below should be generic throughout releases
UI_DOXYGEN
UI_DISTDIR_CRUFT
dnl Checks for programs.
UI_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT
PKG_PROG_PKG_CONFIG
AC_CHECK_PROG([PROG_DOXYGEN], [doxygen], [ok])
if test "${PROG_DOXYGEN}" != "ok"; then
AC_MSG_ERROR("We need tool doxygen.")
fi
dnl Check for perl paths; we need this for doxygen
AC_PATH_PROG(PERL, perl)
test x"$PERL" = x && AC_MSG_ERROR("perl not found in PATH")
AC_SUBST(PERL)
AC_PATH_PROG(SED, sed, no)
test x"$SED" = xno && AC_MSG_ERROR([sed not found in PATH.])
# Development environment checks
AC_LANG_PUSH(C++)
AC_SYS_LARGEFILE
AC_CHECK_LIB(dl, dlopen,, [ AC_MSG_ERROR(Failed to detect libdl.)])
# Check for stable ui-utilcpp >= 1.8.3 (LFS) >= 1.8.5 (auto_ptr) (so 9)
UI_CHECK(ui_utilcpp, ui-utilcpp, 1, 8, 5, 9, 0, 0)
AC_CHECK_LIB(ui-utilcpp, open,, [ AC_MSG_ERROR(ui-gxmlcpp needs ui-utilcpp.) ])
# boost unit test framework check
AC_CHECK_HEADER(boost/test/auto_unit_test.hpp, , [ AC_MSG_ERROR("Header error: boost/test/auto_unit_test.hpp")])
# Test for library missing (unfortunately, this does not seem to be trivial)
PKG_CHECK_MODULES([XML], [libxml-2.0 >= 2.6.14])
PKG_CHECK_MODULES([XSLT], [libxslt >= 1.1.11])
AC_LANG_POP
# Finals
AC_CONFIG_FILES([
Makefile
Doxyfile
doc/Makefile
src/Makefile
src/ui-gxmlcpp/Makefile
src/tools/Makefile
src/compat-1.0/ui-gxmlcpp/Makefile
])
AC_OUTPUT
|