-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
84 lines (64 loc) · 2.5 KB
/
configure.ac
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
79
80
81
82
83
84
AC_INIT(dalkom, 2016.05.15)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall -Werror])
AM_MAINTAINER_MODE([disable])
AM_SILENT_RULES([no])
AM_PROG_AR
AC_PROG_CC
AC_PROG_CXX
LT_INIT([disable-static])
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=dalkom
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
dnl ***************************************************************************
dnl OO SDK environment
dnl ***************************************************************************
AS_IF([test -d "/usr/lib/libreoffice"],
[OFFICE_HOME=/usr/lib/libreoffice],
[test -d "/usr/lib64/libreoffice"],
[OFFICE_HOME=/usr/lib64/libreoffice],
[AC_MSG_ERROR([libreoffice not found, please install libreoffice and sdk])])
OO_SDK_HOME=$OFFICE_HOME/sdk
OO_SDK_URE_HOME=/usr/lib/ure
AS_IF([test -d "/usr/include/libreoffice"],
[OFFICE_INC_DIR=/usr/include/libreoffice],
[test -d "$OO_SDK_HOME/include"],
[OFFICE_INC_DIR=$OO_SDK_HOME/include],
[AC_MSG_ERROR([libreoffice not found, please install libreoffice and sdk])])
AC_PATH_PROG(CPPUMAKER, cppumaker, [no], $OO_SDK_HOME/bin)
AC_PATH_PROG(IDLC, idlc, [no], $OO_SDK_HOME/bin)
AC_CHECK_FILE([$OO_SDK_URE_HOME/share/misc/types.rdb],
[TYPES_RDB=$OO_SDK_URE_HOME/share/misc/types.rdb], [TYPES_RDB="no"])
if test "x$TYPES_RDB" = "xno"; then
AC_CHECK_FILE([$OFFICE_HOME/program/types.rdb],
[TYPES_RDB=$OFFICE_HOME/program/types.rdb],
[AC_MSG_ERROR([types.rdb not found, please install an ure package])])
fi
if test "x$CPPUMAKER" = "xno"; then
AC_MSG_ERROR([cppumaker not found, please install libreoffice-dev])
fi
UNOPKG_PLATFORM=linux_`uname -m`
AC_SUBST(OFFICE_HOME)
AC_SUBST(OO_SDK_HOME)
AC_SUBST(OO_SDK_URE_HOME)
AC_SUBST(UNOPKG_PLATFORM)
AC_SUBST(TYPES_RDB)
AC_SUBST(OFFICE_INC_DIR)
dnl ***************************************************************************
dnl Check libhwp
dnl ***************************************************************************
PKG_CHECK_MODULES(LIBHWP, libhwp)
dnl ***************************************************************************
AC_OUTPUT([
Makefile
data/Makefile
data/description.xml
src/Makefile
po/Makefile.in])