You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.7 KiB
70 lines
1.7 KiB
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 |
|
])
|
|
|