Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
kmymoney
kmymoney.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kmymoney.diff of Package kmymoney
--- additional.m4 +++ additional.m4 @@ -0,0 +1,197 @@ +AC_DEFUN([AC_MEMORY_LEAK_CHECK], [ + AC_ARG_ENABLE( + leak-check, + AC_HELP_STRING([--enable-leak-check],[enable memory leak checker (default=yes)]), + use_memory_leak_check=$enableval, + use_memory_leak_check=$kde_use_debug_code) + + if test "x$use_memory_leak_check" != "xno"; then + CPPFLAGS="$CPPFLAGS -D_CHECK_MEMORY" + fi + if test "x$kde_use_debug_code" != "xno"; then + CPPFLAGS="$CPPFLAGS -DKMM_DEBUG=1" + else + CPPFLAGS="$CPPFLAGS -DKMM_DEBUG=0" + fi +]) + +dnl +dnl check the pdf generation option +dnl if enabled or disabled, directly controlled +dnl +AC_DEFUN([AC_PDF_GENERATION], [ + AC_MSG_CHECKING(if the PDF document generation is desired) + AC_ARG_ENABLE( pdf-docs, + [ --enable-pdf-docs enable generation of PDF documents (default=no)], + enable_pdfdocs="$enableval", + enable_pdfdocs="no") + AC_MSG_RESULT($enable_pdfdocs) + + AM_CONDITIONAL(GENERATE_PDF, test x$enable_pdfdocs == xyes) + + if test x$enable_pdfdocs == xyes; then + dnl html2ps and ps2pdf + AC_CHECK_PROG(found_html2ps, html2ps, yes, no) + AC_CHECK_PROG(found_ps2pdf, ps2pdf14, yes, no) + AC_CHECK_PROG(found_jade, jade, yes, no) + AC_CHECK_PROG(found_pdfjadetex, pdfjadetex, yes, no) + fi + + AM_CONDITIONAL(HAVE_HTMLCONVERSIONTOOLS, test x$enable_pdfdocs == xyes -a x$found_ps2pdf = xyes -a x$found_html2ps == xyes) + AM_CONDITIONAL(HAVE_DSSSLCONVERSIONTOOLS, test x$enable_pdfdocs == xyes -a x$found_jade = xyes -a x$found_pdfjadetex == xyes) +]) + +AC_DEFUN([AC_KBANKING], [ +dnl searches for kbanking +dnl Arguments: +dnl $1: major version minimum +dnl $2: minor version minimum +dnl $3: patchlevel version minimum +dnl $4: build version minimum +dnl Returns: kbanking_dir +dnl kbanking_libs +dnl kbanking_data +dnl kbanking_includes +dnl have_kbanking +dnl kbanking_plugin + +if test -z "$1"; then vma="0"; else vma="$1"; fi +if test -z "$2"; then vmi="1"; else vmi="$2"; fi +if test -z "$3"; then vpl="0"; else vpl="$3"; fi +if test -z "$4"; then vbld="0"; else vbld="$4"; fi + +AC_MSG_CHECKING(if kbanking support desired) +AC_ARG_ENABLE(kbanking, + [ --enable-kbanking enable kbanking support (default=disabled)], + enable_kbanking="$enableval", + enable_kbanking="no") +AC_MSG_RESULT($enable_kbanking) + +have_kbanking="no" +kbanking_dir="" +kbanking_data="" +kbanking_libs="" +kbanking_includes="" +kbanking_plugin="" +if test "$enable_kbanking" != "no"; then + AC_MSG_CHECKING(for kbanking) + AC_ARG_WITH(kbanking-dir, [ --with-kbanking-dir=DIR + uses kbanking from given dir], + [lcc_dir="$withval"], + [lcc_dir="${prefix} \ + /usr/local \ + /usr \ + /"]) + + for li in $lcc_dir; do + if test -x "$li/bin/kbanking-config"; then + kbanking_dir="$li"; + break + fi + done + if test -z "$kbanking_dir"; then + AC_MSG_RESULT([not found ]) + have_kbanking="no" + else + AC_MSG_RESULT($kbanking_dir) + AC_MSG_CHECKING(for kbanking libs) + kbanking_libs="`$kbanking_dir/bin/kbanking-config --libraries`" + AC_MSG_RESULT($kbanking_libs) + AC_MSG_CHECKING(for kbanking includes) + kbanking_includes="`$kbanking_dir/bin/kbanking-config --includes`" + AC_MSG_RESULT($kbanking_includes) + AC_MSG_CHECKING(for kbanking data) + kbanking_data="`$kbanking_dir/bin/kbanking-config --data`" + AC_MSG_RESULT($kbanking_data) + + AC_MSG_CHECKING(if kbanking test desired) + AC_ARG_ENABLE(kbanking, + [ --enable-kbanking-test enable kbanking-test (default=yes)], + enable_kbanking_test="$enableval", + enable_kbanking_test="yes") + AC_MSG_RESULT($enable_kbanking_test) + AC_MSG_CHECKING(for KBanking version >=$vma.$vmi.$vpl.$vbld) + if test "$enable_kbanking_test" != "no"; then + kbanking_versionstring="`$kbanking_dir/bin/kbanking-config --vstring`.`$kbanking_dir/bin/kbanking-config --vbuild`" + AC_MSG_RESULT([found $kbanking_versionstring]) + if test "$vma" -gt "`$kbanking_dir/bin/kbanking-config --vmajor`"; then + AC_MSG_ERROR([Your KBanking version is way too old. + Please update from http://www.aquamaniac.de/kbanking/]) + elif test "$vma" = "`$kbanking_dir/bin/kbanking-config --vmajor`"; then + if test "$vmi" -gt "`$kbanking_dir/bin/kbanking-config --vminor`"; then + AC_MSG_ERROR([Your KBanking version is too old. + Please update from http://www.aquamaniac.de/kbanking/]) + elif test "$vmi" = "`$kbanking_dir/bin/kbanking-config --vminor`"; then + if test "$vpl" -gt "`$kbanking_dir/bin/kbanking-config --vpatchlevel`"; then + AC_MSG_ERROR([Your KBanking version is a little bit too old. + Please update from http://www.aquamaniac.de/kbanking/]) + elif test "$vpl" = "`$kbanking_dir/bin/kbanking-config --vpatchlevel`"; then + if test "$vbld" -gt "`$kbanking_dir/bin/kbanking-config --vbuild`"; then + AC_MSG_ERROR([Your KBanking version is a little bit too old. + Please update to the latest CVS version. Instructions for accessing + CVS can be found on http://www.aquamaniac.de/kbanking/]) + fi + fi + fi + fi + have_kbanking="yes" + kbanking_plugin="kbanking" + #AC_MSG_RESULT(yes) + AC_DEFINE_UNQUOTED(HAVE_KBANKING, 1, [Defines if your system has the kbanking package]) + else + have_kbanking="yes" + kbanking_plugin="kbanking" + AC_MSG_RESULT(assuming yes) + AC_DEFINE_UNQUOTED(HAVE_KBANKING, 1, [Defines if your system has the kbanking package]) + fi + fi +dnl end of "if enable-kbanking" +fi + +AC_SUBST(kbanking_dir) +AC_SUBST(kbanking_libs) +AC_SUBST(kbanking_data) +AC_SUBST(kbanking_includes) +AC_SUBST(kbanking_plugin) +]) +AC_DEFUN([AC_LIBOFX], +[ +AC_MSG_CHECKING(if the OFX importer plugin is desired) +AC_ARG_ENABLE(ofxplugin, + [ --enable-ofxplugin enable OFX support (default=yes)], + enable_ofxplugin="$enableval", + enable_ofxplugin="yes") +AC_MSG_RESULT($enable_ofxplugin) + +AC_MSG_CHECKING(if OFX direct connect is desired) +AC_ARG_ENABLE(ofxbanking, + [ --enable-ofxbanking enable OFX direct connect (default=no)], + enable_ofxbanking="$enableval", + enable_ofxbanking="no") +AC_MSG_RESULT($enable_ofxbanking) + +ofx_libs="" +ofx_importerplugin="" + +if test "$enable_ofxplugin" != "no"; then + AC_CHECK_HEADER([OpenSP/macros.h], [ + AC_CHECK_LIB(ofx, libofx_proc_file,[have_new_ofx="yes"], [have_new_ofx="no"]) + if test "$have_new_ofx" == "yes"; then + ofx_importerplugin="ofximport" + ofx_libs="-lofx" + fi + ], [], []) +fi + +if test "$enable_ofxbanking" != "no"; then + AC_CHECK_HEADER([OpenSP/macros.h], [ + AC_CHECK_LIB(ofx, libofx_proc_file,[have_new_ofx="yes"], [have_new_ofx="no"]) + if test "$have_new_ofx" == "yes"; then + AC_DEFINE_UNQUOTED(USE_OFX_DIRECTCONNECT, "1", [whether to use OFX directconnect]) + LIBS="-lofx $LIBS" + fi + ], [], []) +fi +AC_SUBST(ofx_libs) +AC_SUBST(ofx_importerplugin) +]) --- kde.m4 +++ kde.m4 @@ -0,0 +1,21 @@ +dnl +dnl AM_KDE_MIN_VERSION(MIN-VERSION-MAJOR, MIN-VERSION-MINOR, MIN-VERSION-MICRO) +dnl +AC_DEFUN([AM_KDE_MIN_VERSION], +[ + AC_MSG_CHECKING([if minimum KDE version is available]) + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + save_CXXFLAGS=$CXXFLAGS + CXXFLAGS="$CXXFLAGS -I$srcdir $all_includes" + AC_TRY_COMPILE([ + #include "kdecompat.h" + #if !( KDE_IS_VERSION( $1, $2, $3 ) ) + #error KDE version does not meet KMyMoney minimum requirement + #endif + ], [], AC_MSG_RESULT(yes), AC_MSG_ERROR(no) + ) + CXXFLAGS=$save_CXXFLAGS + AC_LANG_RESTORE +]) + --- Makefile.am +++ Makefile.am @@ -23,7 +23,7 @@ ADDITIONAL_CHECKS=`ls *.m4 | grep -v acinclude\.m4 | grep -v aclocal\.m4` -$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in +$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in additional.m4 sqlite.m4 kde.m4 qtdesigner.m4 $(top_srcdir)/admin/libtool.m4.in @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4 @for i in $(ADDITIONAL_CHECKS); do \ cat $$i >> acinclude.m4; \ --- qtdesigner.m4 +++ qtdesigner.m4 @@ -0,0 +1,18 @@ +dnl Macro to check for KDChart include and library files +dnl Availability of KDChart defaults to 'no' + +AC_DEFUN([AC_QTDESIGNER_SUPPORT], +[ +AC_MSG_CHECKING([if library for Qt-Designer widgets should be installed]) +AC_ARG_ENABLE(qtdesigner, + AC_HELP_STRING([--enable-qtdesigner],[Install KMyMoney specific widget library for Qt-Designer (default=no)]), + [ + enable_qtdesigner="$enableval" + AC_MSG_RESULT($enable_qtdesigner) + ], + [ + enable_qtdesigner="no" + AC_MSG_RESULT($enable_qtdesigner) + ]) + AM_CONDITIONAL(INSTALL_QTDESIGNER_SUPPORT, test "$enable_qtdesigner" = "yes") +]) --- sqlite.m4 +++ sqlite.m4 @@ -0,0 +1,144 @@ +# sqlite3.m4 +# ---------- +# +# Copyright 2008 by Thomas Baumgart +# +# License: See file COPYING +# +# Checks for the necessity to build our own qt-sqlite3 support library +# and the presence of the sqlite3 development headers. +# +# Supports the following options: +# +# --enable-sqlite3 +# --disable-sqlite3 +# +# If none of them is present, the detection is automatic. If the development +# headers are not found for automatic detection, the generation will be +# disabled w/o error. If --enable-sqlite3 is provided in the same stage, +# an error is given if the sqlite3 development files are not installed. +# +# The following variables are provided via AC_SUBST: +# +# SQLITE3 - contains the subdirectory to visit for compilation +# LIBSQLITE3 - contains the full pathname for the Qt plugin driver + + +AC_DEFUN([AC_SQLITE3], [ + AC_MSG_CHECKING(if the SQLITE3 support is desired) + AC_ARG_ENABLE(sqlite3, + AC_HELP_STRING([--enable-sqlite3],[build SQLITE3 support library (default=auto)]), + enable_sqlite3="$enableval", + enable_sqlite3="auto") + AC_MSG_RESULT($enable_sqlite3) + + if test ! $enable_sqlite3 = no; then + # determine name and path of sqlite3 plugin library + qtlib="" + if test ! "lib${kdelibsuff}" = "lib"; then + qtlib=".lib64" + fi + if test x$QTDIR = x; then + QTDIR=`dirname $MOC` + QTDIR=${QTDIR%/bin} + fi + LIBSQLITE3=${QTDIR}/plugins/sqldrivers/libsqlite3${qtlib}.so + + # do the checks + if test $enable_sqlite3 = auto; then + AC_MSG_CHECKING(if the SQLITE3 support is already present) + if test ! -e ${LIBSQLITE3}; then + result=no + else + # add check for local qt-sqlite3 directory here + result=yes + enable_sqlite3=no + # in case a previous run unpacked the SQLITE3 support stuff + # it is pretty sure that we have build the existing support + # if that's the case, we just enable it again + if test -d qt-sqlite3-0.2; then + enable_sqlite3=auto + fi + fi + AC_MSG_RESULT($result) + fi + + # we only need to check for the headers in case we need to build + if test ! $enable_sqlite3 = no; then + # now check for the presence of SQLITE libraries + AC_CHECK_HEADER([sqlite3.h], [enable_sqlite3=yes], + [ + if test $enable_sqlite3 = auto; then + enable_sqlite3=no + else + AC_MSG_ERROR(SQLITE development files not found) + fi + ]) + fi + fi + + if test $enable_sqlite3 = yes; then + AC_MSG_CHECKING(if the environment variable QTDIR is set) + if test x$QTDIR = x; then + AC_MSG_ERROR(QTDIR not set) + fi + AC_MSG_RESULT($QTDIR) + ac_qmake=${QTDIR}/bin/qmake + AC_ARG_WITH(qmake, + AC_HELP_STRING([--with-qmake=PATH],[which version of QMake to use ]), + [ ac_qmake="$withval" ]) + fi + + if test $enable_sqlite3 = yes; then + rm -rf qt-sqlite3-0.2 + gunzip -c `dirname -- ${0}`/23011-qt-sqlite3-0.2.tar.gz | tar -xf - + cd qt-sqlite3-0.2 + ${ac_qmake} QMAKE=${ac_qmake} + SQLITE3=qt-sqlite3-0.2 + sed -i s/^install:.*$// Makefile + sed -i s/^uninstall:.*$// Makefile + # create the targets required for 'make distcheck' and 'make [un]install' + cat >> Makefile <<EOF +dvi: + +check: + +installcheck: + +distuninstallcheck: + +dist: + +distcleancheck: + +# for installation and de-installation we need to take care +# of the _inst case which is caused by running 'make distcheck' +install: + if test ! x$SQLITE3 = x; then \ + if test "x\$(DESTDIR)" = "x" -a "${prefix:0-5}" = "_inst"; then \ + /bin/sh ../$ac_aux_dir/mkinstalldirs \`dirname ${prefix}${LIBSQLITE3}\`; \ + ${INSTALL} sqldrivers/libqsqlite3.so ${prefix}${LIBSQLITE3}; \ + chmod 755 ${prefix}${LIBSQLITE3}; \ + else \ + /bin/sh ../$ac_aux_dir/mkinstalldirs \`dirname \$(DESTDIR)${LIBSQLITE3}\`; \ + ${INSTALL} sqldrivers/libqsqlite3.so \$(DESTDIR)${LIBSQLITE3}; \ + chmod 755 \$(DESTDIR)${LIBSQLITE3}; \ + fi \ + fi + +uninstall: + if test ! x$SQLITE3 = x; then \ + if test "x\$(DESTDIR)" = "x" -a "${prefix:0-5}" = "_inst"; then \ + rm -rf ${prefix}${LIBSQLITE3}; \ + else \ + rm -rf \$(DESTDIR)${LIBSQLITE3}; \ + fi \ + fi + +EOF + + cd .. + AC_SUBST(SQLITE3) + AC_SUBST(LIBSQLITE3) + fi +])
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor