blob: cd234d11c8de47f26b1a08edfa1e56d098a41d49 (
plain)
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# Process this file with autoconf to produce a configure script.
AC_INIT(ise-engine-default, 1.0.0, li2012.zhang@samsung.com)
AC_CONFIG_SRCDIR([src/isf_default_imengine.cpp])
# Save this value here, since automake will set cflags and cxxflags later
cflags_set=${CFLAGS+set}
cppflags_set=${CPPFLAGS+set}
ISF_DEFAULT_MAJOR_VERSION=1
ISF_DEFAULT_MINOR_VERSION=0
ISF_DEFAULT_MICRO_VERSION=0
ISF_DEFAULT_VERSION=$ISF_DEFAULT_MAJOR_VERSION.$ISF_DEFAULT_MINOR_VERSION.$ISF_DEFAULT_MICRO_VERSION
AC_SUBST(ISF_DEFAULT_MAJOR_VERSION)
AC_SUBST(ISF_DEFAULT_MINOR_VERSION)
AC_SUBST(ISF_DEFAULT_MICRO_VERSION)
AC_SUBST(ISF_DEFAULT_VERSION)
# Init automake stuff
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h])
# Init platform
PLATFORM_INIT
# Init libtool
AC_DISABLE_STATIC
AC_LIBTOOL_DLOPEN
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_LIB_LTDL
AC_SUBST(LIBTOOL_DEPS)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_LANG(C++)
AC_C_CONST
AC_TYPE_SIZE_T
case $host_cpu in
*arm* ) TARGET=ARM;;
* ) TARGET=X86;;
esac
AM_CONDITIONAL(ARM, test x$TARGET = xARM)
ISF_VERSION=1.0.0
PKG_CHECK_MODULES(ISF,[isf >= $ISF_VERSION])
AC_SUBST(ISF_VERSION)
# Checks for header files.
AC_HEADER_STDC
# Checks for library functions.
AC_SUBST(ac_aux_dir)
# libtool option to control which symbols are exported
# right now, symbols starting with _ are not exported
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
# Extra args.
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on debugging],
enable_debug=yes,
enable_debug=no)
if test "$enable_debug" = "yes"; then
AC_DEFINE(ENABLE_DEBUG, 1 ,[Define this to enable the debug facility in libscim])
CFLAGS="$CFLAGS -g"
CXXFLAGS="$CXXFLAGS -g"
fi
ISF_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
ISF_PKGDIR=`$PKG_CONFIG --variable=pkgdir scim`
ISF_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
ISF_DATADIR=`$PKG_CONFIG --variable=scimdatadir scim`
ISF_LIBDIR=`$PKG_CONFIG --variable=libdir scim`
if test "x$ISF_ICONDIR" = "x"; then
ISF_ICONDIR=${datadir}/scim/icons
fi
if test "x$ISF_PKGDIR" = "x"; then
ISF_PKGDIR=${datadir}/packages
fi
if test "x$ISF_MODULEDIR" = "x"; then
ISF_MODULEDIR=${libdir}/scim-1.0
fi
if test "x$ISF_DATADIR" = "x"; then
ISF_DATADIR=${datadir}/scim
fi
if test "x$ISF_LIBDIR" = "x"; then
ISF_LIBDIR=${libdir}
fi
AC_SUBST(ISF_ICONDIR)
AC_SUBST(ISF_PKGDIR)
AC_SUBST(ISF_MODULEDIR)
AC_SUBST(ISF_DATADIR)
AC_SUBST(ISF_LIBDIR)
ISF_DEFAULT_DATADIR=${ISF_DATADIR}/ise-engine-default
AC_SUBST(ISF_DEFAULT_DATADIR)
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile])
AC_OUTPUT
|