summaryrefslogtreecommitdiffstats
path: root/libkscan/configure.in.in
blob: 09929e926f546a8c01b58a1c6c58fd7fcbd61c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

KDE_FIND_PATH( sane-config, SANE_CONFIG, [ ${prefix}/bin, ${exec_prefix}/bin, 
                                           /usr/local/bin, /opt/local/bin,
                                           /usr/bin ] )
if test -n "$SANE_CONFIG"; then
    dnl ### version check. Klaas, which version is minimum?

    LIBSANE_LIBS="`$SANE_CONFIG --libs`" 
    LIBSANE_LDFLAGS="`$SANE_CONFIG --ldflags`"
    dnl Bah, --cflags is -I lines only (according to the sane-config.in source
    dnl and _INCLUDES looks nicer  :)
    LIBSANE_INCLUDES="`$SANE_CONFIG --cflags`"

    AC_DEFINE_UNQUOTED(HAVE_SANE, 1, [Defines if your system has the sane libraries]) 
else
    DO_NOT_COMPILE="$DO_NOT_COMPILE libkscan kooka"
fi

AM_CONDITIONAL(include_kooka, test -n "$SANE_CONFIG")
AC_SUBST(LIBSANE_LIBS)
AC_SUBST(LIBSANE_LDFLAGS)
AC_SUBST(LIBSANE_INCLUDES)