summaryrefslogtreecommitdiff
path: root/configure.ac
blob: cc4549d104e6dfc552765e3a8acb13eb75abafb8 (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
dnl Process this file with autoconf to produce a configure script.

AC_INIT([exactness], [0.1.0], [enlightenment-devel@lists.sourceforge.net])
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_USE_SYSTEM_EXTENSIONS

AC_CANONICAL_HOST
case "$host_os" in
   mingw*)
      have_win32="yes"
   ;;
esac

AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AC_PROG_CC
AM_PROG_CC_C_O
AC_C_BIGENDIAN

EFL_ENABLE_BETA_API_SUPPORT

PKG_PROG_PKG_CONFIG
LT_INIT([win32-dll])

dnl Checking for __attribute__ support
AC_MSG_CHECKING([for __attribute__])
AC_CACHE_VAL([_cv_have___attribute__],
  [
    AC_TRY_COMPILE([#include <stdlib.h>],
      [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
      [_cv_have___attribute__="yes"],
      [_cv_have___attribute__="no"])
  ])

if test "x${_cv_have___attribute__}" = "xyes" ; then
  AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
fi
AC_MSG_RESULT([${_cv_have___attribute__}])

requirements_pc="elementary >= 1.14.0 emile >= 1.14.0 ecore-evas >= 1.14.0 evas >= 1.14.0 ecore-con >= 1.14.0 ecore-file >= 1.14.0 ecore >= 1.14.0 eet >= 1.14.0 eo >= 1.14.0 eina >= 1.14.0"
if test "x${have_win32}" = "xyes" ; then
   requirements_pc="${requirements_pc} evil"
fi

PKG_CHECK_MODULES([EFL],
  [${requirements_pc}],
  [ac_elm_themes_dir=`$PKG_CONFIG --variable=themes elementary`]
  )

if test "x$ac_elm_themes_dir" = x ; then
  AC_MSG_ERROR([couldn't find Elementary themes path])
fi

AC_CHECK_HEADERS([sys/sysinfo.h])

AC_SUBST([requirements_pc])

AC_SUBST(ELM_THEMES_DIR, $ac_elm_themes_dir)

AC_OUTPUT([
Makefile
src/Makefile
src/bin/Makefile
src/lib/Makefile
exactness.pc
])