forked from enlightenment/ephoto
Rework some of the autofoo that goes along with making exif optional.
SVN revision: 28766
This commit is contained in:
parent
5c5e86cec4
commit
6c3c399d8d
36
configure.in
36
configure.in
|
@ -67,25 +67,25 @@ dnl Set PACKAGE_SOURCE_DIR in config.h.
|
||||||
packagesrcdir=`cd $srcdir && pwd`
|
packagesrcdir=`cd $srcdir && pwd`
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code directory])
|
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code directory])
|
||||||
|
|
||||||
AC_CHECK_HEADERS(sqlite3.h,
|
PKG_CHECK_MODULES([SQLITE], sqlite3,
|
||||||
SQLITE_LIBS="$SQLITE_LIBS -lsqlite3",
|
[
|
||||||
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
have_sqlite3="Yes"
|
||||||
)
|
],
|
||||||
AC_SUBST(SQLITE_LIBS)
|
[
|
||||||
|
have_sqlite3="No"
|
||||||
|
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
if pkg-config --exists sqlite3; then
|
PKG_CHECK_MODULES([EXIF], libexif >= 0.6.13,
|
||||||
have_sqlite3="Yes"
|
[
|
||||||
else
|
have_exif="Yes"
|
||||||
have_sqlite3="No"
|
AC_DEFINE(BUILD_EXIF_SUPPORT, 1, [Enable Exif Support])
|
||||||
AC_MSG_ERROR([Ephoto needs sqlite3 to compile.])
|
],
|
||||||
fi
|
[
|
||||||
|
have_exif="No"
|
||||||
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
|
|
||||||
|
|
||||||
PROG="evas-config";
|
PROG="evas-config";
|
||||||
AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
|
AC_PATH_PROG(EVAS_CONFIG, $PROG, "", $PATH)
|
||||||
|
|
|
@ -18,7 +18,7 @@ ephoto_SOURCES = ephoto.c \
|
||||||
|
|
||||||
ephoto_CFLAGS = @ewl_cflags@ -Wall -Werror
|
ephoto_CFLAGS = @ewl_cflags@ -Wall -Werror
|
||||||
|
|
||||||
ephoto_LDADD = @ewl_libs@ -lsqlite3 -lexif
|
ephoto_LDADD = @ewl_libs@ @SQLITE_LIBS@ @EXIF_LIBS@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
ephoto.h
|
ephoto.h
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
#undef HAVE_MEMORY_H
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sqlite3.h> header file. */
|
|
||||||
#undef HAVE_SQLITE3_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
#undef HAVE_STDINT_H
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue