[dali_1.2.40] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / build / configure.ac
1 # Copyright (c) 2017 Samsung Electronics Co., Ltd.
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6
7 # http://www.apache.org/licenses/LICENSE-2.0
8
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # Process this file with autoconf to produce a configure script.
16 AC_INIT([Dali-SHARP], [0.1.1],
17         [Dali-SHARP])
18 AC_PREREQ(2.50)
19 AC_CONFIG_AUX_DIR([config])
20 AM_INIT_AUTOMAKE([-Wall foreign])
21
22 # check target
23 AC_MSG_CHECKING([system])
24 target=`uname`
25 AC_MSG_RESULT([$target])
26
27 # check compiler
28 AC_LANG([C++])
29
30 # check for Dali libraries
31 PKG_CHECK_MODULES(DALICORE, dali-core)
32 PKG_CHECK_MODULES(DALIADAPTOR, dali-adaptor)
33 PKG_CHECK_MODULES(DALITOOLKIT, dali-toolkit)
34
35 AC_PATH_PROGS([MCS], [gmcs mcs gmcs2])
36 AM_CONDITIONAL(HAVE_MCS, test "x${MCS}" != "x")
37
38 AC_ARG_ENABLE([csharp],
39               AC_HELP_STRING([--disable-csharp],
40                              [If disabled, the C# module
41                               will not be built]),
42               [build_mcs=$enableval],
43               [build_mcs=yes])
44 AM_CONDITIONAL(BUILD_MCS, test "$build_mcs" != "no")
45
46 # done, output the configured files
47 AC_CONFIG_FILES([Makefile])
48 AC_OUTPUT
49