2003-06-02 16:49:56 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
# get rid of that stupid cache mechanism
|
|
|
|
rm -f config.cache
|
|
|
|
|
2008-05-18 17:07:12 -07:00
|
|
|
AC_INIT(edje, 0.9.9.043, enlightenment-devel@lists.sourceforge.net)
|
2007-10-09 13:54:50 -07:00
|
|
|
AC_PREREQ(2.52)
|
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
2004-02-16 23:13:12 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_ISC_POSIX
|
2007-10-07 01:02:53 -07:00
|
|
|
|
2007-10-09 13:54:50 -07:00
|
|
|
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
|
2003-06-02 16:49:56 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
2007-08-26 05:54:51 -07:00
|
|
|
AM_PROG_CC_C_O
|
2003-06-02 16:49:56 -07:00
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
2007-11-04 01:53:29 -08:00
|
|
|
|
2007-10-07 01:02:53 -07:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2007-11-07 14:03:45 -08:00
|
|
|
VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
|
|
|
|
VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
|
|
|
|
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
|
|
|
|
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
|
2007-10-07 01:02:53 -07:00
|
|
|
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
|
|
|
|
AC_SUBST(version_info)
|
|
|
|
|
2008-06-06 11:31:49 -07:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2004-04-01 16:16:21 -08:00
|
|
|
AC_FUNC_ALLOCA
|
2003-06-02 16:49:56 -07:00
|
|
|
|
2008-05-30 23:15:41 -07:00
|
|
|
WIN32_CFLAGS=""
|
|
|
|
lt_no_undefined=""
|
|
|
|
lt_enable_auto_import=""
|
2007-08-26 05:54:51 -07:00
|
|
|
case "$host_os" in
|
2008-05-30 23:15:41 -07:00
|
|
|
mingw*|cegcc)
|
2008-06-06 11:31:49 -07:00
|
|
|
PKG_CHECK_MODULES([EVIL], [evil])
|
|
|
|
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
|
|
|
|
AC_DEFINE(HAVE_REALPATH, 1, [Define to 1 if you have the `realpath' function.])
|
2008-05-30 23:15:41 -07:00
|
|
|
dnl needed for correct definition of EAPI
|
|
|
|
AC_DEFINE(EFL_EDJE_BUILD, 1, [Define to mention that embryo is built])
|
|
|
|
if test "x$host_os" = "xcegcc" ; then
|
|
|
|
WIN32_CFLAGS="-mwin32"
|
|
|
|
lt_enable_auto_import="-Wl,--enable-auto-import"
|
|
|
|
fi
|
|
|
|
lt_no_undefined="-no-undefined"
|
2008-06-06 11:31:49 -07:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_CHECK_FUNCS(realpath)
|
2007-08-26 05:54:51 -07:00
|
|
|
;;
|
|
|
|
esac
|
2008-05-30 23:15:41 -07:00
|
|
|
AC_SUBST(WIN32_CFLAGS)
|
|
|
|
AC_SUBST(lt_no_undefined)
|
|
|
|
AC_SUBST(lt_enable_auto_import)
|
2004-10-20 09:48:58 -07:00
|
|
|
|
2004-02-16 23:13:12 -08:00
|
|
|
AC_MSG_CHECKING(whether to build edje_cc)
|
|
|
|
have_edje_cc="yes"
|
|
|
|
AC_ARG_ENABLE(edje-cc, [ --disable-edje-cc disable building of edje_cc ], [
|
2005-10-12 16:15:17 -07:00
|
|
|
if test x"$enableval" = x"yes" ; then
|
2004-02-16 23:13:12 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_edje_cc="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
have_edje_cc="no"
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT($have_edje_cc)
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2007-03-21 08:36:26 -07:00
|
|
|
PKG_CHECK_MODULES(EDJE, [
|
|
|
|
evas >= 0.9.9
|
2008-06-07 03:06:14 -07:00
|
|
|
ecore >= 0.9.9
|
2007-03-21 09:20:06 -07:00
|
|
|
ecore-job >= 0.9.9
|
2008-05-18 17:07:12 -07:00
|
|
|
eet >= 1.0.1
|
2007-03-21 08:36:26 -07:00
|
|
|
embryo >= 0.9.1
|
|
|
|
])
|
2004-11-09 01:31:08 -08:00
|
|
|
|
2008-06-06 11:31:49 -07:00
|
|
|
PKG_CHECK_MODULES(ECORE_FILE, [
|
|
|
|
ecore-file >= 0.9.9
|
|
|
|
])
|
|
|
|
|
2008-06-07 01:03:52 -07:00
|
|
|
PKG_CHECK_MODULES(ECORE_EVAS, [
|
|
|
|
ecore-evas >= 0.9.9
|
|
|
|
])
|
|
|
|
|
2008-09-11 04:14:39 -07:00
|
|
|
dnl Optional EDJE_PROGRAM_CACHE (use much more ram, but increase speed in some case)
|
|
|
|
want_edje_program_cache="no"
|
|
|
|
AC_ARG_ENABLE(edje-program-cache,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-edje-program-cache],
|
|
|
|
[enable EDJE_PROGRAM_CACHE support. [[default=disabled]]]
|
|
|
|
),
|
|
|
|
[ want_edje_program_cache=$enableval ]
|
|
|
|
)
|
|
|
|
AM_CONDITIONAL(EDJE_PROGRAM_CACHE, test "x$want_edje_program_cache" = "xyes")
|
|
|
|
if test "x$want_edje_program_cache" = "xyes"; then
|
|
|
|
AC_DEFINE(EDJE_PROGRAM_CACHE, 1, [Cache result of program glob matches - this uses up extra ram with the gain of faster program matching])
|
|
|
|
fi
|
|
|
|
|
2004-03-06 09:20:04 -08:00
|
|
|
AC_MSG_CHECKING([for location of Vim data files])
|
2004-03-06 07:18:57 -08:00
|
|
|
install_vim="yes";
|
2004-03-06 09:20:04 -08:00
|
|
|
AC_ARG_WITH(vim,
|
2004-04-04 03:59:50 -07:00
|
|
|
[ --with-vim=DIR Location of Vim data files [[autodetect]]],
|
2004-03-06 09:20:04 -08:00
|
|
|
[if test -d "${withval}"; then
|
|
|
|
vimdir="${withval}"
|
|
|
|
fi])
|
|
|
|
|
|
|
|
if test "x${vimdir}" = "x" ; then
|
|
|
|
if test -d "${prefix}/share/vim"; then
|
|
|
|
vimdir="${prefix}/share/vim"
|
|
|
|
elif test -d "/usr/share/vim"; then
|
|
|
|
vimdir="/usr/share/vim"
|
|
|
|
elif test -d "/usr/local/share/vim"; then
|
|
|
|
vimdir="/usr/local/share/vim"
|
|
|
|
elif test -d "/opt/share/vim"; then
|
|
|
|
vimdir="/opt/share/vim"
|
|
|
|
else
|
|
|
|
install_vim="no"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "${install_vim}" = "yes"; then
|
|
|
|
AC_MSG_RESULT([$vimdir])
|
2004-03-06 07:18:57 -08:00
|
|
|
else
|
2004-03-06 09:20:04 -08:00
|
|
|
AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
|
2004-03-06 07:18:57 -08:00
|
|
|
fi
|
|
|
|
|
2005-09-03 11:52:10 -07:00
|
|
|
AC_SUBST(vimdir)
|
2004-11-09 01:31:08 -08:00
|
|
|
|
2004-10-20 23:33:22 -07:00
|
|
|
EDJE_CC_PRG=""
|
|
|
|
EDJE_DECC_PRG=""
|
2005-01-09 01:50:16 -08:00
|
|
|
EDJE_RECC_PRG=""
|
2004-10-20 23:33:22 -07:00
|
|
|
if test "x$have_edje_cc" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_EDJE_CC, true)
|
|
|
|
AM_CONDITIONAL(BUILD_EDJE_DECC, true)
|
|
|
|
EDJE_CC_PRG="edje_cc"
|
|
|
|
EDJE_DECC_PRG="edje_decc"
|
|
|
|
EDJE_RECC_PRG="edje_recc"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_EDJE_CC, false)
|
|
|
|
AM_CONDITIONAL(BUILD_EDJE_DECC, false)
|
|
|
|
fi
|
|
|
|
AC_SUBST(EDJE_CC_PRG)
|
|
|
|
AC_SUBST(EDJE_DECC_PRG)
|
|
|
|
AC_SUBST(EDJE_RECC_PRG)
|
2004-11-09 01:31:08 -08:00
|
|
|
|
2003-06-02 16:49:56 -07:00
|
|
|
AC_OUTPUT([
|
2004-07-30 11:18:50 -07:00
|
|
|
edje.pc
|
2005-10-24 20:45:52 -07:00
|
|
|
edje.spec
|
2003-06-02 16:49:56 -07:00
|
|
|
Makefile
|
2004-05-12 13:14:18 -07:00
|
|
|
data/Makefile
|
|
|
|
data/include/Makefile
|
2003-06-02 16:49:56 -07:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
])
|
2007-11-04 01:53:29 -08:00
|
|
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
2008-09-11 04:14:39 -07:00
|
|
|
echo " EDJE_PROGRAM_CACHE...: $want_edje_program_cache"
|
|
|
|
echo
|
2008-06-06 11:31:49 -07:00
|
|
|
echo " Build binaries.......: $have_edje_cc"
|
|
|
|
echo
|
2007-11-04 01:53:29 -08:00
|
|
|
echo " Compilation..........: make"
|
|
|
|
echo
|
|
|
|
echo " Installation.........: make install"
|
|
|
|
echo
|
|
|
|
echo " prefix.............: $prefix"
|
|
|
|
echo
|