Blame common/m4/glib-gettext.m4

Packit 971217
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
Packit 971217
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
Packit 971217
#
Packit 971217
# This file is free software, distributed under the terms of the GNU
Packit 971217
# General Public License.  As a special exception to the GNU General
Packit 971217
# Public License, this file may be distributed as part of a program
Packit 971217
# that contains a configuration script generated by Autoconf, under
Packit 971217
# the same distribution terms as the rest of that program.
Packit 971217
#
Packit 971217
# This file can be copied and used freely without restrictions.  It can
Packit 971217
# be used in projects which are not available under the GNU Public License
Packit 971217
# but which still want to provide support for the GNU gettext functionality.
Packit 971217
#
Packit 971217
# Macro to add for using GNU gettext.
Packit 971217
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
Packit 971217
#
Packit 971217
# Modified to never use included libintl.
Packit 971217
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
Packit 971217
#
Packit 971217
# Major rework to remove unused code
Packit 971217
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
Packit 971217
#
Packit 971217
# Added better handling of ALL_LINGUAS from GNU gettext version
Packit 971217
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
Packit 971217
#
Packit 971217
# Modified to require ngettext
Packit 971217
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
Packit 971217
#
Packit 971217
# We need this here as well, since someone might use autoconf-2.5x
Packit 971217
# to configure GLib then an older version to configure a package
Packit 971217
# using AM_GLIB_GNU_GETTEXT
Packit 971217
AC_PREREQ(2.53)
Packit 971217
Packit 971217
dnl
Packit 971217
dnl We go to great lengths to make sure that aclocal won't
Packit 971217
dnl try to pull in the installed version of these macros
Packit 971217
dnl when running aclocal in the glib directory.
Packit 971217
dnl
Packit 971217
m4_copy([AC_DEFUN],[glib_DEFUN])
Packit 971217
m4_copy([AC_REQUIRE],[glib_REQUIRE])
Packit 971217
dnl
Packit 971217
dnl At the end, if we're not within glib, we'll define the public
Packit 971217
dnl definitions in terms of our private definitions.
Packit 971217
dnl
Packit 971217
Packit 971217
# GLIB_LC_MESSAGES
Packit 971217
#--------------------
Packit 971217
glib_DEFUN([GLIB_LC_MESSAGES],
Packit 971217
  [AC_CHECK_HEADERS([locale.h])
Packit 971217
    if test $ac_cv_header_locale_h = yes; then
Packit 971217
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
Packit 971217
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
Packit 971217
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
Packit 971217
    if test $am_cv_val_LC_MESSAGES = yes; then
Packit 971217
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
Packit 971217
        [Define if your <locale.h> file defines LC_MESSAGES.])
Packit 971217
    fi
Packit 971217
  fi])
Packit 971217
Packit 971217
# GLIB_PATH_PROG_WITH_TEST
Packit 971217
#----------------------------
Packit 971217
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
Packit 971217
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
Packit 971217
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
Packit 971217
[# Extract the first word of "$2", so it can be a program name with args.
Packit 971217
set dummy $2; ac_word=[$]2
Packit 971217
AC_MSG_CHECKING([for $ac_word])
Packit 971217
AC_CACHE_VAL(ac_cv_path_$1,
Packit 971217
[case "[$]$1" in
Packit 971217
  /*)
Packit 971217
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
Packit 971217
  ;;
Packit 971217
  *)
Packit 971217
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
Packit 971217
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
Packit 971217
    test -z "$ac_dir" && ac_dir=.
Packit 971217
    if test -f $ac_dir/$ac_word; then
Packit 971217
      if [$3]; then
Packit 971217
	ac_cv_path_$1="$ac_dir/$ac_word"
Packit 971217
	break
Packit 971217
      fi
Packit 971217
    fi
Packit 971217
  done
Packit 971217
  IFS="$ac_save_ifs"
Packit 971217
dnl If no 4th arg is given, leave the cache variable unset,
Packit 971217
dnl so AC_PATH_PROGS will keep looking.
Packit 971217
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
Packit 971217
])dnl
Packit 971217
  ;;
Packit 971217
esac])dnl
Packit 971217
$1="$ac_cv_path_$1"
Packit 971217
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
Packit 971217
  AC_MSG_RESULT([$]$1)
Packit 971217
else
Packit 971217
  AC_MSG_RESULT(no)
Packit 971217
fi
Packit 971217
AC_SUBST($1)dnl
Packit 971217
])
Packit 971217
Packit 971217
# GLIB_WITH_NLS
Packit 971217
#-----------------
Packit 971217
glib_DEFUN([GLIB_WITH_NLS],
Packit 971217
  dnl NLS is obligatory
Packit 971217
  [USE_NLS=yes
Packit 971217
    AC_SUBST(USE_NLS)
Packit 971217
Packit 971217
    gt_cv_have_gettext=no
Packit 971217
Packit 971217
    CATOBJEXT=NONE
Packit 971217
    XGETTEXT=:
Packit 971217
    INTLLIBS=
Packit 971217
Packit 971217
    AC_CHECK_HEADER(libintl.h,
Packit 971217
     [gt_cv_func_dgettext_libintl="no"
Packit 971217
      libintl_extra_libs=""
Packit 971217
Packit 971217
      #
Packit 971217
      # First check in libc
Packit 971217
      #
Packit 971217
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
Packit 971217
        [AC_TRY_LINK([
Packit 971217
#include <libintl.h>
Packit 971217
],
Packit 971217
         [return !ngettext ("","", 1)],
Packit 971217
	  gt_cv_func_ngettext_libc=yes,
Packit 971217
          gt_cv_func_ngettext_libc=no)
Packit 971217
        ])
Packit 971217
Packit 971217
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit 971217
	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
Packit 971217
        	[AC_TRY_LINK([
Packit 971217
#include <libintl.h>
Packit 971217
],
Packit 971217
	          [return !dgettext ("","")],
Packit 971217
		  gt_cv_func_dgettext_libc=yes,
Packit 971217
	          gt_cv_func_dgettext_libc=no)
Packit 971217
        	])
Packit 971217
      fi
Packit 971217
Packit 971217
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit 971217
        AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit 971217
      fi
Packit 971217
Packit 971217
      #
Packit 971217
      # If we don't have everything we want, check in libintl
Packit 971217
      #
Packit 971217
      if test "$gt_cv_func_dgettext_libc" != "yes" \
Packit 971217
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
Packit 971217
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
Packit 971217
Packit 971217
        AC_CHECK_LIB(intl, bindtextdomain,
Packit 971217
	    [AC_CHECK_LIB(intl, ngettext,
Packit 971217
		    [AC_CHECK_LIB(intl, dgettext,
Packit 971217
			          gt_cv_func_dgettext_libintl=yes)])])
Packit 971217
Packit 971217
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
Packit 971217
	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
Packit 971217
	  AC_MSG_RESULT([])
Packit 971217
  	  AC_CHECK_LIB(intl, ngettext,
Packit 971217
          	[AC_CHECK_LIB(intl, dcgettext,
Packit 971217
		       [gt_cv_func_dgettext_libintl=yes
Packit 971217
			libintl_extra_libs=-liconv],
Packit 971217
			:,-liconv)],
Packit 971217
		:,-liconv)
Packit 971217
        fi
Packit 971217
Packit 971217
        #
Packit 971217
        # If we found libintl, then check in it for bind_textdomain_codeset();
Packit 971217
        # we'll prefer libc if neither have bind_textdomain_codeset(),
Packit 971217
        # and both have dgettext and ngettext
Packit 971217
        #
Packit 971217
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
Packit 971217
          glib_save_LIBS="$LIBS"
Packit 971217
          LIBS="$LIBS -lintl $libintl_extra_libs"
Packit 971217
          unset ac_cv_func_bind_textdomain_codeset
Packit 971217
          AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit 971217
          LIBS="$glib_save_LIBS"
Packit 971217
Packit 971217
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
Packit 971217
            gt_cv_func_dgettext_libc=no
Packit 971217
          else
Packit 971217
            if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit 971217
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
Packit 971217
              gt_cv_func_dgettext_libintl=no
Packit 971217
            fi
Packit 971217
          fi
Packit 971217
        fi
Packit 971217
      fi
Packit 971217
Packit 971217
      if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit 971217
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit 971217
        gt_cv_have_gettext=yes
Packit 971217
      fi
Packit 971217
Packit 971217
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit 971217
        INTLLIBS="-lintl $libintl_extra_libs"
Packit 971217
      fi
Packit 971217
Packit 971217
      if test "$gt_cv_have_gettext" = "yes"; then
Packit 971217
	AC_DEFINE(HAVE_GETTEXT,1,
Packit 971217
	  [Define if the GNU gettext() function is already present or preinstalled.])
Packit 971217
	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
Packit 971217
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
Packit 971217
	if test "$MSGFMT" != "no"; then
Packit 971217
          glib_save_LIBS="$LIBS"
Packit 971217
          LIBS="$LIBS $INTLLIBS"
Packit 971217
	  AC_CHECK_FUNCS(dcgettext)
Packit 971217
	  MSGFMT_OPTS=
Packit 971217
	  AC_MSG_CHECKING([if msgfmt accepts -c])
Packit 971217
	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
Packit 971217
msgid ""
Packit 971217
msgstr ""
Packit 971217
"Content-Type: text/plain; charset=UTF-8\n"
Packit 971217
"Project-Id-Version: test 1.0\n"
Packit 971217
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
Packit 971217
"Last-Translator: test <foo@bar.xx>\n"
Packit 971217
"Language-Team: C <LL@li.org>\n"
Packit 971217
"MIME-Version: 1.0\n"
Packit 971217
"Content-Transfer-Encoding: 8bit\n"
Packit 971217
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
Packit 971217
	  AC_SUBST(MSGFMT_OPTS)
Packit 971217
	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
Packit 971217
	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
Packit 971217
	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
Packit 971217
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
Packit 971217
			 return _nl_msg_cat_cntr],
Packit 971217
	    [CATOBJEXT=.gmo
Packit 971217
             DATADIRNAME=share],
Packit 971217
	    [case $host in
Packit 971217
	    *-*-solaris*)
Packit 971217
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
Packit 971217
	    dnl GNU format message catalog is always supported,
Packit 971217
            dnl since both are added to the libc all together.
Packit 971217
	    dnl Hence, we'd like to go with DATADIRNAME=share and
Packit 971217
	    dnl and CATOBJEXT=.gmo in this case.
Packit 971217
            AC_CHECK_FUNC(bind_textdomain_codeset,
Packit 971217
	      [CATOBJEXT=.gmo
Packit 971217
               DATADIRNAME=share],
Packit 971217
	      [CATOBJEXT=.mo
Packit 971217
               DATADIRNAME=lib])
Packit 971217
	    ;;
Packit 971217
	    *)
Packit 971217
	    CATOBJEXT=.mo
Packit 971217
            DATADIRNAME=lib
Packit 971217
	    ;;
Packit 971217
	    esac])
Packit 971217
          LIBS="$glib_save_LIBS"
Packit 971217
	  INSTOBJEXT=.mo
Packit 971217
	else
Packit 971217
	  gt_cv_have_gettext=no
Packit 971217
	fi
Packit 971217
      fi
Packit 971217
    ])
Packit 971217
Packit 971217
    if test "$gt_cv_have_gettext" = "yes" ; then
Packit 971217
      AC_DEFINE(ENABLE_NLS, 1,
Packit 971217
        [always defined to indicate that i18n is enabled])
Packit 971217
    fi
Packit 971217
Packit 971217
    dnl Test whether we really found GNU xgettext.
Packit 971217
    if test "$XGETTEXT" != ":"; then
Packit 971217
      dnl If it is not GNU xgettext we define it as : so that the
Packit 971217
      dnl Makefiles still can work.
Packit 971217
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
Packit 971217
        : ;
Packit 971217
      else
Packit 971217
        AC_MSG_RESULT(
Packit 971217
	  [found xgettext program is not GNU xgettext; ignore it])
Packit 971217
        XGETTEXT=":"
Packit 971217
      fi
Packit 971217
    fi
Packit 971217
Packit 971217
    # We need to process the po/ directory.
Packit 971217
    POSUB=po
Packit 971217
Packit 971217
    AC_OUTPUT_COMMANDS(
Packit 971217
      [case "$CONFIG_FILES" in *po/Makefile.in*)
Packit 971217
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
Packit 971217
      esac])
Packit 971217
Packit 971217
    dnl These rules are solely for the distribution goal.  While doing this
Packit 971217
    dnl we only have to keep exactly one list of the available catalogs
Packit 971217
    dnl in configure.in.
Packit 971217
    for lang in $ALL_LINGUAS; do
Packit 971217
      GMOFILES="$GMOFILES $lang.gmo"
Packit 971217
      POFILES="$POFILES $lang.po"
Packit 971217
    done
Packit 971217
Packit 971217
    dnl Make all variables we use known to autoconf.
Packit 971217
    AC_SUBST(CATALOGS)
Packit 971217
    AC_SUBST(CATOBJEXT)
Packit 971217
    AC_SUBST(DATADIRNAME)
Packit 971217
    AC_SUBST(GMOFILES)
Packit 971217
    AC_SUBST(INSTOBJEXT)
Packit 971217
    AC_SUBST(INTLLIBS)
Packit 971217
    AC_SUBST(PO_IN_DATADIR_TRUE)
Packit 971217
    AC_SUBST(PO_IN_DATADIR_FALSE)
Packit 971217
    AC_SUBST(POFILES)
Packit 971217
    AC_SUBST(POSUB)
Packit 971217
  ])
Packit 971217
Packit 971217
# AM_GLIB_GNU_GETTEXT
Packit 971217
# -------------------
Packit 971217
# Do checks necessary for use of gettext. If a suitable implementation
Packit 971217
# of gettext is found in either in libintl or in the C library,
Packit 971217
# it will set INTLLIBS to the libraries needed for use of gettext
Packit 971217
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
Packit 971217
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
Packit 971217
# on various variables needed by the Makefile.in.in installed by
Packit 971217
# glib-gettextize.
Packit 971217
dnl
Packit 971217
glib_DEFUN([GLIB_GNU_GETTEXT],
Packit 971217
  [AC_REQUIRE([AC_PROG_CC])dnl
Packit 971217
   AC_REQUIRE([AC_HEADER_STDC])dnl
Packit 971217
Packit 971217
   GLIB_LC_MESSAGES
Packit 971217
   GLIB_WITH_NLS
Packit 971217
Packit 971217
   if test "$gt_cv_have_gettext" = "yes"; then
Packit 971217
     if test "x$ALL_LINGUAS" = "x"; then
Packit 971217
       LINGUAS=
Packit 971217
     else
Packit 971217
       AC_MSG_CHECKING(for catalogs to be installed)
Packit 971217
       NEW_LINGUAS=
Packit 971217
       for presentlang in $ALL_LINGUAS; do
Packit 971217
         useit=no
Packit 971217
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
Packit 971217
           desiredlanguages="$LINGUAS"
Packit 971217
         else
Packit 971217
           desiredlanguages="$ALL_LINGUAS"
Packit 971217
         fi
Packit 971217
         for desiredlang in $desiredlanguages; do
Packit 971217
 	   # Use the presentlang catalog if desiredlang is
Packit 971217
           #   a. equal to presentlang, or
Packit 971217
           #   b. a variant of presentlang (because in this case,
Packit 971217
           #      presentlang can be used as a fallback for messages
Packit 971217
           #      which are not translated in the desiredlang catalog).
Packit 971217
           case "$desiredlang" in
Packit 971217
             "$presentlang"*) useit=yes;;
Packit 971217
           esac
Packit 971217
         done
Packit 971217
         if test $useit = yes; then
Packit 971217
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
Packit 971217
         fi
Packit 971217
       done
Packit 971217
       LINGUAS=$NEW_LINGUAS
Packit 971217
       AC_MSG_RESULT($LINGUAS)
Packit 971217
     fi
Packit 971217
Packit 971217
     dnl Construct list of names of catalog files to be constructed.
Packit 971217
     if test -n "$LINGUAS"; then
Packit 971217
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
Packit 971217
     fi
Packit 971217
   fi
Packit 971217
Packit 971217
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
Packit 971217
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
Packit 971217
   dnl Try to locate is.
Packit 971217
   MKINSTALLDIRS=
Packit 971217
   if test -n "$ac_aux_dir"; then
Packit 971217
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
Packit 971217
   fi
Packit 971217
   if test -z "$MKINSTALLDIRS"; then
Packit 971217
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
Packit 971217
   fi
Packit 971217
   AC_SUBST(MKINSTALLDIRS)
Packit 971217
Packit 971217
   dnl Generate list of files to be processed by xgettext which will
Packit 971217
   dnl be included in po/Makefile.
Packit 971217
   test -d po || mkdir po
Packit 971217
   if test "x$srcdir" != "x."; then
Packit 971217
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
Packit 971217
       posrcprefix="$srcdir/"
Packit 971217
     else
Packit 971217
       posrcprefix="../$srcdir/"
Packit 971217
     fi
Packit 971217
   else
Packit 971217
     posrcprefix="../"
Packit 971217
   fi
Packit 971217
   rm -f po/POTFILES
Packit 971217
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
Packit 971217
	< $srcdir/po/POTFILES.in > po/POTFILES
Packit 971217
  ])
Packit 971217
Packit 971217
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
Packit 971217
# -------------------------------
Packit 971217
# Define VARIABLE to the location where catalog files will
Packit 971217
# be installed by po/Makefile.
Packit 971217
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
Packit 971217
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
Packit 971217
glib_save_prefix="$prefix"
Packit 971217
glib_save_exec_prefix="$exec_prefix"
Packit 971217
glib_save_datarootdir="$datarootdir"
Packit 971217
test "x$prefix" = xNONE && prefix=$ac_default_prefix
Packit 971217
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
Packit 971217
datarootdir=`eval echo "${datarootdir}"`
Packit 971217
if test "x$CATOBJEXT" = "x.mo" ; then
Packit 971217
  localedir=`eval echo "${libdir}/locale"`
Packit 971217
else
Packit 971217
  localedir=`eval echo "${datadir}/locale"`
Packit 971217
fi
Packit 971217
prefix="$glib_save_prefix"
Packit 971217
exec_prefix="$glib_save_exec_prefix"
Packit 971217
datarootdir="$glib_save_datarootdir"
Packit 971217
AC_DEFINE_UNQUOTED($1, "$localedir",
Packit 971217
  [Define the location where the catalogs will be installed])
Packit 971217
])
Packit 971217
Packit 971217
dnl
Packit 971217
dnl Now the definitions that aclocal will find
Packit 971217
dnl
Packit 971217
ifdef(glib_configure_in,[],[
Packit 971217
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
Packit 971217
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
Packit 971217
])dnl
Packit 971217
Packit 971217
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
Packit 971217
#
Packit 971217
# Create a temporary file with TEST-FILE as its contents and pass the
Packit 971217
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
Packit 971217
# 0 and perform ACTION-IF-FAIL for any other exit status.
Packit 971217
AC_DEFUN([GLIB_RUN_PROG],
Packit 971217
[cat >conftest.foo <<_ACEOF
Packit 971217
$2
Packit 971217
_ACEOF
Packit 971217
if AC_RUN_LOG([$1 conftest.foo]); then
Packit 971217
  m4_ifval([$3], [$3], [:])
Packit 971217
m4_ifvaln([$4], [else $4])dnl
Packit 971217
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
Packit 971217
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
Packit 971217
fi])
Packit 971217