1 # get rid of that stupid cache mechanism
4 AC_INIT([embryo], [0.9.9.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
14 AM_CONFIG_HEADER([config.h])
15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
18 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
19 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
22 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
23 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
24 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
25 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
26 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
27 AC_SUBST(version_info)
33 release_info="-release $release"
36 AC_SUBST(release_info)
40 ### Default options with respect to host
43 embryoincludedir="${datadir}/include"
46 ### Additional options to configure
49 ### Checks for programs
52 # doxygen program for documentation building
54 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
60 # Check whether pkg-config supports Requires.private
61 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
62 pkgconfig_requires_private="Requires.private"
64 pkgconfig_requires_private="Requires"
66 AC_SUBST(pkgconfig_requires_private)
69 ### Checks for libraries
71 # Evil library for compilation on Windows
76 PKG_CHECK_MODULES([EVIL], [evil])
77 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
78 requirement_embryo="evil ${requirement_embryo}"
79 EFL_EMBRYO_BUILD="-DEFL_EMBRYO_BUILD"
82 AC_SUBST(EFL_EMBRYO_BUILD)
85 ### Checks for header files
87 AC_CHECK_HEADER([fnmatch.h],
89 [AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file])])
95 ### Checks for structures
98 ### Checks for compiler characteristics
111 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
114 EMBRYO_CPPFLAGS="-D_WIN32_WCE=0x0420"
115 EMBRYO_CFLAGS="-mwin32"
118 AC_SUBST(EMBRYO_CPPFLAGS)
119 AC_SUBST(EMBRYO_CFLAGS)
122 ### Checks for linker characteristics
124 lt_enable_auto_import=""
127 lt_enable_auto_import="-Wl,--enable-auto-import"
130 AC_SUBST(lt_enable_auto_import)
133 ### Checks for library functions
138 AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC platform)])
141 AC_CHECK_FUNCS(gettimeofday)
146 AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"])
147 if test "x$res" = "xno"; then
148 AC_SEARCH_LIBS([fnmatch],
149 [fnmatch evil iberty],
152 if test "x$res" = "xno"; then
153 AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil])
155 fnmatch_libs="${ac_cv_search_fnmatch}"
157 AC_SUBST(fnmatch_libs)
160 AC_SUBST(requirement_embryo)
161 AC_SUBST(embryoincludedir)
177 #####################################################################
183 echo "------------------------------------------------------------------------"
184 echo "$PACKAGE $VERSION"
185 echo "------------------------------------------------------------------------"
187 echo "Configuration Options Summary:"
189 echo " Documentation........: ${build_doc}"
191 echo "Compilation............: make (or gmake)"
192 echo " CPPFLAGS.............: $CPPFLAGS"
193 echo " CFLAGS...............: $CFLAGS"
194 echo " LDFLAGS..............: $LDFLAGS"
196 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
197 echo " prefix...............: $prefix"