2008-02-27 13:01:30 -08:00
|
|
|
|
2008-10-05 08:53:22 -07:00
|
|
|
AC_INIT([evil], [0.0.1], [enlightenment-devel@lists.sourceforge.net])
|
|
|
|
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])
|
2008-02-27 13:01:30 -08:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
2008-10-05 08:53:22 -07:00
|
|
|
dnl If the host is not Windows, we exit
|
2008-02-27 13:01:30 -08:00
|
|
|
case "$host_os" in
|
2008-10-05 08:53:22 -07:00
|
|
|
mingw* | cegcc*)
|
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
|
|
|
|
2008-02-27 13:01:30 -08:00
|
|
|
AM_INIT_AUTOMAKE(1.6 dist-bzip2)
|
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
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)
|
|
|
|
|
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
|
|
|
|
mingw | mingw32 | mingw32msvc)
|
2008-10-28 01:59:12 -07:00
|
|
|
win32_libs="-lole32 -lws2_32 -lsecur32"
|
2008-10-05 08:53:22 -07:00
|
|
|
;;
|
2008-10-09 14:56:31 -07:00
|
|
|
cegcc*)
|
2008-10-05 08:53:22 -07:00
|
|
|
win32_libs="-lws2"
|
|
|
|
;;
|
2008-10-09 14:56:31 -07:00
|
|
|
mingw32ce*)
|
2008-10-05 08:53:22 -07:00
|
|
|
win32_libs="-lws2"
|
|
|
|
;;
|
|
|
|
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"
|
2008-10-05 08:53:22 -07:00
|
|
|
win32_cflags=""
|
2008-10-09 14:56:31 -07:00
|
|
|
have_wince="no"
|
|
|
|
have_mingw32ce="no"
|
2008-10-05 08:53:22 -07:00
|
|
|
case "$host_os" in
|
2008-10-09 14:56:31 -07:00
|
|
|
cegcc*)
|
2008-10-05 08:53:22 -07:00
|
|
|
have_wince="yes"
|
|
|
|
win32_cflags="-mwin32"
|
2008-10-29 01:04:52 -07:00
|
|
|
win32_cppflags="${win32_cppflags} -D_WIN32_WCE=0x0420"
|
2008-10-05 08:53:22 -07:00
|
|
|
;;
|
2008-10-09 14:56:31 -07:00
|
|
|
mingw32ce*)
|
2008-10-05 08:53:22 -07:00
|
|
|
have_wince="yes"
|
2008-10-09 14:56:31 -07:00
|
|
|
have_mingw32ce="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"
|
2008-10-22 14:36:55 -07:00
|
|
|
win32_cppflags="${win32_cppflags} -D_WIN32_WINNT=0x0500"
|
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)
|
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")
|
2008-10-11 07:35:26 -07:00
|
|
|
AM_CONDITIONAL(EVIL_HAVE_MINGW32CE, test "x${have_mingw32ce}" = "xyes")
|
2008-10-05 08:53:22 -07:00
|
|
|
|
|
|
|
|
|
|
|
### 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 "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME"
|
|
|
|
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
|
2008-02-27 13:01:30 -08:00
|
|
|
echo " Compilation..........: make"
|
|
|
|
echo
|
|
|
|
echo " Installation.........: make install"
|
|
|
|
echo
|
|
|
|
echo " prefix.............: $prefix"
|
|
|
|
echo
|