1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
#MIN_CONFIG(3.1)
AM_INIT_AUTOMAKE(showimg,0.9.4)
# Check in .bot if showimg is disabled
showimg_enabled=yes
# check for konq_operations.h
KDE_CHECK_HEADER(konq_operations.h, ,
AC_MSG_WARN(The file konq_operations.h is needed for ShowImg but is missing. If you use KDE packages please check you have installed the kdebase-devel package.)
DO_NOT_COMPILE="showimg $DO_NOT_COMPILE"
showimg_enabled=no
)
#
# check for KIPI
#
# check for want_kipi
AC_MSG_CHECKING(if ShowImg should be compiled with KIPI support)
AC_ARG_ENABLE(
libkipi,
[ --enable-libkipi enable KIPI plugin support default=yes],
[if test "$enableval" = yes; then
AC_MSG_RESULT(yes)
want_kipi="yes"
else
AC_MSG_RESULT(no)
want_kipi="no"
AC_MSG_WARN([KIPI plugin support will not be compiled])
fi],
[AC_MSG_RESULT(yes); want_kipi="yes"])
# check for libkipi
if test "$want_kipi" = "yes" ; then
KDE_CHECK_HEADER(libkipi/interface.h, have_libkipi="yes")
if test "x$have_libkipi" = "xyes" ;then
LIBKIPI_CFLAGS=''
LIBKIPI_LIBS='-lkipi'
AC_SUBST(LIBKIPI_CFLAGS)
AC_SUBST(LIBKIPI_LIBS)
AC_DEFINE(HAVE_KIPI, 1, [If we have enable KIPI])
fi
fi
#
# check for libkexif
#
AC_MSG_CHECKING(if ShowImg should be compiled with libkexif support)
AC_ARG_WITH(
kexif,
[ --with-kexif compile the kexif plugins support default=yes],
[if test "$withval" = yes ; then
AC_MSG_RESULT(yes)
want_kexif="yes"
else
AC_MSG_RESULT(no)
want_kexif="no"
fi],
[AC_MSG_RESULT(yes); want_kexif="yes"])
if test $want_kexif="yes" ; then
KDE_CHECK_HEADER(libkexif/kexif.h, have_libkexif="yes")
if test "x$have_libkexif" = "xyes"; then
LIBKEXIF_CFLAGS=''
LIBKEXIF_LIBS='-lkexif'
AC_DEFINE(HAVE_LIBKEXIF, 1, [If we have libkexif])
fi
else
AC_MSG_WARN([libkexif support will not be compiled])
fi
AC_SUBST(LIBKEXIF_CFLAGS)
AC_SUBST(LIBKEXIF_LIBS)
#---------------------------------------------------------
# libexif detection
#---------------------------------------------------------
PKG_CHECK_MODULES([LIBEXIF], [libexif >= 0.5.7],
have_libexif=yes ,
have_libexif=no
)
if test "x$have_libexif" = "xyes" ; then
AC_DEFINE_UNQUOTED([HAVE_LIBEXIF], 1, [If we have libkexif])
fi
AC_SUBST(LIBEXIF_LIBS)
AC_SUBST(LIBEXIF_CFLAGS)
|