~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_gettext.m4

Merged from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
AC_DEFUN([PANDORA_WITH_GETTEXT],[
13
13
 
 
14
  
14
15
  m4_syscmd([if test -d po ; then
15
16
    echo "# This file is auto-generated from configure. Do not edit directly" > po/POTFILES.in.stamp
16
 
    PACKAGE=`grep ^AC_INIT configure.ac | cut -f2-3 -d[ | cut -f1 -d]`
17
 
    for f in `find . | grep -v "${PACKAGE}-" | egrep '\.(cc|c|h|yy)$' | cut -c3- | sort`
 
17
    PACKAGE=$(grep ^AC_INIT configure.ac | cut -f2-3 -d[ | cut -f1 -d])
 
18
    for f in $(find . | grep -v "${PACKAGE}-" | egrep '\.(cc|c|h|yy)$' | cut -c3- | sort)
18
19
    do
19
20
      if grep gettext.h "$f" | grep include >/dev/null 2>&1
20
21
      then
29
30
    fi
30
31
  fi])
31
32
 
32
 
  AM_GNU_GETTEXT(external, need-formatstring-macros)
33
 
  AM_GNU_GETTEXT_VERSION([0.17])
34
 
  AS_IF([test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"],[
35
 
    AM_PATH_PROG_WITH_TEST(GMSGMERGE, gmsgmerge,
36
 
      [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
37
 
    MSGMERGE="${GMSGMERGE}"
 
33
  m4_if(m4_substr(m4_esyscmd(test -d po && echo 0),0,1),0, [
 
34
    AM_GNU_GETTEXT(external, need-formatstring-macros)
 
35
    AM_GNU_GETTEXT_VERSION([0.17])
 
36
    AS_IF([test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"],[
 
37
      AM_PATH_PROG_WITH_TEST([GMSGMERGE], gmsgmerge,
 
38
        [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
 
39
      MSGMERGE="${GMSGMERGE}"
 
40
    ])
 
41
    AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
38
42
  ])
39
 
  AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
40
43
 
41
44
])