Hello,
I tried to compile evas two hours ago without success. The problems were:
1) automake complains about AC_PROC_CXX
2) AC_CHECK_HEADER could not find Eet.h and Edb.h
So here is a patch for that:
1) i move AC_PROG_CXX at the beginning of the configure.in
2) I use PKG_CHECK_MODULES instead of AC_CHECK_HEADER. I have heard that
Raster does not like pkg-config. But as eet.pc ans edb.pc exist and evas
compiles flawlessly this way, maybe it is worth using them ;)
I've also added prerequisite versions of edb ans eet at the beginning of
configure.in (so that they could easily be changed), and i display the
path where evas will be installed (i like this info :))
I would also like to mention that i have installed directfb 0.9.20 and it
seems that directfb.h could not be found (files
src/lib/Evas_Engine_DirectFB.h, src/bin/evas_directfb_main.c and
src/bin/evas_directfb_window.c). I replaced #include <directfb/directfb.h>
by #include <directfb.h>. Then it compiles. Does someone also have this
error ?
Here is the patch for configure.in. Feel free to use it (or not use it
;))
regards
Vincent TORRI
--- configure.in.old 2004-03-08 03:42:08.000000000 +0100
+++ configure.in.new 2004-03-19 00:26:57.000000000 +0100
@@ -13,12 +13,17 @@
AC_C_BIGENDIAN
AC_PROG_CC
+AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
+dnl Prerequisite
+EET_REQ="0.9.0"
+EDB_REQ="1.0.4"
+
dnl Add the languages which your application supports here.
if test "x${exec_prefix}" = "xNONE"; then
@@ -315,7 +320,6 @@
]
)
if test "x$have_evas_qtopia" = "xyes"; then
- AC_PROG_CXX
AC_CHECK_HEADER(qdirectpainter_qws.h,
[
AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, test "$enableval" =
"yes")
@@ -473,11 +477,11 @@
#######################################
## EET
-have_eet="no";
-AC_CHECK_HEADER(Eet.h,
- [ have_eet="yes" ],
- [ have_eet="no" ]
-)
+
+PKG_CHECK_MODULES(EET, eet >= $EET_REQ, have_eet=yes,have_eet=no)
+eet_cflags=$EET_CFLAGS
+eet_libs=$EET_LIBS
+
AC_MSG_CHECKING(whether to enable eet image loader)
AC_ARG_ENABLE(image-loader-eet,
[ --enable-image-loader-eet enable EET image loader], [
@@ -492,26 +496,14 @@
AC_MSG_RESULT($have_eet)
]
)
-if test "x$have_eet" = "xyes"; then
- AC_CHECK_HEADER(Eet.h,
- [ have_eet="yes" ],
- [ have_eet="no" ]
- )
-fi
-if test "x$have_eet" = "xyes"; then
- AC_DEFINE(BUILD_LOADER_EET, 1, [EET Image Loader Support])
- if [ test -z "$EET_CONFIG" ]; then EET_CONFIG="eet-config"; fi
- eet_cflags=`$EET_CONFIG --cflags`
- eet_libs=`$EET_CONFIG --libs`
-fi
#######################################
## EDB
-have_edb="no";
-AC_CHECK_HEADER(Edb.h,
- [ have_edb="yes" ],
- [ have_edb="no" ]
-)
+
+PKG_CHECK_MODULES(EDB, edb >= $EDB_REQ, have_edb=yes,have_edb=no)
+edb_cflags=$EDB_CFLAGS
+edb_libs=$EDB_LIBS
+
AC_MSG_CHECKING(whether to enable edb image loader)
AC_ARG_ENABLE(image-loader-edb,
[ --enable-image-loader-edb enable EDB image loader], [
@@ -526,26 +518,14 @@
AC_MSG_RESULT($have_edb)
]
)
-if test "x$have_edb" = "xyes"; then
- AC_CHECK_HEADER(Edb.h,
- [ have_edb="yes" ],
- [ have_edb="no" ]
- )
-fi
-if test "x$have_edb" = "xyes"; then
- AC_DEFINE(BUILD_LOADER_EDB, 1, [EDB Image Loader Support])
- if [ test -z "$EDB_CONFIG" ]; then EDB_CONFIG="edb-config"; fi
- edb_cflags=`$EDB_CONFIG --cflags`
- edb_libs=`$EDB_CONFIG --libs`
-fi
#######################################
## EET
-have_eet_fonts="no";
-AC_CHECK_HEADER(Eet.h,
- [ have_eet_fonts="yes" ],
- [ have_eet_fonts="no" ]
-)
+
+PKG_CHECK_MODULES(EET, eet >= $EET_REQ,
have_eet_fonts=yes,have_eet_fonts=no)
+eet_cflags=$EET_CFLAGS
+eet_libs=$EET_LIBS
+
AC_MSG_CHECKING(whether to enable eet font loader)
AC_ARG_ENABLE(font-loader-eet,
[ --enable-font-loader-eet enable EET font loader], [
@@ -560,18 +540,6 @@
AC_MSG_RESULT($have_eet_fonts)
]
)
-if test "x$have_eet_fonts" = "xyes"; then
- AC_CHECK_HEADER(Eet.h,
- [ have_eet_fonts="yes" ],
- [ have_eet_fonts="no" ]
- )
-fi
-if test "x$have_eet_fonts" = "xyes"; then
- AC_DEFINE(BUILD_FONT_LOADER_EET, 1, [EET Font Loader Support])
- if [ test -z "$EET_CONFIG" ]; then EET_CONFIG="eet-config"; fi
- eet_cflags=`$EET_CONFIG --cflags`
- eet_libs=`$EET_CONFIG --libs`
-fi
#####################################################################
## Cpu based optimizations
@@ -1504,3 +1472,5 @@
echo "and then afterwards as root (or the user who will install this),
type"
echo "'make install'. Change users with 'su' or 'sudo' appropriately."
echo
+echo "Installation prefix.......: $prefix"
+echo
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel