2007-02-15 02:20:21 -08:00
|
|
|
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(ephoto, 2.15.0)
|
|
|
|
AM_CONFIG_HEADER(src/bin/config.h)
|
|
|
|
|
|
|
|
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="sv de it fr"
|
|
|
|
AC_SUBST(ALL_LINGUAS)
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.12.1])
|
|
|
|
|
|
|
|
dnl Set PACKAGE_LOCALE_DIR in config.h.
|
|
|
|
if test "x$LIBINTL" = "x"; then
|
|
|
|
LIBINTL="$INTLLIBS"
|
|
|
|
fi
|
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/share/locale", [Locale-specific data directory])
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/share/locale", [Locale-specific data directory])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
|
|
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
|
|
|
|
|
|
|
|
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", [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${datadir}" = 'x${prefix}/lib'; 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_CHECK_HEADERS(sqlite3.h,
|
|
|
|
SQLITE_LIBS="$SQLITE_LIBS -lsqlite3",
|
|
|
|
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
|
|
|
)
|
|
|
|
AC_SUBST(SQLITE_LIBS)
|
|
|
|
|
2007-03-15 21:34:22 -07:00
|
|
|
if pkg-config --exists 'sqlite3 >= 3.3'; then
|
|
|
|
have_sqlite3="Yes"
|
|
|
|
else
|
|
|
|
have_sqlite3="No"
|
|
|
|
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if pkg-config --exists 'libexif >= 0.6.13'; then
|
|
|
|
have_exif="Yes"
|
|
|
|
AC_DEFINE(BUILD_EXIF_SUPPORT, 1, [Enable Exif Support])
|
|
|
|
else
|
|
|
|
have_exif="No"
|
|
|
|
fi
|
2007-02-15 02:20:21 -08:00
|
|
|
|
|
|
|
PROG="evas-config";
|
|
|
|
AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
|
|
|
|
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.";
|
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
|
|
|
fi
|
|
|
|
evas_cflags=`$EVAS_CONFIG --cflags`
|
|
|
|
evas_libs=`$EVAS_CONFIG --libs`
|
|
|
|
AC_SUBST(evas_cflags)
|
|
|
|
AC_SUBST(evas_libs)
|
|
|
|
|
|
|
|
PROG="ecore-config";
|
|
|
|
AC_PATH_PROG(ECORE_CONFIG, $PROG, "", $PATH)
|
|
|
|
if test -z "$ECORE_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.";
|
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
|
|
|
fi
|
|
|
|
ecore_cflags=`$ECORE_CONFIG --cflags`
|
|
|
|
ecore_libs=`$ECORE_CONFIG --libs`
|
|
|
|
AC_SUBST(ecore_cflags)
|
|
|
|
AC_SUBST(ecore_libs)
|
|
|
|
|
|
|
|
PROG="ewl-config";
|
|
|
|
AC_PATH_PROG(EWL_CONFIG, $PROG, "", $PATH)
|
|
|
|
if test -z "$EWL_CONFIG" ; then
|
|
|
|
echo $PROG " is not in your \$PATH. Please ensure it is.";
|
|
|
|
echo "Read the manual page for your shell as to how to extend your path.";
|
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
|
|
|
fi
|
|
|
|
ewl_cflags=`$EWL_CONFIG --cflags`
|
|
|
|
ewl_libs=`$EWL_CONFIG --libs`
|
|
|
|
AC_SUBST(ewl_cflags)
|
|
|
|
AC_SUBST(ewl_libs)
|
|
|
|
|
|
|
|
PROG="edje-config";
|
|
|
|
AC_PATH_PROG(EDJE_CONFIG, $PROG, "", $PATH)
|
|
|
|
if test -z "$EDJE_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.";
|
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
|
|
|
fi
|
|
|
|
edje_cflags=`$EDJE_CONFIG --cflags`
|
|
|
|
edje_libs=`$EDJE_CONFIG --libs`
|
|
|
|
AC_SUBST(edje_cflags)
|
|
|
|
AC_SUBST(edje_libs)
|
|
|
|
|
|
|
|
|
|
|
|
PROG="epsilon-config";
|
|
|
|
AC_PATH_PROG(EPSILON_CONFIG, $PROG, "", $PATH)
|
|
|
|
if test -z "$EPSILON_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.";
|
|
|
|
AC_MSG_ERROR(Cannot find $PROG)
|
|
|
|
fi
|
|
|
|
epsilon_cflags=`$EPSILON_CONFIG --cflags`
|
|
|
|
epsilon_libs=`$EPSILON_CONFIG --libs`
|
|
|
|
AC_SUBST(epsilon_cflags)
|
|
|
|
AC_SUBST(epsilon_libs)
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
ephoto.spec
|
|
|
|
data/Makefile
|
|
|
|
data/images/Makefile
|
|
|
|
data/themes/Makefile
|
|
|
|
data/themes/ephoto/Makefile
|
|
|
|
data/themes/ephoto/bits/Makefile
|
|
|
|
data/themes/ephoto/fonts/Makefile
|
|
|
|
data/themes/ephoto/images/Makefile
|
|
|
|
po/Makefile
|
|
|
|
src/Makefile
|
|
|
|
src/bin/Makefile
|
2007-02-17 18:38:28 -08:00
|
|
|
debian/changelog
|
2007-02-15 02:20:21 -08:00
|
|
|
])
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo " ________ ________ ___ ___ ________ ________ ________"
|
|
|
|
echo " / _____/ / __ / / / / / / __ / /__ ___/ / __ /"
|
|
|
|
echo " / /____ / /_/ / / /_/ / / / / / / / / / / / "
|
|
|
|
echo " / _____/ / _____/ / __ / / / / / / / / / / / "
|
|
|
|
echo "/ /_____ / / / / / / / /_/ / / / / /_/ / "
|
|
|
|
echo "________/ /__/ /__/ /__/ /_______/ /_/ /_______/ "
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
|
|
|
echo " Evas ............: Yes"
|
|
|
|
echo " Ecore ...........: Yes"
|
|
|
|
echo " Edje ............: Yes"
|
|
|
|
echo " Epsilon .........: Yes"
|
|
|
|
echo " EWL .............: Yes"
|
2007-03-15 21:34:22 -07:00
|
|
|
echo " Libexif .........: $have_exif"
|
|
|
|
echo " Sqlite3 .........: $have_sqlite3"
|
2007-02-15 02:20:21 -08:00
|
|
|
echo
|
|
|
|
echo "Installation Path.........: $prefix"
|
|
|
|
echo
|
|
|
|
echo "Compilation...............: make"
|
|
|
|
echo "Installation..............: make install"
|
|
|
|
echo
|