efl/legacy/edje/configure.in

153 lines
3.4 KiB
Plaintext

dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(edje, 0.5.0.042, enlightenment-devel@lists.sourceforge.net)
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(configure.in)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_HEADER_STDC
AC_C_CONST
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
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);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
AC_SUBST(version_info)
AC_FUNC_ALLOCA
create_shared_lib=""
edje_decc_lib=""
case "$host_os" in
mingw|mingw32)
create_shared_lib="-no-undefined "
edje_decc_lib="-lole32 -luuid"
;;
esac
AC_SUBST(create_shared_lib)
AC_SUBST(edje_decc_lib)
AC_CHECK_FUNCS(realpath)
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 ], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_edje_cc="yes"
else
AC_MSG_RESULT(no)
have_edje_cc="no"
fi
], [
AC_MSG_RESULT($have_edje_cc)
]
)
PKG_CHECK_MODULES(EDJE, [
evas >= 0.9.9
ecore-evas >= 0.9.9
ecore-job >= 0.9.9
ecore-file >= 0.9.9
eet >= 0.9.10
embryo >= 0.9.1
])
AC_MSG_CHECKING([for location of Vim data files])
install_vim="yes";
AC_ARG_WITH(vim,
[ --with-vim=DIR Location of Vim data files [[autodetect]]],
[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])
else
AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
fi
AC_SUBST(vimdir)
EDJE_CC_PRG=""
EDJE_DECC_PRG=""
EDJE_RECC_PRG=""
EDJE_THUMB_PRG=""
if test "x$have_edje_cc" = "xyes"; then
AM_CONDITIONAL(BUILD_EDJE_CC, true)
AM_CONDITIONAL(BUILD_EDJE_DECC, true)
AM_CONDITIONAL(BUILD_EDJE_THUMB, 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)
AC_OUTPUT([
edje.pc
edje.spec
Makefile
data/Makefile
data/include/Makefile
src/Makefile
src/lib/Makefile
src/bin/Makefile
])
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo " Compilation..........: make"
echo
echo " Installation.........: make install"
echo
echo " prefix.............: $prefix"
echo