Initial version of libexynos-common
[platform/adaptation/ap_samsung/libexynos-common.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([libexynos],
3         [1.0.0],
4         [https://www.tizen.org],
5         [libexynos])
6
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_SRCDIR([Makefile.am])
9 AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
10 AM_MAINTAINER_MODE([enable])
11 i
12 # Check for programs
13 AM_PROG_AS
14 AC_PROG_CC
15 AC_PROG_CXX
16
17 AC_USE_SYSTEM_EXTENSIONS
18 AC_SYS_LARGEFILE
19 AC_FUNC_ALLOCA
20
21 #AC_CONFIG_MACRO_DIR([m4])
22
23 LT_PREREQ([2.2])
24 LT_INIT([disable-static])
25
26 # Enable quiet compiles on automake 1.11.
27 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
28
29 #PKG_CHECK_MODULES(TDM_EXYNOS, dlog)
30 #PKG_CHECK_MODULES(UDEV, libudev, [udev=yes], [udev=no])
31 #if test x"$udev" = xyes; then
32 #       AC_DEFINE(HAVE_UDEV,1,[Enable udev-based monitor hotplug detection])
33 #fi
34
35 #AC_SUBST(DLOG_LIBS)
36
37 # Initialize libtooldnl use dlog ------------------------------------------------------------------
38 AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]),
39         [
40           case "${enableval}" in
41            yes) USE_DLOG=yes ;;
42            no)  USE_DLOG=no ;;
43            *)   AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;;
44           esac
45         ],[USE_DLOG=no])
46
47 if test "x$USE_DLOG" = "xyes"; then
48         PKG_CHECK_MODULES(DLOG, dlog)
49         AC_SUBST(DLOG_CFLAGS)
50         AC_SUBST(DLOG_LIBS)
51 fi
52 AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes")
53 dnl end -----------------------------------------------------------------------
54
55 # set the dir for the tbm module
56 DEFAULT_MODULE_PATH="${libdir}"
57
58 # For enumerating devices in test case
59 AC_OUTPUT([
60         Makefile
61         libv4l2/Makefile
62         libswconverter/Makefile
63         libcsc/Makefile
64         libgscaler/Makefile
65         libion/Makefile])
66
67 echo ""
68 echo "$PACKAGE_STRING will be compiled with:"
69 echo ""
70 echo ""