~ubuntu-branches/ubuntu/oneiric/gpe-expenses/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Neil Williams
  • Date: 2008-06-26 15:50:11 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080626155011-wkgm1x0fuwji835d
Tags: 0.1.6-1
* New upstream release
* [gpe-expenses] simplified chinese(zh_CN) translation of gpe-expenses
  (Closes: #479369)
* [libqofexpensesobjects0] simplified chinese(zh_CN) translation of
  qofexpensesobjects (Closes: #479370)
* [INTL:fr] French translation of gpe-expenses 
  (Closes: #480479)
* [INTL:fr] French translation of libqofexpensesobjects0 
  (Closes: #480482)
* [INTL:ru] Russian program translation of gpe-expenses 
  (Closes: #481386)
* [INTL:ru] Russian program translation of libqofexpensesobjects 
  (Closes: #481386)
* Upgrade intltool dependency and standards version
* Includes support for creating GPE categories (Closes: #479395)
* Expand debian/xcontrol for smoother cross-build support
* update debian/copyright after upstream inclusion of some gpe-
  contacts code

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
# Owen Taylor     1997-2001
406
406
 
407
407
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
408
 
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 
409
 
dnl gthread is specified in MODULES, pass to pkg-config
 
408
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
 
409
dnl gthread, or gio is specified in MODULES, pass to pkg-config
410
410
dnl
411
411
AC_DEFUN([AM_PATH_GLIB_2_0],
412
412
[dnl 
431
431
         gthread) 
432
432
             pkg_config_args="$pkg_config_args gthread-2.0"
433
433
         ;;
 
434
         gio*) 
 
435
             pkg_config_args="$pkg_config_args $module-2.0"
 
436
         ;;
434
437
      esac
435
438
  done
436
439
 
845
848
 
846
849
 
847
850
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
848
 
# serial 36 IT_PROG_INTLTOOL
 
851
# serial 40 IT_PROG_INTLTOOL
849
852
AC_DEFUN([IT_PROG_INTLTOOL],
850
853
[AC_PREREQ([2.50])dnl
851
854
 
861
864
    AC_MSG_CHECKING([for intltool >= $1])
862
865
 
863
866
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
864
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
865
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
867
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
868
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
866
869
    ]
867
870
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
868
871
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
869
872
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
870
873
fi
871
874
 
 
875
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
876
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
877
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
878
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
879
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
880
fi
 
881
 
872
882
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
873
883
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
874
884
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
923
933
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
924
934
fi
925
935
 
926
 
# Use the tools built into the package, not the ones that are installed.
927
 
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
928
 
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
929
 
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
930
 
 
931
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
936
AC_PATH_PROG(INTLTOOL_PERL, [perl])
932
937
if test -z "$INTLTOOL_PERL"; then
933
938
   AC_MSG_ERROR([perl not found; required for intltool])
934
939
fi
974
979
 
975
980
IT_PO_SUBDIR([po])
976
981
 
977
 
dnl The following is very similar to
978
 
dnl
979
 
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
980
 
dnl
981
 
dnl with the following slight differences:
982
 
dnl  - the *.in files are in ac_aux_dir,
983
 
dnl  - if the file haven't changed upon reconfigure, it's not touched,
984
 
dnl  - the evaluation of the third parameter enables a hack which computes
985
 
dnl    the actual value of $libdir,
986
 
dnl  - the user sees "executing intltool commands", instead of
987
 
dnl    "creating intltool-extract" and such.
988
 
dnl
989
 
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
990
 
dnl a reason for it.
991
 
 
992
 
AC_CONFIG_COMMANDS([intltool], [
993
 
 
994
 
for file in intltool-extract intltool-merge intltool-update; do
995
 
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
996
 
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
997
 
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
998
 
        < ${ac_aux_dir}/${file}.in > ${file}.out
999
 
  if cmp -s ${file} ${file}.out 2>/dev/null; then
1000
 
    rm -f ${file}.out
1001
 
  else
1002
 
    mv -f ${file}.out ${file}
1003
 
  fi
1004
 
  chmod ugo+x ${file}
1005
 
  chmod u+w ${file}
1006
 
done
1007
 
 
1008
 
],
1009
 
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
1010
 
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
1011
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
1012
 
 
1013
982
])
1014
983
 
1015
984
 
2064
2033
 
2065
2034
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2066
2035
 
2067
 
# serial 52 Debian 1.5.26-1 AC_PROG_LIBTOOL
 
2036
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
2068
2037
 
2069
2038
 
2070
2039
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)