forked from enlightenment/enlightenment
165 lines
4.5 KiB
Plaintext
165 lines
4.5 KiB
Plaintext
|
dnl Process this file with autoconf to produce a configure script.
|
||
|
|
||
|
AC_INIT
|
||
|
AC_CONFIG_SRCDIR([configure.in])
|
||
|
|
||
|
ENLIGHTENMENT_MAJOR=0
|
||
|
ENLIGHTENMENT_MINOR=17
|
||
|
ENLIGHTENMENT_MICRO=pre_0
|
||
|
ENLIGHTENMENT_VERSION=$ENLIGHTENMENT_MAJOR.$ENLIGHTENMENT_MINOR.$ENLIGHTENMENT_MICRO
|
||
|
|
||
|
VERSION=$ENLIGHTENMENT_VERSION
|
||
|
|
||
|
AM_INIT_AUTOMAKE(enlightenment, $VERSION)
|
||
|
AM_CONFIG_HEADER(config.h)
|
||
|
|
||
|
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_VERSION, "$ENLIGHTENMENT_VERSION")
|
||
|
AC_SUBST(ENLIGHTENMENT_VERSION)
|
||
|
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MAJOR, "$ENLIGHTENMENT_MAJOR")
|
||
|
AC_SUBST(ENLIGHTENMENT_MAJOR)
|
||
|
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MINOR, "$ENLIGHTENMENT_MINOR")
|
||
|
AC_SUBST(ENLIGHTENMENT_MINOR)
|
||
|
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MICRO, "$ENLIGHTENMENT_MICRO")
|
||
|
AC_SUBST(ENLIGHTENMENT_MICRO)
|
||
|
|
||
|
AC_ISC_POSIX
|
||
|
AC_PROG_CC
|
||
|
AM_PROG_CC_STDC
|
||
|
AC_HEADER_STDC
|
||
|
AC_C_CONST
|
||
|
AM_ENABLE_SHARED
|
||
|
AM_PROG_LIBTOOL
|
||
|
|
||
|
AM_WITH_DMALLOC
|
||
|
|
||
|
dnl Add the languages which your application supports here.
|
||
|
ALL_LINGUAS=""
|
||
|
AM_GNU_GETTEXT
|
||
|
|
||
|
dnl Set PACKAGE_LOCALE_DIR in config.h.
|
||
|
if test "x${prefix}" = "xNONE"; then
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
|
||
|
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}")
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
|
||
|
fi
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
|
||
|
fi
|
||
|
|
||
|
dnl Set PACKAGE_BIN_DIR in config.h.
|
||
|
if test "x${datadir}" = 'x${prefix}/bin'; then
|
||
|
if test "x${prefix}" = "xNONE"; then
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin")
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin")
|
||
|
fi
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}")
|
||
|
fi
|
||
|
|
||
|
dnl Set PACKAGE_LIB_DIR in config.h.
|
||
|
if test "x${datadir}" = 'x${prefix}/lib'; then
|
||
|
if test "x${prefix}" = "xNONE"; then
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib")
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib")
|
||
|
fi
|
||
|
else
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}")
|
||
|
fi
|
||
|
|
||
|
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
||
|
packagesrcdir=`cd $srcdir && pwd`
|
||
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
|
||
|
|
||
|
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
|
||
|
|
||
|
dnl Check for Evas.
|
||
|
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`
|
||
|
|
||
|
dnl Check for Edb.
|
||
|
AC_ARG_WITH(edb,
|
||
|
[ --with-edb=DIR use edb in <DIR>],
|
||
|
[CFLAGS="$CFLAGS -I$withval/include"
|
||
|
LIBS="-L$withval/lib $LIBS"])
|
||
|
|
||
|
AC_PATH_GENERIC(edb,, [
|
||
|
AC_SUBST(edb_libs)
|
||
|
AC_SUBST(edb_cflags)],
|
||
|
AC_MSG_ERROR(Cannot find edb: Is edb-config in path?))
|
||
|
edb_libs=`edb-config --libs`
|
||
|
edb_cflags=`edb-config --cflags`
|
||
|
|
||
|
dnl Check for Ebits.
|
||
|
AC_ARG_WITH(ebits,
|
||
|
[ --with-ebits=DIR use ebits in <DIR>],
|
||
|
[CFLAGS="$CFLAGS -I$withval/include"
|
||
|
LIBS="-L$withval/lib $LIBS"])
|
||
|
|
||
|
AC_PATH_GENERIC(ebits,, [
|
||
|
AC_SUBST(ebits_libs)
|
||
|
AC_SUBST(ebits_cflags)],
|
||
|
AC_MSG_ERROR(Cannot find ebits: Is ebits-config in path?))
|
||
|
ebits_libs=`ebits-config --libs`
|
||
|
ebits_cflags=`ebits-config --cflags`
|
||
|
|
||
|
dnl Check for Ecore.
|
||
|
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`
|
||
|
|
||
|
dnl Check for Efsd.
|
||
|
AC_ARG_WITH(efsd,
|
||
|
[ --with-efsd=DIR use efsd in <DIR>],
|
||
|
[CFLAGS="$CFLAGS -I$withval/include"
|
||
|
LIBS="-L$withval/lib $LIBS"])
|
||
|
|
||
|
AC_PATH_GENERIC(efsd,, [
|
||
|
AC_SUBST(efsd_libs)
|
||
|
AC_SUBST(efsd_cflags)],
|
||
|
AC_MSG_ERROR(Cannot find efsd: Is efsd-config in path?))
|
||
|
efsd_libs=`efsd-config --libs`
|
||
|
efsd_cflags=`efsd-config --cflags`
|
||
|
|
||
|
AC_SUBST(CP_OPTIONS)
|
||
|
|
||
|
AC_CONFIG_FILES([
|
||
|
Makefile src/Makefile lib/Makefile client/Makefile intl/Makefile po/Makefile.in
|
||
|
])
|
||
|
AC_OUTPUT
|
||
|
|