aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/eina/m4/efl_benchmark.m4
blob: 1d1e22ec32b0bfaa06c0e7d8d2e14c2a6fd6eb95 (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
dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
dnl That code is public domain and can be freely used or copied.

dnl Macro that check if benchmark support is wanted.

dnl Usage: EFL_CHECK_BENCHMARK([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Defines the automake conditionnal EFL_ENABLE_BENCHMARK

AC_DEFUN([EFL_CHECK_BENCHMARK],
[

dnl configure option

AC_ARG_ENABLE([benchmark],
   [AC_HELP_STRING([--enable-benchmark], [enable benchmarking @<:@default=disabled@:>@])],
   [
    if test "x${enableval}" = "xyes" ; then
       _efl_enable_benchmark="yes"
    else
       _efl_enable_benchmark="no"
    fi
   ],
   [_efl_enable_benchmark="no"])

AC_MSG_CHECKING([whether benchmark are built])
AC_MSG_RESULT([${_efl_enable_benchmark}])

AM_CONDITIONAL(EFL_ENABLE_BENCHMARK, test "x${_efl_enable_benchmark}" = "xyes")

AS_IF([test "x$_efl_enable_benchmark" = "xyes"], [$1], [$2])
])

dnl End of efl_benchmark.m4