components/quilt/patches/05-with-xgettext.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Tue, 22 Nov 2011 10:22:31 -0800
changeset 593 e7866b3e5de1
parent 327 b3a36ee93012
permissions -rw-r--r--
7112803 iperf -s -B does not work with multicast addresses anymore

From:    Dean Roehrich <[email protected]>
Subject: [Quilt-dev] [patch] allow --with-xgettext and --with-msgfmt
Date:    Wed, 05 Nov 2008 20:47:31 CST
To:      [email protected]

I needed to specify the GNU versions of xgettext and msgfmt on solaris,
and this was all I could think of to get me there.  Anyone have a better
way to do this?

Dean


Index: configure.ac
===================================================================
--- configure.ac.orig	2008-11-05 20:57:14.054642000 -0600
+++ configure.ac	2008-11-05 20:57:38.805910000 -0600
@@ -342,9 +342,35 @@ fi
 
 QUILT_COMPAT_PROG_PATH(SENDMAIL, sendmail, [], [/usr/sbin])
 
+XGETTEXT=xgettext
+AC_MSG_CHECKING(for xgettext)
+AC_ARG_WITH(xgettext, AC_HELP_STRING(
+  [--with-xgettext],
+  [name of the xgettext executable to use]),
+  [
+    XGETTEXT=$withval
+    ],[
+    AC_PATH_PROG(XGETTEXT, xgettext)
+  ]
+  )
+AC_MSG_RESULT($XGETTEXT)
+AC_SUBST(XGETTEXT)
+
+MSGFMT=msgfmt
+AC_MSG_CHECKING(for msgfmt)
+AC_ARG_WITH(msgfmt, AC_HELP_STRING(
+  [--with-msgfmt],
+  [name of the msgfmt executable to use]),
+  [
+    MSGFMT=$withval
+    ],[
+    AC_PATH_PROG(MSGFMT, msgfmt)
+  ]
+  )
+AC_MSG_RESULT($MSGFMT)
+AC_SUBST(MSGFMT)
+
 AC_PATH_PROG(MSGMERGE, [msgmerge])
-AC_PATH_PROG(MSGFMT, [msgfmt])
-AC_PATH_PROG(XGETTEXT, [xgettext])
 AC_PATH_PROG(MSGUNIQ, [msguniq])
 AC_PATH_PROG(MSGCAT, [msgcat])
 if test -n "$MSGFMT" -a -n "$MSGMERGE" -a -n "$XGETTEXT" -a -n "$MSGUNIQ" -a -n "$MSGCAT" ; then