~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_gettext.m4

Added code necessary for building plugins dynamically.
Merged in changes from lifeless to allow autoreconf to work.
Touching plugin.ini files now triggers a rebuid - so config/autorun.sh is no
longer required to be run after touching those.
Removed the duplicate plugin names - also removed the issue that getting them
different would silently fail weirdly later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
dnl   
 
4
dnl pandora-build: A pedantic build system
 
5
dnl Copyright (C) 2009 Sun Microsystems, Inc.
 
6
dnl This file is free software; Sun Microsystems
 
7
dnl gives unlimited permission to copy and/or distribute it,
 
8
dnl with or without modifications, as long as this notice is preserved.
 
9
dnl
 
10
dnl From Monty Taylor
 
11
 
 
12
AC_DEFUN([PANDORA_WITH_GETTEXT],[
 
13
 
 
14
  mkdir -p po
 
15
  echo "# This file is auto-generated from configure. Do not edit directly" > po/POTFILES.in.in
 
16
  # The grep -v '${PACKAGE}-' is to exclude any distcheck leftovers
 
17
  for f in `cd ${srcdir} ; find . | grep -v "${PACKAGE}-" | ${EGREP} '\.(cc|c|h|yy)$' | cut -c3- | sort`
 
18
    do
 
19
      if grep gettext.h "${srcdir}/$f" | grep include >/dev/null 2>&1
 
20
      then
 
21
        echo "$f" >> po/POTFILES.in.in
 
22
      fi
 
23
    done
 
24
    if diff po/POTFILES.in.in po/POTFILES.in >/dev/null 2>&1
 
25
    then
 
26
      rm po/POTFILES.in.in
 
27
    else
 
28
      mv po/POTFILES.in.in po/POTFILES.in
 
29
    fi
 
30
 
 
31
  AM_GNU_GETTEXT(external, need-formatstring-macros)
 
32
  AM_GNU_GETTEXT_VERSION([0.17])
 
33
  AS_IF([test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"],[
 
34
    AM_PATH_PROG_WITH_TEST(GMSGMERGE, gmsgmerge,
 
35
      [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
 
36
    MSGMERGE="${GMSGMERGE}"
 
37
  ])
 
38
  AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
 
39
 
 
40
])