2003-09-23 01:09:32 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(configure.in)
|
2004-02-16 23:12:01 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_TARGET
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_ISC_POSIX
|
|
|
|
AM_INIT_AUTOMAKE(ecore, 1.0.0_pre4)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_PROG_CC
|
2004-01-03 09:29:44 -08:00
|
|
|
AM_PROG_CC_STDC
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
|
|
|
AM_ENABLE_SHARED
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
if test "x${exec_prefix}" = "xNONE"; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
bindir="${ac_default_prefix}/bin";
|
|
|
|
else
|
|
|
|
bindir="${prefix}/bin";
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
bindir="${ac_default_prefix}/bin";
|
|
|
|
else
|
|
|
|
bindir="${prefix}/bin";
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${exec_prefix}" = "xNONE"; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
libdir="${ac_default_prefix}/lib";
|
|
|
|
else
|
|
|
|
libdir="${prefix}/lib";
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
libdir="${ac_default_prefix}/lib";
|
|
|
|
else
|
|
|
|
libdir="${prefix}/lib";
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
|
|
if test "x${datadir}" = 'x${prefix}/share'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Shared Data Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
|
|
if test "x${bindir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Installation Directory for User Executables])
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
|
2003-12-05 08:57:32 -08:00
|
|
|
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
|
|
if test "x${libdir}" = 'xNONE'; then
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
|
|
|
else
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Installation Directory for Libraries])
|
2003-12-05 08:57:32 -08:00
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
|
|
packagesrcdir=`cd $srcdir && pwd`
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source Code Directory])
|
2003-09-23 01:09:32 -07:00
|
|
|
|
|
|
|
dnl Use -Wall if we have gcc.
|
|
|
|
changequote(,)dnl
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
|
|
|
|
2003-12-15 20:57:42 -08:00
|
|
|
AC_MSG_CHECKING(whether ecore_txt module is to be built)
|
|
|
|
|
|
|
|
iconv_cflags=""
|
|
|
|
iconv_libs=""
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_txt="no";
|
2003-12-15 20:57:42 -08:00
|
|
|
ecore_txt_cflags="";
|
|
|
|
ecore_txt_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-txt,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-txt disable the ecore_txt module], [
|
2003-12-15 20:57:42 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_ecore_txt" = "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, iconv,
|
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
2003-12-15 20:57:42 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
ecore_txt_libs="-lecore_txt"
|
2004-01-04 12:23:36 -08:00
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
2003-12-15 20:57:42 -08:00
|
|
|
)
|
2004-01-04 12:23:36 -08:00
|
|
|
|
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(iconv, iconv,
|
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
2004-01-04 12:23:36 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
iconv_libs="-liconv"
|
|
|
|
ecore_txt_libs="-lecore_txt -liconv"
|
|
|
|
have_ecore_txt="yes"
|
2004-03-16 15:52:46 -08:00
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
2004-01-04 12:23:36 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(c, libiconv,
|
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
2004-01-04 12:23:36 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
ecore_txt_libs="-lecore_txt"
|
|
|
|
have_ecore_txt="yes"
|
2004-03-16 15:52:46 -08:00
|
|
|
], [
|
|
|
|
have_ecore_txt="no"
|
2004-01-04 12:23:36 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$have_ecore_txt" != "xyes"; then
|
|
|
|
AC_CHECK_LIB(iconv, libiconv,
|
|
|
|
[
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_TXT, 1, [Build Ecore_Txt Module])
|
2004-01-04 12:23:36 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, true)
|
|
|
|
iconv_libs="-liconv"
|
|
|
|
ecore_txt_libs="-lecore_txt -liconv"
|
|
|
|
have_ecore_txt="yes"
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT("no - disabling ecore_txt")
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, false)
|
|
|
|
have_ecore_txt="no"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
fi
|
2003-12-15 20:57:42 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_TXT, false)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(iconv_cflags)
|
|
|
|
AC_SUBST(iconv_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_txt_cflags)
|
|
|
|
AC_SUBST(ecore_txt_libs)
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_x="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_x_cflags="";
|
|
|
|
ecore_x_libs="";
|
|
|
|
|
|
|
|
x_dir="";
|
|
|
|
x_includes="";
|
|
|
|
x_cflags="";
|
|
|
|
x_libs="";
|
|
|
|
x_ldflags="";
|
|
|
|
|
2003-12-15 20:57:42 -08:00
|
|
|
if test "x$have_ecore_txt" = "xyes"; then
|
|
|
|
AC_MSG_CHECKING(whether ecore_x module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-x,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-x disable the ecore_x module], [
|
2003-12-15 20:57:42 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_x="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-10-14 21:20:38 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_x="yes"
|
2003-12-15 20:57:42 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-17 08:25:51 -08:00
|
|
|
else
|
2003-12-17 08:30:10 -08:00
|
|
|
AC_MSG_RESULT(ecore_txt not enabled, so ecore_x will not be enabled)
|
2003-12-15 20:57:42 -08:00
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_x" = "xyes"; then
|
2003-12-17 08:25:51 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_X, 1, [Build Ecore_X Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
x_dir="/usr/X11R6";
|
|
|
|
x_includes="";
|
|
|
|
x_cflags="-I"$x_dir"/include"
|
|
|
|
x_libs="-L"$x_dir"/lib -lX11 -lXext"
|
|
|
|
x_ldflags="";
|
|
|
|
ecore_x_libs="-lecore_x";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_X, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(x_cflags)
|
|
|
|
AC_SUBST(x_includes)
|
|
|
|
AC_SUBST(x_ldflags)
|
|
|
|
AC_SUBST(x_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_x_cflags)
|
|
|
|
AC_SUBST(ecore_x_libs)
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_job module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_job="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_job_cflags="";
|
|
|
|
ecore_job_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-job,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-job disable the ecore_job module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_job="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_job="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_job" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_JOB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_JOB, 1, [Build Ecore_Job Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_job_libs="-lecore_job";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_JOB, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_job_cflags)
|
|
|
|
AC_SUBST(ecore_job_libs)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_fb="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_fb_cflags="";
|
|
|
|
ecore_fb_libs="";
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_fb module is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-fb,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-fb disable the ecore_fb module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_fb="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_fb="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_fb" = "xyes"; then
|
|
|
|
AC_CHECK_HEADER(linux/fb.h,
|
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_FB, 1, [Build Ecore_FB Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_fb_libs="-lecore_fb";
|
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_fb="no"
|
2003-12-15 18:46:31 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_FB, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_fb_cflags)
|
|
|
|
AC_SUBST(ecore_fb_libs)
|
|
|
|
|
|
|
|
ecore_evas_cflags="";
|
|
|
|
ecore_evas_libs="";
|
|
|
|
|
|
|
|
evas_cflags="";
|
|
|
|
evas_libs="";
|
|
|
|
|
2003-12-22 20:58:47 -08:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_ARG_WITH(evas-config,
|
|
|
|
[ --with-evas-config=EVAS_CONFIG use evas-config specified ],
|
|
|
|
[
|
|
|
|
PROG_CONFIG=$withval;
|
|
|
|
echo "using "$PROG_CONFIG" for evas-config";
|
|
|
|
],[
|
|
|
|
PROG="evas-config";
|
|
|
|
AC_PATH_PROG(PROG_CONFIG, $PROG, "", $PATH)
|
|
|
|
])
|
2004-02-16 23:12:01 -08:00
|
|
|
if [ test -z "$EVAS_CONFIG" ]; then EVAS_CONFIG=$PROG_CONFIG; fi
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_evas="no"
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-evas,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas disable the ecore_evas module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_evas="yes";
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
2003-09-23 01:09:32 -07:00
|
|
|
fi
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas="yes";
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_evas" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS, 1, [Build Ecore_Evas Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
if [ test -z $EVAS_CONFIG ]; then
|
|
|
|
echo $PROG " is not in your \$PATH. Please ensure it is.";
|
|
|
|
echo "Read the manual page for you shell as to how to extend your path.";
|
|
|
|
echo "FATAL ERROR. ABORT.";
|
|
|
|
exit -1;
|
|
|
|
fi
|
|
|
|
evas_cflags=`$EVAS_CONFIG --cflags`
|
|
|
|
evas_libs=`$EVAS_CONFIG --libs`
|
|
|
|
ecore_evas_libs="-lecore_evas";
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(evas_cflags)
|
|
|
|
AC_SUBST(evas_libs)
|
|
|
|
|
|
|
|
AC_SUBST(ecore_evas_cflags)
|
|
|
|
AC_SUBST(ecore_evas_libs)
|
|
|
|
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_gl="no";
|
2003-12-15 18:46:31 -08:00
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_evas gl support is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-evas-gl,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas-gl disable gl in the ecore_evas module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_evas_gl="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_gl="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_evas_gl" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_GL_X11.h,
|
2003-12-15 18:46:31 -08:00
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_GL, 1, [Support for GL Engine in Ecore_Evas])
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, false)
|
|
|
|
have_ecore_evas_gl="no"
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 18:46:31 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_GL, false)
|
|
|
|
fi
|
|
|
|
|
2004-02-03 12:12:28 -08:00
|
|
|
if test "x$have_ecore_evas_gl" = "xyes"; then
|
|
|
|
BUILD_ECORE_EVAS_GL=1
|
|
|
|
else
|
|
|
|
BUILD_ECORE_EVAS_GL=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_EVAS_GL)
|
|
|
|
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_evas_fb="no";
|
2003-12-15 21:54:46 -08:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether ecore_evas fb support is to be built)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-evas-fb,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-evas-fb disable fb in the ecore_evas module], [
|
2003-12-15 21:54:46 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_fb="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_evas_fb="yes"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$have_ecore_evas_fb" = "xyes"; then
|
2004-01-03 16:31:29 -08:00
|
|
|
AC_CHECK_HEADER(Evas_Engine_FB.h,
|
2003-12-15 21:54:46 -08:00
|
|
|
[
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_EVAS_FB, 1, [Support for Linux FB in Ecore_Evas])
|
2004-01-03 16:31:29 -08:00
|
|
|
], [
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, false)
|
|
|
|
have_ecore_evas_fb="no"
|
|
|
|
], [
|
2003-12-15 21:54:46 -08:00
|
|
|
#include <Evas.h>
|
2004-01-03 16:31:29 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 21:54:46 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_EVAS_FB, false)
|
|
|
|
fi
|
|
|
|
|
2004-02-03 12:12:28 -08:00
|
|
|
if test "x$have_ecore_evas_fb" = "xyes"; then
|
|
|
|
BUILD_ECORE_EVAS_FB=1
|
|
|
|
else
|
|
|
|
BUILD_ECORE_EVAS_FB=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(BUILD_ECORE_EVAS_FB)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_MSG_CHECKING(whether ecore_con module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_con="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_con_cflags="";
|
|
|
|
ecore_con_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-con,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-con disable the ecore_con module], [
|
2003-10-14 21:20:38 -07:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_con="yes"
|
2003-10-14 21:20:38 -07:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_con="yes"
|
2003-09-23 01:09:32 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_con" = "xyes"; then
|
2003-12-17 08:25:51 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CON, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_CON, 1, [Build Ecore_Con Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_con_libs="-lecore_con"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CON, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_con_cflags)
|
|
|
|
AC_SUBST(ecore_con_libs)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_ipc="no";
|
2003-09-23 01:09:32 -07:00
|
|
|
ecore_ipc_cflags="";
|
|
|
|
ecore_ipc_libs="";
|
|
|
|
|
2003-12-17 08:25:51 -08:00
|
|
|
if test "x$have_ecore_con" = "xyes"; then
|
|
|
|
AC_MSG_CHECKING(whether ecore_ipc module is to be built)
|
|
|
|
AC_ARG_ENABLE(ecore-ipc,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-ipc disable the ecore_ipc module], [
|
2003-12-17 08:25:51 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_ipc="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-10-14 21:20:38 -07:00
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_ipc="yes"
|
2003-12-17 08:25:51 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
2003-12-17 08:30:10 -08:00
|
|
|
AC_MSG_RESULT(ecore_con not enabled, so ecore_ipc will not be enabled)
|
2003-12-17 08:25:51 -08:00
|
|
|
fi
|
2003-09-23 01:09:32 -07:00
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_ipc" = "xyes"; then
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_IPC, true)
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_IPC, 1, [Build Ecore_Ipc Module])
|
2003-12-15 18:46:31 -08:00
|
|
|
ecore_ipc_libs="-lecore_ipc"
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_IPC, false)
|
|
|
|
fi
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_SUBST(ecore_ipc_cflags)
|
|
|
|
AC_SUBST(ecore_ipc_libs)
|
|
|
|
|
2003-10-09 00:49:59 -07:00
|
|
|
|
2003-12-05 07:02:17 -08:00
|
|
|
AC_MSG_CHECKING(whether ecore_config module is to be built)
|
|
|
|
|
2004-01-02 11:08:32 -08:00
|
|
|
have_ecore_config="no";
|
2003-12-05 07:02:17 -08:00
|
|
|
ecore_config_cflags="";
|
|
|
|
ecore_config_libs="";
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(ecore-config,
|
2004-01-01 20:42:04 -08:00
|
|
|
[ --disable-ecore-config disable the ecore_config module], [
|
2003-12-05 07:02:17 -08:00
|
|
|
if [ test "$enableval" = "yes" ]; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2003-12-15 18:46:31 -08:00
|
|
|
have_ecore_config="yes";
|
2003-12-05 07:02:17 -08:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
], [
|
2003-12-15 18:46:31 -08:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
have_ecore_config="yes";
|
2003-12-05 07:02:17 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2003-12-15 18:46:31 -08:00
|
|
|
if test "x$have_ecore_config" = "xyes"; then
|
2003-12-22 20:58:47 -08:00
|
|
|
AC_ARG_WITH(edb-config,
|
|
|
|
[ --with-edb-config=EDB_CONFIG use edb-config specified ],
|
|
|
|
[
|
|
|
|
PROG_CONFIG=$withval;
|
|
|
|
echo "using "$PROG_CONFIG" for edb-config";
|
|
|
|
],[
|
|
|
|
PROG="edb-config";
|
|
|
|
AC_PATH_PROG(PROG_CONFIG, $PROG, "", $PATH)
|
|
|
|
])
|
2004-02-16 23:12:01 -08:00
|
|
|
if [ test -z "$EDB_CONFIG" ]; then EDB_CONFIG=$PROG_CONFIG; fi
|
2003-12-22 20:58:47 -08:00
|
|
|
|
|
|
|
AC_CHECK_LIB(edb, e_db_open,
|
|
|
|
[
|
2004-02-16 23:12:01 -08:00
|
|
|
edb_cflags=`$EDB_CONFIG --cflags`
|
|
|
|
edb_libs=`$EDB_CONFIG --libs`
|
2003-12-22 23:34:27 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CONFIG, true)
|
2003-12-28 13:00:52 -08:00
|
|
|
ecore_config_libs="-lecore_config";
|
2004-01-14 11:09:14 -08:00
|
|
|
AC_DEFINE(BUILD_ECORE_CONFIG, 1, [Build Ecore_Config Module])
|
2003-12-22 23:34:27 -08:00
|
|
|
AC_SUBST(edb_libs)
|
|
|
|
AC_SUBST(edb_cflags)
|
|
|
|
],
|
2004-01-03 16:31:29 -08:00
|
|
|
[
|
|
|
|
AC_MSG_RESULT(I can't find Edb, so I won't build ecore_config.)
|
2003-12-22 23:34:27 -08:00
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
|
2004-01-03 16:31:29 -08:00
|
|
|
have_ecore_config="no"
|
2003-12-22 20:58:47 -08:00
|
|
|
]
|
|
|
|
)
|
2003-12-15 18:46:31 -08:00
|
|
|
else
|
|
|
|
AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
|
|
|
|
fi
|
|
|
|
|
2003-12-05 07:02:17 -08:00
|
|
|
AC_SUBST(ecore_config_cflags)
|
|
|
|
AC_SUBST(ecore_config_libs)
|
|
|
|
|
2003-09-23 01:09:32 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
ecore-config
|
|
|
|
src/Makefile
|
|
|
|
src/bin/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/lib/ecore/Makefile
|
|
|
|
src/lib/ecore_job/Makefile
|
|
|
|
src/lib/ecore_x/Makefile
|
|
|
|
src/lib/ecore_fb/Makefile
|
2004-02-03 12:12:28 -08:00
|
|
|
src/lib/ecore_evas/Ecore_Evas.h
|
2003-09-23 01:09:32 -07:00
|
|
|
src/lib/ecore_evas/Makefile
|
|
|
|
src/lib/ecore_con/Makefile
|
|
|
|
src/lib/ecore_ipc/Makefile
|
2003-10-09 00:49:59 -07:00
|
|
|
src/lib/ecore_txt/Makefile
|
2003-12-05 07:02:17 -08:00
|
|
|
src/lib/ecore_config/Makefile
|
2003-09-23 01:09:32 -07:00
|
|
|
debian/Makefile
|
|
|
|
], [
|
|
|
|
chmod +x ecore-config
|
|
|
|
]
|
|
|
|
)
|
2004-01-02 11:08:32 -08:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo
|
|
|
|
echo "Optional Modules:"
|
|
|
|
echo
|
2004-01-03 16:31:29 -08:00
|
|
|
echo " Ecore_Job...............: $have_ecore_job"
|
|
|
|
echo " Ecore_Con...............: $have_ecore_con"
|
|
|
|
echo " Ecore_Txt...............: $have_ecore_txt"
|
|
|
|
echo " Ecore_X.................: $have_ecore_x"
|
|
|
|
echo " Ecore_FB................: $have_ecore_fb"
|
|
|
|
echo " Ecore_Evas..............: $have_ecore_evas"
|
|
|
|
echo " Ecore_Evas GL Support...: $have_ecore_evas_gl"
|
|
|
|
echo " Ecore_Evas FB Support...: $have_ecore_evas_fb"
|
|
|
|
echo " Ecore_Ipc...............: $have_ecore_ipc"
|
|
|
|
echo " Ecore_Config............: $have_ecore_config"
|
2004-01-02 11:08:32 -08:00
|
|
|
echo
|
|
|
|
echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE."
|
|
|
|
echo
|