aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
blob: ca2a6455a8ebecf3103739c50bec85ea355597d2 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
dnl Process this file with autoconf to produce a configure script.

# get rid of that stupid cache mechanism
rm -f config.cache

AC_INIT(configure.in)
AC_ISC_POSIX
AM_INIT_AUTOMAKE(ensorcel, 0.0.1)
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C___ATTRIBUTE__

AC_ARG_WITH(etk-config,
[  --with-etk-config=ETK_CONFIG  use etk-config specified ],
[
  ETK_CONFIG=$withval;
  echo "using "$ETK_CONFIG" for etk-config";
],[
  PROG="etk-config";
  AC_PATH_PROG(ETK_CONFIG, $PROG, "", $PATH)
])
etk_cflags=`$ETK_CONFIG --cflags`
etk_libs=`$ETK_CONFIG --libs`
AC_SUBST(etk_cflags)
AC_SUBST(etk_libs)

# For test programs (Need to be evolv Puppet_Master !!, Maybe you don't need that)
AC_ARG_WITH(ecore-config,
[  --with-ecore-config=ECORE_CONFIG  use ecore-config specified ],
[
  ECORE_CONFIG=$withval;
  echo "using "$ECORE_CONFIG" for ecore-config";
],[
  PROG="ecore-config";
  AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
])
ecore_cflags=`$ECORE_CONFIG --cflags`
ecore_libs=`$ECORE_CONFIG --libs`
AC_SUBST(ecore_cflags)
AC_SUBST(ecore_libs)

# For test programs (Need to be evolv Puppet_Master !!, Maybe you don't need that)
AC_ARG_WITH(evas-config,
[  --with-evas-config=EVAS_CONFIG  use evas-config specified ],
[
  EVAS_CONFIG=$withval;
  echo "using "$EVAS_CONFIG" for evas-config";
],[
  PROG="evas-config";
  AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
])
evas_cflags=`$EVAS_CONFIG --cflags`
evas_libs=`$EVAS_CONFIG --libs`
AC_SUBST(evas_cflags)
AC_SUBST(evas_libs)

# Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found.
have_valgrind="no"
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
AC_ARG_ENABLE(valgrind,
  [  --enable-valgrind               enable valgrind support], [
      if test x"$enableval" = x"yes" ; then
        AC_MSG_RESULT(yes)
        have_valgrind="yes"
      else
        AC_MSG_RESULT(no)
        have_valgrind="no"
        VALGRIND_CFLAGS=""
        VALGRIND_LIBS=""
      fi
  ], [
    have_valgrind=$have_valgrind
  ]
)

if test x$have_valgrind = "xyes"; then
  AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
fi

AC_OUTPUT([
Makefile
src/Makefile])