161 lines
4.2 KiB
Plaintext
161 lines
4.2 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
# get rid of that stupid cache mechanism
|
|
rm -f config.cache
|
|
|
|
AC_INIT(configure.in)
|
|
AM_INIT_AUTOMAKE(edje, 0.0.1)
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AC_ISC_POSIX
|
|
AC_PROG_CC
|
|
AM_PROG_CC_STDC
|
|
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
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Shared data directory])
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Shared data directory])
|
|
fi
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Shared data directory])
|
|
fi
|
|
|
|
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
if test "x${bindir}" = 'xNONE'; then
|
|
if test "x${prefix}" = "xNONE"; then
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin", [Installation directory for user executables])
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin", [Installation directory for user executables])
|
|
fi
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}", [Installation directory for user executables])
|
|
fi
|
|
|
|
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
if test "x${libdir}" = 'xNONE'; then
|
|
if test "x${prefix}" = "xNONE"; then
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib", [Installation directory for libraries])
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib", [Installation directory for libraries])
|
|
fi
|
|
else
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}", [Installation directory for libraries])
|
|
fi
|
|
|
|
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
packagesrcdir=`cd $srcdir && pwd`
|
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code directory])
|
|
|
|
AC_ARG_WITH(eet,
|
|
[ --with-eet=DIR use eet in <DIR>],
|
|
[CFLAGS="$CFLAGS -I$withval/include"
|
|
LIBS="-L$withval/lib $LIBS"])
|
|
|
|
AC_PATH_GENERIC(eet, , [
|
|
AC_SUBST(eet_libs)
|
|
AC_SUBST(eet_cflags)],
|
|
AC_MSG_ERROR(Cannot find eet: Is eet-config in path?))
|
|
eet_libs=`eet-config --libs`
|
|
eet_cflags=`eet-config --cflags`
|
|
|
|
AC_SUBST(eet_cflags)
|
|
AC_SUBST(eet_libs)
|
|
|
|
AC_ARG_WITH(imlib2,
|
|
[ --with-imlib2=DIR use imlib2 in <DIR>],
|
|
[CFLAGS="$CFLAGS -I$withval/include"
|
|
LIBS="-L$withval/lib $LIBS"])
|
|
|
|
AC_PATH_GENERIC(imlib2, , [
|
|
AC_SUBST(imlib2_libs)
|
|
AC_SUBST(imlib2_cflags)],
|
|
AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in path?))
|
|
imlib2_libs=`imlib2-config --libs`
|
|
imlib2_cflags=`imlib2-config --cflags`
|
|
|
|
AC_SUBST(imlib2_cflags)
|
|
AC_SUBST(imlib2_libs)
|
|
|
|
AC_ARG_WITH(evas,
|
|
[ --with-evas=DIR use evas in <DIR>],
|
|
[CFLAGS="$CFLAGS -I$withval/include"
|
|
LIBS="-L$withval/lib $LIBS"])
|
|
|
|
AC_PATH_GENERIC(evas, , [
|
|
AC_SUBST(evas_libs)
|
|
AC_SUBST(evas_cflags)],
|
|
AC_MSG_ERROR(Cannot find evas: Is evas-config in path?))
|
|
evas_libs=`evas-config --libs`
|
|
evas_cflags=`evas-config --cflags`
|
|
|
|
AC_SUBST(evas_cflags)
|
|
AC_SUBST(evas_libs)
|
|
|
|
AC_CHECK_HEADERS(Evas_Engine_Software_X11.h, [], [], [
|
|
#include <Evas.h>
|
|
])
|
|
|
|
AC_CHECK_HEADERS(Evas_Engine_GL_X11.h, [], [], [
|
|
#include <Evas.h>
|
|
])
|
|
|
|
AC_ARG_WITH(ecore,
|
|
[ --with-ecore=DIR use ecore in <DIR>],
|
|
[CFLAGS="$CFLAGS -I$withval/include"
|
|
LIBS="-L$withval/lib $LIBS"])
|
|
|
|
AC_PATH_GENERIC(ecore, , [
|
|
AC_SUBST(ecore_libs)
|
|
AC_SUBST(ecore_cflags)],
|
|
AC_MSG_ERROR(Cannot find ecore: Is ecore-config in path?))
|
|
ecore_libs=`ecore-config --libs`
|
|
ecore_cflags=`ecore-config --cflags`
|
|
|
|
AC_SUBST(ecore_cflags)
|
|
AC_SUBST(ecore_libs)
|
|
|
|
AC_OUTPUT([
|
|
Makefile
|
|
src/Makefile
|
|
src/lib/Makefile
|
|
src/bin/Makefile
|
|
edje-config
|
|
],[
|
|
chmod +x edje-config
|
|
touch edje_docs.tar.gz
|
|
])
|