1 dnl Process this file with autoconf to produce a configure script.
3 # get rid of that stupid cache mechanism
6 AC_INIT(edje, 0.9.92.060, enlightenment-devel@lists.sourceforge.net)
8 AC_CONFIG_SRCDIR([configure.ac])
9 AC_CONFIG_MACRO_DIR([m4])
14 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
15 AM_CONFIG_HEADER(config.h)
18 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
19 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
22 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
23 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
24 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
25 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
26 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
27 release="ver-pre-svn-01"
28 release_info="-release $release"
29 AC_SUBST(version_info)
30 AC_SUBST(release_info)
33 ### Default options with respect to host
46 want_edje_program_cache="no"
51 ### Additional options to configure
53 AC_ARG_ENABLE([edje-cc],
54 [AC_HELP_STRING([--disable-edje-cc], [disable building of edje_cc])],
56 if test "x${enableval}" = "xyes" ; then
63 AC_MSG_CHECKING(whether to build edje_cc)
64 AC_MSG_RESULT([${have_edje_cc}])
66 AM_CONDITIONAL(BUILD_EDJE_CC, test "x${have_edje_cc}" = "xyes")
67 AM_CONDITIONAL(BUILD_EDJE_DECC, test "x${have_edje_cc}" = "xyes")
72 if test "x${have_edje_cc}" = "xyes"; then
74 EDJE_DECC_PRG="edje_decc"
75 EDJE_RECC_PRG="edje_recc"
78 AC_SUBST(EDJE_DECC_PRG)
79 AC_SUBST(EDJE_RECC_PRG)
81 # Optional EDJE_PROGRAM_CACHE (use much more ram, but increase speed in some cases)
82 AC_ARG_ENABLE([edje-program-cache],
84 [--enable-edje-program-cache],
85 [enable EDJE_PROGRAM_CACHE support. [[default=disabled]]]
87 [want_edje_program_cache=$enableval]
89 AM_CONDITIONAL(EDJE_PROGRAM_CACHE, test "x${want_edje_program_cache}" = "xyes")
91 if test "x${want_edje_program_cache}" = "xyes" ; then
92 AC_DEFINE(EDJE_PROGRAM_CACHE, 1, [Cache result of program glob matches - this uses up extra ram with the gain of faster program matching])
97 [AC_HELP_STRING([--with-vim=DIR], [Location of Vim data files [[autodetect]]])],
99 if test -d "${withval}"; then
105 if test "x${vimdir}" = "x" ; then
106 if test -d "${prefix}/share/vim"; then
107 vimdir="${prefix}/share/vim"
108 elif test -d "/usr/share/vim"; then
109 vimdir="/usr/share/vim"
110 elif test -d "/usr/local/share/vim"; then
111 vimdir="/usr/local/share/vim"
112 elif test -d "/opt/share/vim"; then
113 vimdir="/opt/share/vim"
119 AC_MSG_CHECKING([for location of Vim data files])
121 if test "${install_vim}" = "yes"; then
122 AC_MSG_RESULT([$vimdir])
124 AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
129 ### Checks for programs
132 # doxygen program for documentation building
134 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
138 AM_PATH_PYTHON([2.5], , [:])
139 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != : ])
142 ### Checks for libraries
146 # Evil library for compilation on Windows
151 PKG_CHECK_MODULES([EVIL], [evil])
152 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
153 requirement_edje="evil ${requirement_edje}"
154 EFL_EDJE_BUILD="-DEFL_EDJE_BUILD"
157 AC_SUBST(EFL_EDJE_BUILD)
159 # Dependencies for the library
161 PKG_CHECK_MODULES([EDJE],
172 requirement_edje="embryo ecore-job ecore evas eet eina-0 ${requirement_edje}"
174 # Dependencies for the binaries
176 if test "x$have_edje_cc" = "xyes"; then
177 PKG_CHECK_MODULES([ECORE_FILE], [ecore-file >= 0.9.9])
178 PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas >= 0.9.9])
182 ### Checks for header files
183 AC_CHECK_HEADERS([locale.h])
189 ### Checks for structures
192 ### Checks for compiler characteristics
201 EDJE_CFLAGS="${EDJE_CFLAGS} -D_WIN32_WCE=0x0420"
204 EDJE_CFLAGS="${EDJE_CFLAGS} -mwin32 -D_WIN32_WCE=0x0420"
209 ### Checks for linker characteristics
211 lt_enable_auto_import=""
214 lt_enable_auto_import="-Wl,--enable-auto-import"
217 AC_SUBST(lt_enable_auto_import)
220 ### Checks for library functions
225 AC_DEFINE(HAVE_REALPATH, 1, [Define to 1 if you have the `realpath' function.])
228 AC_CHECK_FUNCS([realpath])
233 AC_SUBST(requirement_edje)
240 data/include/Makefile
250 #####################################################################
256 echo "------------------------------------------------------------------------"
257 echo "$PACKAGE $VERSION"
258 echo "------------------------------------------------------------------------"
260 echo "Configuration Options Summary:"
262 echo " EDJE_PROGRAM_CACHE...: $want_edje_program_cache"
264 echo " Build binaries.......: $have_edje_cc"
266 echo " Documentation........: ${enable_doc}"
268 echo " Compilation..........: make"
270 echo " Installation.........: make install"
272 echo " prefix.............: $prefix"