forked from enlightenment/expedite
147 lines
2.6 KiB
Plaintext
147 lines
2.6 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([expedite], [1.11.99], [enlightenment-devel@lists.sourceforge.net])
|
|
AC_PREREQ([2.52])
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CANONICAL_BUILD
|
|
AC_CANONICAL_HOST
|
|
|
|
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
|
### Checks for programs
|
|
|
|
AC_ISC_POSIX
|
|
m4_ifdef([AC_PROG_OBJC],
|
|
[
|
|
AC_PROG_OBJC
|
|
_AM_DEPENDENCIES(OBJC)
|
|
],
|
|
[
|
|
AC_CHECK_TOOL([OBJC], [gcc])
|
|
AC_SUBST([OBJC])
|
|
AC_SUBST([OBJCFLAGS])
|
|
]
|
|
)
|
|
AC_PROG_CXX
|
|
AC_PROG_CC
|
|
|
|
LT_PROG_RC
|
|
|
|
|
|
|
|
### Checks for libraries
|
|
|
|
# Evil library for compilation on Windows
|
|
|
|
case "$host_os" in
|
|
mingw32*)
|
|
PKG_CHECK_MODULES([EVIL], [evil >= 1.7.99])
|
|
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
|
|
;;
|
|
esac
|
|
|
|
# EFL dependencies
|
|
efl_version="1.20.0"
|
|
requirement_expedite=" \
|
|
eo >= ${efl_version} \
|
|
efl >= ${efl_version} \
|
|
eina >= ${efl_version} \
|
|
evas >= ${efl_version} \
|
|
eet >= ${efl_version} \
|
|
ecore-evas >= ${efl_version} \
|
|
ecore >= ${efl_version}"
|
|
|
|
AC_SUBST(requirement_expedite)
|
|
|
|
PKG_CHECK_MODULES([EFL], [${requirement_expedite}])
|
|
|
|
EFL_ENABLE_EO_API_SUPPORT
|
|
EFL_ENABLE_BETA_API_SUPPORT
|
|
|
|
|
|
### Checks for header files
|
|
|
|
|
|
### Checks for types
|
|
|
|
|
|
### Checks for structures
|
|
|
|
|
|
### Checks for compiler characteristics
|
|
|
|
AC_HEADER_STDC
|
|
AC_C_CONST
|
|
AC_PROG_CC_C99
|
|
AM_PROG_CC_C_O
|
|
AC_C___ATTRIBUTE__
|
|
|
|
if test "x${ac_cv_prog_cc_c99}" = "xno" ; then
|
|
AC_MSG_ERROR([expedite requires a c99-capable compiler])
|
|
fi
|
|
|
|
WIN32_CFLAGS=""
|
|
case "$host_os" in
|
|
cegcc*)
|
|
WIN32_CFLAGS="-mwin32"
|
|
;;
|
|
esac
|
|
AC_SUBST(WIN32_CFLAGS)
|
|
|
|
EXPEDITE_CXXFLAGS=""
|
|
AC_LANG_PUSH([C++])
|
|
CXXFLAGS_save="${CXXFLAGS}"
|
|
CXXFLAGS="${CXXFLAGS} -fno-rtti -fno-exceptions"
|
|
AC_LINK_IFELSE(
|
|
[AC_LANG_PROGRAM([[]])],
|
|
[have_cxx_flags="yes"],
|
|
[have_cxx_flags="no"])
|
|
AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions])
|
|
AC_MSG_RESULT([${have_cxx_flags}])
|
|
CXXFLAGS="${CXXFLAGS_save}"
|
|
if test "x${have_cxx_flags}" = "xyes" ; then
|
|
EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions"
|
|
fi
|
|
AC_LANG_POP([C++])
|
|
AC_SUBST(EXPEDITE_CXXFLAGS)
|
|
|
|
|
|
### Checks for linker characteristics
|
|
|
|
lt_enable_auto_import=""
|
|
case "$host_os" in
|
|
mingw* | cegcc*)
|
|
lt_enable_auto_import="-Wl,--enable-auto-import"
|
|
;;
|
|
esac
|
|
AC_SUBST(lt_enable_auto_import)
|
|
|
|
|
|
### Checks for library functions
|
|
|
|
AC_CHECK_FUNCS([sync])
|
|
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
expedite.spec
|
|
src/Makefile
|
|
src/bin/Makefile
|
|
data/Makefile
|
|
])
|
|
|
|
echo
|
|
echo " $PACKAGE $VERSION"
|
|
echo
|
|
echo " Installation:"
|
|
echo " prefix.......................: ${prefix}"
|
|
echo
|