|
|
@ -1,48 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
dnl ======================================
|
|
|
|
dnl ======================================
|
|
|
|
dnl KNewStuff Configuration
|
|
|
|
dnl TDENewStuff Configuration
|
|
|
|
dnl ======================================
|
|
|
|
dnl ======================================
|
|
|
|
dnl
|
|
|
|
dnl
|
|
|
|
dnl Copyright (C) 2004 Josef Spillner <spillner@kde.org>
|
|
|
|
dnl Copyright (C) 2004 Josef Spillner <spillner@kde.org>
|
|
|
|
dnl This file is to be used within KDE's build system.
|
|
|
|
dnl This file is to be used within TDE's build system.
|
|
|
|
dnl It defines $(LIB_KNEWSTUFF) if knewstuff has been found,
|
|
|
|
dnl It defines $(LIB_TDENEWSTUFF) if tdenewstuff has been found,
|
|
|
|
dnl and a HAVE_KNEWSTUFF #define statement is added.
|
|
|
|
dnl and a HAVE_TDENEWSTUFF #define statement is added.
|
|
|
|
dnl
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for KDE library: knewstuff])
|
|
|
|
AC_MSG_CHECKING([for TDE library: tdenewstuff])
|
|
|
|
|
|
|
|
|
|
|
|
ac_knewstuff_includes=NO ac_knewstuff_libraries=NO
|
|
|
|
ac_tdenewstuff_includes=NO ac_tdenewstuff_libraries=NO
|
|
|
|
knewstuff_libraries=""
|
|
|
|
tdenewstuff_libraries=""
|
|
|
|
knewstuff_includes=""
|
|
|
|
tdenewstuff_includes=""
|
|
|
|
|
|
|
|
|
|
|
|
AC_CACHE_VAL(ac_cv_have_knewstuff,
|
|
|
|
AC_CACHE_VAL(ac_cv_have_tdenewstuff,
|
|
|
|
[
|
|
|
|
[
|
|
|
|
AC_FIND_FILE(knewstuff/downloaddialog.h, $kde_incdirs, knewstuff_incdir)
|
|
|
|
AC_FIND_FILE(tdenewstuff/downloaddialog.h, $kde_incdirs, tdenewstuff_incdir)
|
|
|
|
ac_knewstuff_includes="$knewstuff_incdir"
|
|
|
|
ac_tdenewstuff_includes="$tdenewstuff_incdir"
|
|
|
|
|
|
|
|
|
|
|
|
AC_FIND_FILE(libknewstuff.so, $kde_libdirs, knewstuff_libdir)
|
|
|
|
AC_FIND_FILE(libtdenewstuff.so, $kde_libdirs, tdenewstuff_libdir)
|
|
|
|
ac_knewstuff_libraries="$knewstuff_libdir"
|
|
|
|
ac_tdenewstuff_libraries="$tdenewstuff_libdir"
|
|
|
|
|
|
|
|
|
|
|
|
if test "$ac_knewstuff_includes" = NO || test "$ac_knewstuff_libraries" = NO; then
|
|
|
|
if test "$ac_tdenewstuff_includes" = NO || test "$ac_tdenewstuff_libraries" = NO; then
|
|
|
|
ac_cv_have_knewstuff="have_knewstuff=no"
|
|
|
|
ac_cv_have_tdenewstuff="have_tdenewstuff=no"
|
|
|
|
ac_knewstuff_notfound=""
|
|
|
|
ac_tdenewstuff_notfound=""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
have_knewstuff="yes"
|
|
|
|
have_tdenewstuff="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
eval "$ac_cv_have_knewstuff"
|
|
|
|
eval "$ac_cv_have_tdenewstuff"
|
|
|
|
|
|
|
|
|
|
|
|
if test "$have_knewstuff" != yes; then
|
|
|
|
if test "$have_tdenewstuff" != yes; then
|
|
|
|
AC_MSG_RESULT([$have_knewstuff])
|
|
|
|
AC_MSG_RESULT([$have_tdenewstuff])
|
|
|
|
else
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([$have_knewstuff (libraries $ac_knewstuff_libraries, headers $ac_knewstuff_includes)])
|
|
|
|
AC_MSG_RESULT([$have_tdenewstuff (libraries $ac_tdenewstuff_libraries, headers $ac_tdenewstuff_includes)])
|
|
|
|
|
|
|
|
|
|
|
|
dnl AC_DEFINE_UNQUOTED(HAVE_KNEWSTUFF, 1, [Add KNewStuff functionality.])
|
|
|
|
dnl AC_DEFINE_UNQUOTED(HAVE_TDENEWSTUFF, 1, [Add TDENewStuff functionality.])
|
|
|
|
CXXFLAGS="$CXXFLAGS -DHAVE_KNEWSTUFF"
|
|
|
|
CXXFLAGS="$CXXFLAGS -DHAVE_TDENEWSTUFF"
|
|
|
|
|
|
|
|
|
|
|
|
LIB_KNEWSTUFF='-lknewstuff'
|
|
|
|
LIB_TDENEWSTUFF='-ltdenewstuff'
|
|
|
|
AC_SUBST(LIB_KNEWSTUFF)
|
|
|
|
AC_SUBST(LIB_TDENEWSTUFF)
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_CHECK_FILE([kexi/3rdparty/kexifeedbackwizard/lib/kexifeedbackwizard.cpp],
|
|
|
|
AC_CHECK_FILE([kexi/3rdparty/kexifeedbackwizard/lib/kexifeedbackwizard.cpp],
|
|
|
@ -51,7 +51,7 @@ AC_CHECK_FILE([kexi/3rdparty/kexifeedbackwizard/lib/kexifeedbackwizard.cpp],
|
|
|
|
have_internal_feedback="no"
|
|
|
|
have_internal_feedback="no"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for KDE library: kfeedbackwizard])
|
|
|
|
AC_MSG_CHECKING([for TDE library: kfeedbackwizard])
|
|
|
|
|
|
|
|
|
|
|
|
ac_kfeedback_includes=NO ac_kfeedback_libraries=NO
|
|
|
|
ac_kfeedback_includes=NO ac_kfeedback_libraries=NO
|
|
|
|
kfeedback_libraries=""
|
|
|
|
kfeedback_libraries=""
|
|
|
@ -92,7 +92,7 @@ else
|
|
|
|
use_kexifb="no"
|
|
|
|
use_kexifb="no"
|
|
|
|
AC_MSG_RESULT([$have_kfeedback (libraries $ac_kfeedback_libraries, headers $ac_kfeedback_includes)])
|
|
|
|
AC_MSG_RESULT([$have_kfeedback (libraries $ac_kfeedback_libraries, headers $ac_kfeedback_includes)])
|
|
|
|
|
|
|
|
|
|
|
|
dnl AC_DEFINE_UNQUOTED(HAVE_KFEEDBACK, 1, [Add KNewStuff functionality.])
|
|
|
|
dnl AC_DEFINE_UNQUOTED(HAVE_KFEEDBACK, 1, [Add TDENewStuff functionality.])
|
|
|
|
CXXFLAGS="$CXXFLAGS -DFEEDBACK_CLASS=KFeedbackWizard -DFEEDBACK_INCLUDE=\"<kfeedbackwizard.h>\""
|
|
|
|
CXXFLAGS="$CXXFLAGS -DFEEDBACK_CLASS=KFeedbackWizard -DFEEDBACK_INCLUDE=\"<kfeedbackwizard.h>\""
|
|
|
|
|
|
|
|
|
|
|
|
LIB_KFEEDBACK='-lkfeedbackwizard'
|
|
|
|
LIB_KFEEDBACK='-lkfeedbackwizard'
|
|
|
|