2008-02-27 13:01:30 -08:00
|
|
|
|
2010-04-01 13:13:40 -07:00
|
|
|
### Version
|
|
|
|
|
2010-12-16 07:54:49 -08:00
|
|
|
m4_define([v_maj], [0])
|
|
|
|
m4_define([v_min], [0])
|
|
|
|
m4_define([v_mic], [1])
|
2010-04-01 13:13:40 -07:00
|
|
|
|
|
|
|
m4_define([evil_version],
|
2010-12-16 07:54:49 -08:00
|
|
|
[v_maj.v_min.v_mic])
|
2010-04-01 13:13:40 -07:00
|
|
|
|
2010-12-16 07:54:49 -08:00
|
|
|
m4_define([lt_rev], m4_eval(v_maj + v_min))
|
|
|
|
m4_define([lt_cur], v_mic)
|
|
|
|
m4_define([lt_age], v_min)
|
2010-04-01 13:13:40 -07:00
|
|
|
|
|
|
|
AC_INIT([evil], [evil_version], [enlightenment-devel@lists.sourceforge.net])
|
2008-10-05 08:53:22 -07:00
|
|
|
AC_PREREQ([2.52])
|
2008-02-27 13:01:30 -08:00
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
2008-10-09 14:56:31 -07:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-01-06 11:03:41 -08:00
|
|
|
|
2008-02-27 13:01:30 -08:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2011-01-06 10:06:00 -08:00
|
|
|
AH_TOP([
|
|
|
|
#ifndef EFL_CONFIG_H__
|
|
|
|
#define EFL_CONFIG_H__
|
|
|
|
])
|
|
|
|
AH_BOTTOM([
|
|
|
|
#endif /* EFL_CONFIG_H__ */
|
|
|
|
])
|
|
|
|
|
2008-02-27 13:01:30 -08:00
|
|
|
|
2010-04-01 13:13:40 -07:00
|
|
|
### If the host is not Windows, or is ceGCC, we exit
|
2011-01-06 10:06:00 -08:00
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
2008-02-27 13:01:30 -08:00
|
|
|
case "$host_os" in
|
2010-02-27 23:57:03 -08:00
|
|
|
cegcc*)
|
|
|
|
AC_MSG_ERROR([ceGCC compiler is not supported anymore. Exiting...])
|
|
|
|
;;
|
|
|
|
mingw*)
|
2008-02-27 13:01:30 -08:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([OS must be Windows. Exiting...])
|
|
|
|
;;
|
|
|
|
esac
|
2008-03-05 01:19:38 -08:00
|
|
|
|
2009-10-06 09:58:21 -07:00
|
|
|
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
2008-02-27 13:01:30 -08:00
|
|
|
|
2010-04-01 13:13:40 -07:00
|
|
|
LT_INIT([win32-dll])
|
2008-02-27 13:01:30 -08:00
|
|
|
|
2010-04-01 13:13:40 -07:00
|
|
|
version_info="lt_rev:lt_cur:lt_age"
|
2008-02-27 13:01:30 -08:00
|
|
|
AC_SUBST(version_info)
|
|
|
|
|
2008-10-05 08:53:22 -07:00
|
|
|
|
2008-11-01 02:50:01 -07:00
|
|
|
### Checks for programs
|
|
|
|
AM_PROG_AS
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_LANG(C)
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
# doxygen program for documentation building
|
|
|
|
|
|
|
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
|
|
|
|
|
|
|
|
2008-10-05 08:53:22 -07:00
|
|
|
### Checks for libraries
|
|
|
|
|
|
|
|
win32_libs=""
|
|
|
|
case "$host_os" in
|
2008-10-09 14:56:31 -07:00
|
|
|
mingw32ce*)
|
2008-10-05 08:53:22 -07:00
|
|
|
win32_libs="-lws2"
|
|
|
|
;;
|
2010-02-27 23:57:03 -08:00
|
|
|
*)
|
|
|
|
win32_libs="-lole32 -lws2_32 -lsecur32"
|
|
|
|
;;
|
2008-10-05 08:53:22 -07:00
|
|
|
esac
|
|
|
|
AC_SUBST(win32_libs)
|
|
|
|
|
|
|
|
EFL_CHECK_MPATROL([have_mpatrol="yes"], [have_mpatrol="no"])
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for header files
|
2008-10-29 04:07:43 -07:00
|
|
|
AC_CHECK_HEADERS([errno.h])
|
2008-10-05 08:53:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
### Checks for types
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for structures
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for compiler characteristics
|
2008-02-27 13:01:30 -08:00
|
|
|
AC_C_CONST
|
2008-10-05 08:53:22 -07:00
|
|
|
AC_C___ATTRIBUTE__
|
|
|
|
|
2008-10-22 14:36:55 -07:00
|
|
|
win32_cppflags="-DEFL_EVIL_BUILD"
|
2010-08-22 23:53:43 -07:00
|
|
|
win32_cflags="-Wall -Wextra -Wshadow -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
|
2009-04-18 11:32:58 -07:00
|
|
|
win32_cxxflags=""
|
2008-10-09 14:56:31 -07:00
|
|
|
have_wince="no"
|
2008-10-05 08:53:22 -07:00
|
|
|
case "$host_os" in
|
2008-10-09 14:56:31 -07:00
|
|
|
mingw32ce*)
|
2008-10-05 08:53:22 -07:00
|
|
|
have_wince="yes"
|
2008-10-22 14:36:55 -07:00
|
|
|
win32_cppflags="${win32_cppflags} -D_WIN32_WCE=0x0420"
|
2008-10-05 08:53:22 -07:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
have_wince="no"
|
2009-04-18 11:32:58 -07:00
|
|
|
win32_cxxflags="-fno-rtti -fno-exceptions"
|
2009-09-30 10:05:49 -07:00
|
|
|
win32_cppflags="${win32_cppflags} -D_WIN32_WINNT=0x0501 -DSECURITY_WIN32"
|
2008-10-05 08:53:22 -07:00
|
|
|
;;
|
|
|
|
esac
|
2008-10-22 14:36:55 -07:00
|
|
|
AC_SUBST(win32_cppflags)
|
2008-10-05 08:53:22 -07:00
|
|
|
AC_SUBST(win32_cflags)
|
2009-04-18 11:32:58 -07:00
|
|
|
AC_SUBST(win32_cxxflags)
|
2008-02-27 13:01:30 -08:00
|
|
|
|
2008-10-05 08:53:22 -07:00
|
|
|
AM_CONDITIONAL(EVIL_HAVE_WINCE, test "x${have_wince}" = "xyes")
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for linker characteristics
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for library functions
|
2008-02-27 13:01:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
evil.pc
|
2008-10-05 08:53:22 -07:00
|
|
|
doc/Makefile
|
2008-02-27 13:01:30 -08:00
|
|
|
src/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/lib/dlfcn/Makefile
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
2010-04-01 13:13:40 -07:00
|
|
|
echo "$PACKAGE_NAME $PACKAGE_VERSION"
|
2008-02-27 13:01:30 -08:00
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
|
|
|
echo " OS...................: ${host_os}"
|
|
|
|
echo
|
2008-10-05 08:53:22 -07:00
|
|
|
echo " Documentation........: ${build_doc}"
|
|
|
|
echo " Mpatrol..............: ${have_mpatrol}"
|
|
|
|
echo
|
2009-12-11 03:05:58 -08:00
|
|
|
echo "Compilation............: make (or gmake)"
|
|
|
|
echo " CPPFLAGS.............: $CPPFLAGS"
|
|
|
|
echo " CFLAGS...............: $CFLAGS"
|
|
|
|
echo " CXXFLAGS.............: $CXXFLAGS"
|
|
|
|
echo " LDFLAGS..............: $LDFLAGS"
|
2008-02-27 13:01:30 -08:00
|
|
|
echo
|
2009-12-11 03:05:58 -08:00
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
|
|
|
|
echo " prefix...............: $prefix"
|
2008-02-27 13:01:30 -08:00
|
|
|
echo
|