1.1 --- a/aclocal.m4 Thu Aug 23 12:34:43 2007 +0000
1.2 +++ b/aclocal.m4 Fri Jan 25 05:52:51 2008 +0000
1.3 @@ -1006,6 +1006,38 @@
1.5 AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1.7 +# Figure out how to run the assembler. -*- Autoconf -*-
1.11 +# Copyright 2001 Free Software Foundation, Inc.
1.13 +# This program is free software; you can redistribute it and/or modify
1.14 +# it under the terms of the GNU General Public License as published by
1.15 +# the Free Software Foundation; either version 2, or (at your option)
1.16 +# any later version.
1.18 +# This program is distributed in the hope that it will be useful,
1.19 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 +# GNU General Public License for more details.
1.23 +# You should have received a copy of the GNU General Public License
1.24 +# along with this program; if not, write to the Free Software
1.25 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1.30 +AC_DEFUN([AM_PROG_AS],
1.31 +[# By default we simply use the C compiler to build assembly code.
1.32 +AC_REQUIRE([AC_PROG_CC])
1.34 +# Set ASFLAGS if not already set.
1.35 +: ${CCASFLAGS='$(CFLAGS)'}
1.37 +AC_SUBST(CCASFLAGS)])
1.39 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1.41 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1.42 @@ -1144,7 +1176,8 @@
1.47 + [AC_MSG_RESULT([no])
1.49 elif test $pkg_failed = untried; then
1.50 ifelse([$4], , [AC_MSG_FAILURE(dnl
1.51 [The pkg-config script could not be found or is too old. Make sure it
1.52 @@ -1266,7 +1299,8 @@
1.54 glib_DEFUN([GLIB_WITH_NLS],
1.55 dnl NLS is obligatory
1.57 + [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1.61 gt_cv_have_gettext=no
1.62 @@ -1370,6 +1404,20 @@
1.63 glib_save_LIBS="$LIBS"
1.64 LIBS="$LIBS $INTLLIBS"
1.65 AC_CHECK_FUNCS(dcgettext)
1.67 + AC_MSG_CHECKING([if msgfmt accepts -c])
1.68 + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1.71 +"Content-Type: text/plain; charset=UTF-8\n"
1.72 +"Project-Id-Version: test 1.0\n"
1.73 +"PO-Revision-Date: 2007-02-15 12:01+0100\n"
1.74 +"Last-Translator: test <foo@bar.xx>\n"
1.75 +"Language-Team: C <LL@li.org>\n"
1.76 +"MIME-Version: 1.0\n"
1.77 +"Content-Transfer-Encoding: 8bit\n"
1.78 +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
1.79 + AC_SUBST(MSGFMT_OPTS)
1.80 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1.81 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1.82 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1.83 @@ -1541,8 +1589,10 @@
1.84 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1.85 glib_save_prefix="$prefix"
1.86 glib_save_exec_prefix="$exec_prefix"
1.87 +glib_save_datarootdir="$datarootdir"
1.88 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1.89 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1.90 +datarootdir=`eval echo "${datarootdir}"`
1.91 if test "x$CATOBJEXT" = "x.mo" ; then
1.92 localedir=`eval echo "${libdir}/locale"`
1.94 @@ -1550,6 +1600,7 @@
1.96 prefix="$glib_save_prefix"
1.97 exec_prefix="$glib_save_exec_prefix"
1.98 +datarootdir="$glib_save_datarootdir"
1.99 AC_DEFINE_UNQUOTED($1, "$localedir",
1.100 [Define the location where the catalogs will be installed])
1.102 @@ -1562,3 +1613,20 @@
1.103 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
1.106 +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
1.108 +# Create a temporary file with TEST-FILE as its contents and pass the
1.109 +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
1.110 +# 0 and perform ACTION-IF-FAIL for any other exit status.
1.111 +AC_DEFUN([GLIB_RUN_PROG],
1.112 +[cat >conftest.foo <<_ACEOF
1.115 +if AC_RUN_LOG([$1 conftest.foo]); then
1.116 + m4_ifval([$3], [$3], [:])
1.117 +m4_ifvaln([$4], [else $4])dnl
1.118 +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
1.119 +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD