Blame aclocal.m4

Packit bc1512
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit bc1512
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
Packit bc1512
# Inc.
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# This program is distributed in the hope that it will be useful,
Packit bc1512
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit bc1512
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit bc1512
# PARTICULAR PURPOSE.
Packit bc1512
Packit bc1512
m4_ifndef([AC_AUTOCONF_VERSION],
Packit bc1512
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit bc1512
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
Packit bc1512
[m4_warning([this file was generated for autoconf 2.68.
Packit bc1512
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit bc1512
If you have problems, you may need to regenerate the build system entirely.
Packit bc1512
To do so, use the procedure documented by the package, typically `autoreconf'.])])
Packit bc1512
Packit bc1512
# Configure paths for GLIB
Packit bc1512
# Owen Taylor     1997-2001
Packit bc1512
Packit bc1512
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
Packit bc1512
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
Packit bc1512
dnl gthread, or gio is specified in MODULES, pass to pkg-config
Packit bc1512
dnl
Packit bc1512
AC_DEFUN([AM_PATH_GLIB_2_0],
Packit bc1512
[dnl 
Packit bc1512
dnl Get the cflags and libraries from pkg-config
Packit bc1512
dnl
Packit bc1512
AC_ARG_ENABLE(glibtest, [  --disable-glibtest      do not try to compile and run a test GLIB program],
Packit bc1512
		    , enable_glibtest=yes)
Packit bc1512
Packit bc1512
  pkg_config_args=glib-2.0
Packit bc1512
  for module in . $4
Packit bc1512
  do
Packit bc1512
      case "$module" in
Packit bc1512
         gmodule) 
Packit bc1512
             pkg_config_args="$pkg_config_args gmodule-2.0"
Packit bc1512
         ;;
Packit bc1512
         gmodule-no-export) 
Packit bc1512
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
Packit bc1512
         ;;
Packit bc1512
         gobject) 
Packit bc1512
             pkg_config_args="$pkg_config_args gobject-2.0"
Packit bc1512
         ;;
Packit bc1512
         gthread) 
Packit bc1512
             pkg_config_args="$pkg_config_args gthread-2.0"
Packit bc1512
         ;;
Packit bc1512
         gio*) 
Packit bc1512
             pkg_config_args="$pkg_config_args $module-2.0"
Packit bc1512
         ;;
Packit bc1512
      esac
Packit bc1512
  done
Packit bc1512
Packit bc1512
  PKG_PROG_PKG_CONFIG([0.16])
Packit bc1512
Packit bc1512
  no_glib=""
Packit bc1512
Packit bc1512
  if test "x$PKG_CONFIG" = x ; then
Packit bc1512
    no_glib=yes
Packit bc1512
    PKG_CONFIG=no
Packit bc1512
  fi
Packit bc1512
Packit bc1512
  min_glib_version=ifelse([$1], ,2.0.0,$1)
Packit bc1512
  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
Packit bc1512
Packit bc1512
  if test x$PKG_CONFIG != xno ; then
Packit bc1512
    ## don't try to run the test against uninstalled libtool libs
Packit bc1512
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
Packit bc1512
	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
Packit bc1512
	  enable_glibtest=no
Packit bc1512
    fi
Packit bc1512
Packit bc1512
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
Packit bc1512
	  :
Packit bc1512
    else
Packit bc1512
	  no_glib=yes
Packit bc1512
    fi
Packit bc1512
  fi
Packit bc1512
Packit bc1512
  if test x"$no_glib" = x ; then
Packit bc1512
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
Packit bc1512
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
Packit bc1512
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
Packit bc1512
Packit bc1512
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
Packit bc1512
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
Packit bc1512
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit bc1512
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
Packit bc1512
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit bc1512
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
Packit bc1512
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
Packit bc1512
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
Packit bc1512
    if test "x$enable_glibtest" = "xyes" ; then
Packit bc1512
      ac_save_CFLAGS="$CFLAGS"
Packit bc1512
      ac_save_LIBS="$LIBS"
Packit bc1512
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
Packit bc1512
      LIBS="$GLIB_LIBS $LIBS"
Packit bc1512
dnl
Packit bc1512
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
Packit bc1512
dnl checks the results of pkg-config to some extent)
Packit bc1512
dnl
Packit bc1512
      rm -f conf.glibtest
Packit bc1512
      AC_TRY_RUN([
Packit bc1512
#include <glib.h>
Packit bc1512
#include <stdio.h>
Packit bc1512
#include <stdlib.h>
Packit bc1512
Packit bc1512
int 
Packit bc1512
main ()
Packit bc1512
{
Packit bc1512
  unsigned int major, minor, micro;
Packit bc1512
  char *tmp_version;
Packit bc1512
Packit bc1512
  fclose (fopen ("conf.glibtest", "w"));
Packit bc1512
Packit bc1512
  /* HP/UX 9 (%@#!) writes to sscanf strings */
Packit bc1512
  tmp_version = g_strdup("$min_glib_version");
Packit bc1512
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
Packit bc1512
     printf("%s, bad version string\n", "$min_glib_version");
Packit bc1512
     exit(1);
Packit bc1512
   }
Packit bc1512
Packit bc1512
  if ((glib_major_version != $glib_config_major_version) ||
Packit bc1512
      (glib_minor_version != $glib_config_minor_version) ||
Packit bc1512
      (glib_micro_version != $glib_config_micro_version))
Packit bc1512
    {
Packit bc1512
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
Packit bc1512
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
Packit bc1512
             glib_major_version, glib_minor_version, glib_micro_version);
Packit bc1512
      printf ("*** was found! If pkg-config was correct, then it is best\n");
Packit bc1512
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
Packit bc1512
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
Packit bc1512
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
Packit bc1512
      printf("*** required on your system.\n");
Packit bc1512
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
Packit bc1512
      printf("*** to point to the correct configuration files\n");
Packit bc1512
    } 
Packit bc1512
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
Packit bc1512
	   (glib_minor_version != GLIB_MINOR_VERSION) ||
Packit bc1512
           (glib_micro_version != GLIB_MICRO_VERSION))
Packit bc1512
    {
Packit bc1512
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
Packit bc1512
	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
Packit bc1512
      printf("*** library (version %d.%d.%d)\n",
Packit bc1512
	     glib_major_version, glib_minor_version, glib_micro_version);
Packit bc1512
    }
Packit bc1512
  else
Packit bc1512
    {
Packit bc1512
      if ((glib_major_version > major) ||
Packit bc1512
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
Packit bc1512
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
Packit bc1512
      {
Packit bc1512
        return 0;
Packit bc1512
       }
Packit bc1512
     else
Packit bc1512
      {
Packit bc1512
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
Packit bc1512
               glib_major_version, glib_minor_version, glib_micro_version);
Packit bc1512
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
Packit bc1512
	       major, minor, micro);
Packit bc1512
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
Packit bc1512
        printf("***\n");
Packit bc1512
        printf("*** If you have already installed a sufficiently new version, this error\n");
Packit bc1512
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
Packit bc1512
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
Packit bc1512
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
Packit bc1512
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
Packit bc1512
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
Packit bc1512
        printf("*** so that the correct libraries are found at run-time))\n");
Packit bc1512
      }
Packit bc1512
    }
Packit bc1512
  return 1;
Packit bc1512
}
Packit bc1512
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
Packit bc1512
       CFLAGS="$ac_save_CFLAGS"
Packit bc1512
       LIBS="$ac_save_LIBS"
Packit bc1512
     fi
Packit bc1512
  fi
Packit bc1512
  if test "x$no_glib" = x ; then
Packit bc1512
     AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
Packit bc1512
     ifelse([$2], , :, [$2])     
Packit bc1512
  else
Packit bc1512
     AC_MSG_RESULT(no)
Packit bc1512
     if test "$PKG_CONFIG" = "no" ; then
Packit bc1512
       echo "*** A new enough version of pkg-config was not found."
Packit bc1512
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
Packit bc1512
     else
Packit bc1512
       if test -f conf.glibtest ; then
Packit bc1512
        :
Packit bc1512
       else
Packit bc1512
          echo "*** Could not run GLIB test program, checking why..."
Packit bc1512
          ac_save_CFLAGS="$CFLAGS"
Packit bc1512
          ac_save_LIBS="$LIBS"
Packit bc1512
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
Packit bc1512
          LIBS="$LIBS $GLIB_LIBS"
Packit bc1512
          AC_TRY_LINK([
Packit bc1512
#include <glib.h>
Packit bc1512
#include <stdio.h>
Packit bc1512
],      [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
Packit bc1512
        [ echo "*** The test program compiled, but did not run. This usually means"
Packit bc1512
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
Packit bc1512
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
Packit bc1512
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
Packit bc1512
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
Packit bc1512
          echo "*** is required on your system"
Packit bc1512
	  echo "***"
Packit bc1512
          echo "*** If you have an old version installed, it is best to remove it, although"
Packit bc1512
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
Packit bc1512
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
Packit bc1512
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
Packit bc1512
          CFLAGS="$ac_save_CFLAGS"
Packit bc1512
          LIBS="$ac_save_LIBS"
Packit bc1512
       fi
Packit bc1512
     fi
Packit bc1512
     GLIB_CFLAGS=""
Packit bc1512
     GLIB_LIBS=""
Packit bc1512
     GLIB_GENMARSHAL=""
Packit bc1512
     GOBJECT_QUERY=""
Packit bc1512
     GLIB_MKENUMS=""
Packit bc1512
     ifelse([$3], , :, [$3])
Packit bc1512
  fi
Packit bc1512
  AC_SUBST(GLIB_CFLAGS)
Packit bc1512
  AC_SUBST(GLIB_LIBS)
Packit bc1512
  AC_SUBST(GLIB_GENMARSHAL)
Packit bc1512
  AC_SUBST(GOBJECT_QUERY)
Packit bc1512
  AC_SUBST(GLIB_MKENUMS)
Packit bc1512
  rm -f conf.glibtest
Packit bc1512
])
Packit bc1512
Packit bc1512
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
Packit bc1512
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software, distributed under the terms of the GNU
Packit bc1512
# General Public License.  As a special exception to the GNU General
Packit bc1512
# Public License, this file may be distributed as part of a program
Packit bc1512
# that contains a configuration script generated by Autoconf, under
Packit bc1512
# the same distribution terms as the rest of that program.
Packit bc1512
#
Packit bc1512
# This file can be copied and used freely without restrictions.  It can
Packit bc1512
# be used in projects which are not available under the GNU Public License
Packit bc1512
# but which still want to provide support for the GNU gettext functionality.
Packit bc1512
#
Packit bc1512
# Macro to add for using GNU gettext.
Packit bc1512
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
Packit bc1512
#
Packit bc1512
# Modified to never use included libintl. 
Packit bc1512
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
Packit bc1512
#
Packit bc1512
# Major rework to remove unused code
Packit bc1512
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
Packit bc1512
#
Packit bc1512
# Added better handling of ALL_LINGUAS from GNU gettext version 
Packit bc1512
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
Packit bc1512
#
Packit bc1512
# Modified to require ngettext
Packit bc1512
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
Packit bc1512
#
Packit bc1512
# We need this here as well, since someone might use autoconf-2.5x
Packit bc1512
# to configure GLib then an older version to configure a package
Packit bc1512
# using AM_GLIB_GNU_GETTEXT
Packit bc1512
AC_PREREQ(2.53)
Packit bc1512
Packit bc1512
dnl
Packit bc1512
dnl We go to great lengths to make sure that aclocal won't 
Packit bc1512
dnl try to pull in the installed version of these macros
Packit bc1512
dnl when running aclocal in the glib directory.
Packit bc1512
dnl
Packit bc1512
m4_copy([AC_DEFUN],[glib_DEFUN])
Packit bc1512
m4_copy([AC_REQUIRE],[glib_REQUIRE])
Packit bc1512
dnl
Packit bc1512
dnl At the end, if we're not within glib, we'll define the public
Packit bc1512
dnl definitions in terms of our private definitions.
Packit bc1512
dnl
Packit bc1512
Packit bc1512
# GLIB_LC_MESSAGES
Packit bc1512
#--------------------
Packit bc1512
glib_DEFUN([GLIB_LC_MESSAGES],
Packit bc1512
  [AC_CHECK_HEADERS([locale.h])
Packit bc1512
    if test $ac_cv_header_locale_h = yes; then
Packit bc1512
    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
Packit bc1512
      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
Packit bc1512
       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
Packit bc1512
    if test $am_cv_val_LC_MESSAGES = yes; then
Packit bc1512
      AC_DEFINE(HAVE_LC_MESSAGES, 1,
Packit bc1512
        [Define if your <locale.h> file defines LC_MESSAGES.])
Packit bc1512
    fi
Packit bc1512
  fi])
Packit bc1512
Packit bc1512
# GLIB_PATH_PROG_WITH_TEST
Packit bc1512
#----------------------------
Packit bc1512
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
Packit bc1512
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
Packit bc1512
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
Packit bc1512
[# Extract the first word of "$2", so it can be a program name with args.
Packit bc1512
set dummy $2; ac_word=[$]2
Packit bc1512
AC_MSG_CHECKING([for $ac_word])
Packit bc1512
AC_CACHE_VAL(ac_cv_path_$1,
Packit bc1512
[case "[$]$1" in
Packit bc1512
  /*)
Packit bc1512
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
Packit bc1512
  ;;
Packit bc1512
  *)
Packit bc1512
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
Packit bc1512
  for ac_dir in ifelse([$5], , $PATH, [$5]); do
Packit bc1512
    test -z "$ac_dir" && ac_dir=.
Packit bc1512
    if test -f $ac_dir/$ac_word; then
Packit bc1512
      if [$3]; then
Packit bc1512
	ac_cv_path_$1="$ac_dir/$ac_word"
Packit bc1512
	break
Packit bc1512
      fi
Packit bc1512
    fi
Packit bc1512
  done
Packit bc1512
  IFS="$ac_save_ifs"
Packit bc1512
dnl If no 4th arg is given, leave the cache variable unset,
Packit bc1512
dnl so AC_PATH_PROGS will keep looking.
Packit bc1512
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
Packit bc1512
])dnl
Packit bc1512
  ;;
Packit bc1512
esac])dnl
Packit bc1512
$1="$ac_cv_path_$1"
Packit bc1512
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
Packit bc1512
  AC_MSG_RESULT([$]$1)
Packit bc1512
else
Packit bc1512
  AC_MSG_RESULT(no)
Packit bc1512
fi
Packit bc1512
AC_SUBST($1)dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
# GLIB_WITH_NLS
Packit bc1512
#-----------------
Packit bc1512
glib_DEFUN([GLIB_WITH_NLS],
Packit bc1512
  dnl NLS is obligatory
Packit bc1512
  [USE_NLS=yes
Packit bc1512
    AC_SUBST(USE_NLS)
Packit bc1512
Packit bc1512
    gt_cv_have_gettext=no
Packit bc1512
Packit bc1512
    CATOBJEXT=NONE
Packit bc1512
    XGETTEXT=:
Packit bc1512
    INTLLIBS=
Packit bc1512
Packit bc1512
    AC_CHECK_HEADER(libintl.h,
Packit bc1512
     [gt_cv_func_dgettext_libintl="no"
Packit bc1512
      libintl_extra_libs=""
Packit bc1512
Packit bc1512
      #
Packit bc1512
      # First check in libc
Packit bc1512
      #
Packit bc1512
      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
Packit bc1512
        [AC_TRY_LINK([
Packit bc1512
#include <libintl.h>
Packit bc1512
],
Packit bc1512
         [return !ngettext ("","", 1)],
Packit bc1512
	  gt_cv_func_ngettext_libc=yes,
Packit bc1512
          gt_cv_func_ngettext_libc=no)
Packit bc1512
        ])
Packit bc1512
  
Packit bc1512
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit bc1512
	      AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
Packit bc1512
        	[AC_TRY_LINK([
Packit bc1512
#include <libintl.h>
Packit bc1512
],
Packit bc1512
	          [return !dgettext ("","")],
Packit bc1512
		  gt_cv_func_dgettext_libc=yes,
Packit bc1512
	          gt_cv_func_dgettext_libc=no)
Packit bc1512
        	])
Packit bc1512
      fi
Packit bc1512
  
Packit bc1512
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
Packit bc1512
        AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit bc1512
      fi
Packit bc1512
Packit bc1512
      #
Packit bc1512
      # If we don't have everything we want, check in libintl
Packit bc1512
      #
Packit bc1512
      if test "$gt_cv_func_dgettext_libc" != "yes" \
Packit bc1512
	 || test "$gt_cv_func_ngettext_libc" != "yes" \
Packit bc1512
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
Packit bc1512
        
Packit bc1512
        AC_CHECK_LIB(intl, bindtextdomain,
Packit bc1512
	    [AC_CHECK_LIB(intl, ngettext,
Packit bc1512
		    [AC_CHECK_LIB(intl, dgettext,
Packit bc1512
			          gt_cv_func_dgettext_libintl=yes)])])
Packit bc1512
Packit bc1512
	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
Packit bc1512
	  AC_MSG_CHECKING([if -liconv is needed to use gettext])
Packit bc1512
	  AC_MSG_RESULT([])
Packit bc1512
  	  AC_CHECK_LIB(intl, ngettext,
Packit bc1512
          	[AC_CHECK_LIB(intl, dcgettext,
Packit bc1512
		       [gt_cv_func_dgettext_libintl=yes
Packit bc1512
			libintl_extra_libs=-liconv],
Packit bc1512
			:,-liconv)],
Packit bc1512
		:,-liconv)
Packit bc1512
        fi
Packit bc1512
Packit bc1512
        #
Packit bc1512
        # If we found libintl, then check in it for bind_textdomain_codeset();
Packit bc1512
        # we'll prefer libc if neither have bind_textdomain_codeset(),
Packit bc1512
        # and both have dgettext and ngettext
Packit bc1512
        #
Packit bc1512
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
Packit bc1512
          glib_save_LIBS="$LIBS"
Packit bc1512
          LIBS="$LIBS -lintl $libintl_extra_libs"
Packit bc1512
          unset ac_cv_func_bind_textdomain_codeset
Packit bc1512
          AC_CHECK_FUNCS(bind_textdomain_codeset)
Packit bc1512
          LIBS="$glib_save_LIBS"
Packit bc1512
Packit bc1512
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
Packit bc1512
            gt_cv_func_dgettext_libc=no
Packit bc1512
          else
Packit bc1512
            if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit bc1512
		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
Packit bc1512
              gt_cv_func_dgettext_libintl=no
Packit bc1512
            fi
Packit bc1512
          fi
Packit bc1512
        fi
Packit bc1512
      fi
Packit bc1512
Packit bc1512
      if test "$gt_cv_func_dgettext_libc" = "yes" \
Packit bc1512
	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit bc1512
        gt_cv_have_gettext=yes
Packit bc1512
      fi
Packit bc1512
  
Packit bc1512
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
Packit bc1512
        INTLLIBS="-lintl $libintl_extra_libs"
Packit bc1512
      fi
Packit bc1512
  
Packit bc1512
      if test "$gt_cv_have_gettext" = "yes"; then
Packit bc1512
	AC_DEFINE(HAVE_GETTEXT,1,
Packit bc1512
	  [Define if the GNU gettext() function is already present or preinstalled.])
Packit bc1512
	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
Packit bc1512
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
Packit bc1512
	if test "$MSGFMT" != "no"; then
Packit bc1512
          glib_save_LIBS="$LIBS"
Packit bc1512
          LIBS="$LIBS $INTLLIBS"
Packit bc1512
	  AC_CHECK_FUNCS(dcgettext)
Packit bc1512
	  MSGFMT_OPTS=
Packit bc1512
	  AC_MSG_CHECKING([if msgfmt accepts -c])
Packit bc1512
	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
Packit bc1512
msgid ""
Packit bc1512
msgstr ""
Packit bc1512
"Content-Type: text/plain; charset=UTF-8\n"
Packit bc1512
"Project-Id-Version: test 1.0\n"
Packit bc1512
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
Packit bc1512
"Last-Translator: test <foo@bar.xx>\n"
Packit bc1512
"Language-Team: C <LL@li.org>\n"
Packit bc1512
"MIME-Version: 1.0\n"
Packit bc1512
"Content-Transfer-Encoding: 8bit\n"
Packit bc1512
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
Packit bc1512
	  AC_SUBST(MSGFMT_OPTS)
Packit bc1512
	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
Packit bc1512
	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
Packit bc1512
	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
Packit bc1512
	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
Packit bc1512
			 return _nl_msg_cat_cntr],
Packit bc1512
	    [CATOBJEXT=.gmo 
Packit bc1512
             DATADIRNAME=share],
Packit bc1512
	    [case $host in
Packit bc1512
	    *-*-solaris*)
Packit bc1512
	    dnl On Solaris, if bind_textdomain_codeset is in libc,
Packit bc1512
	    dnl GNU format message catalog is always supported,
Packit bc1512
            dnl since both are added to the libc all together.
Packit bc1512
	    dnl Hence, we'd like to go with DATADIRNAME=share and
Packit bc1512
	    dnl and CATOBJEXT=.gmo in this case.
Packit bc1512
            AC_CHECK_FUNC(bind_textdomain_codeset,
Packit bc1512
	      [CATOBJEXT=.gmo 
Packit bc1512
               DATADIRNAME=share],
Packit bc1512
	      [CATOBJEXT=.mo
Packit bc1512
               DATADIRNAME=lib])
Packit bc1512
	    ;;
Packit bc1512
	    *-*-openbsd*)
Packit bc1512
	    CATOBJEXT=.mo
Packit bc1512
            DATADIRNAME=share
Packit bc1512
	    ;;
Packit bc1512
	    *)
Packit bc1512
	    CATOBJEXT=.mo
Packit bc1512
            DATADIRNAME=lib
Packit bc1512
	    ;;
Packit bc1512
	    esac])
Packit bc1512
          LIBS="$glib_save_LIBS"
Packit bc1512
	  INSTOBJEXT=.mo
Packit bc1512
	else
Packit bc1512
	  gt_cv_have_gettext=no
Packit bc1512
	fi
Packit bc1512
      fi
Packit bc1512
    ])
Packit bc1512
Packit bc1512
    if test "$gt_cv_have_gettext" = "yes" ; then
Packit bc1512
      AC_DEFINE(ENABLE_NLS, 1,
Packit bc1512
        [always defined to indicate that i18n is enabled])
Packit bc1512
    fi
Packit bc1512
Packit bc1512
    dnl Test whether we really found GNU xgettext.
Packit bc1512
    if test "$XGETTEXT" != ":"; then
Packit bc1512
      dnl If it is not GNU xgettext we define it as : so that the
Packit bc1512
      dnl Makefiles still can work.
Packit bc1512
      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
Packit bc1512
        : ;
Packit bc1512
      else
Packit bc1512
        AC_MSG_RESULT(
Packit bc1512
	  [found xgettext program is not GNU xgettext; ignore it])
Packit bc1512
        XGETTEXT=":"
Packit bc1512
      fi
Packit bc1512
    fi
Packit bc1512
Packit bc1512
    # We need to process the po/ directory.
Packit bc1512
    POSUB=po
Packit bc1512
Packit bc1512
    AC_OUTPUT_COMMANDS(
Packit bc1512
      [case "$CONFIG_FILES" in *po/Makefile.in*)
Packit bc1512
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
Packit bc1512
      esac])
Packit bc1512
Packit bc1512
    dnl These rules are solely for the distribution goal.  While doing this
Packit bc1512
    dnl we only have to keep exactly one list of the available catalogs
Packit bc1512
    dnl in configure.ac.
Packit bc1512
    for lang in $ALL_LINGUAS; do
Packit bc1512
      GMOFILES="$GMOFILES $lang.gmo"
Packit bc1512
      POFILES="$POFILES $lang.po"
Packit bc1512
    done
Packit bc1512
Packit bc1512
    dnl Make all variables we use known to autoconf.
Packit bc1512
    AC_SUBST(CATALOGS)
Packit bc1512
    AC_SUBST(CATOBJEXT)
Packit bc1512
    AC_SUBST(DATADIRNAME)
Packit bc1512
    AC_SUBST(GMOFILES)
Packit bc1512
    AC_SUBST(INSTOBJEXT)
Packit bc1512
    AC_SUBST(INTLLIBS)
Packit bc1512
    AC_SUBST(PO_IN_DATADIR_TRUE)
Packit bc1512
    AC_SUBST(PO_IN_DATADIR_FALSE)
Packit bc1512
    AC_SUBST(POFILES)
Packit bc1512
    AC_SUBST(POSUB)
Packit bc1512
  ])
Packit bc1512
Packit bc1512
# AM_GLIB_GNU_GETTEXT
Packit bc1512
# -------------------
Packit bc1512
# Do checks necessary for use of gettext. If a suitable implementation 
Packit bc1512
# of gettext is found in either in libintl or in the C library,
Packit bc1512
# it will set INTLLIBS to the libraries needed for use of gettext
Packit bc1512
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
Packit bc1512
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
Packit bc1512
# on various variables needed by the Makefile.in.in installed by 
Packit bc1512
# glib-gettextize.
Packit bc1512
dnl
Packit bc1512
glib_DEFUN([GLIB_GNU_GETTEXT],
Packit bc1512
  [AC_REQUIRE([AC_PROG_CC])dnl
Packit bc1512
   AC_REQUIRE([AC_HEADER_STDC])dnl
Packit bc1512
   
Packit bc1512
   GLIB_LC_MESSAGES
Packit bc1512
   GLIB_WITH_NLS
Packit bc1512
Packit bc1512
   if test "$gt_cv_have_gettext" = "yes"; then
Packit bc1512
     if test "x$ALL_LINGUAS" = "x"; then
Packit bc1512
       LINGUAS=
Packit bc1512
     else
Packit bc1512
       AC_MSG_CHECKING(for catalogs to be installed)
Packit bc1512
       NEW_LINGUAS=
Packit bc1512
       for presentlang in $ALL_LINGUAS; do
Packit bc1512
         useit=no
Packit bc1512
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
Packit bc1512
           desiredlanguages="$LINGUAS"
Packit bc1512
         else
Packit bc1512
           desiredlanguages="$ALL_LINGUAS"
Packit bc1512
         fi
Packit bc1512
         for desiredlang in $desiredlanguages; do
Packit bc1512
 	   # Use the presentlang catalog if desiredlang is
Packit bc1512
           #   a. equal to presentlang, or
Packit bc1512
           #   b. a variant of presentlang (because in this case,
Packit bc1512
           #      presentlang can be used as a fallback for messages
Packit bc1512
           #      which are not translated in the desiredlang catalog).
Packit bc1512
           case "$desiredlang" in
Packit bc1512
             "$presentlang"*) useit=yes;;
Packit bc1512
           esac
Packit bc1512
         done
Packit bc1512
         if test $useit = yes; then
Packit bc1512
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
Packit bc1512
         fi
Packit bc1512
       done
Packit bc1512
       LINGUAS=$NEW_LINGUAS
Packit bc1512
       AC_MSG_RESULT($LINGUAS)
Packit bc1512
     fi
Packit bc1512
Packit bc1512
     dnl Construct list of names of catalog files to be constructed.
Packit bc1512
     if test -n "$LINGUAS"; then
Packit bc1512
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
Packit bc1512
     fi
Packit bc1512
   fi
Packit bc1512
Packit bc1512
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
Packit bc1512
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
Packit bc1512
   dnl Try to locate is.
Packit bc1512
   MKINSTALLDIRS=
Packit bc1512
   if test -n "$ac_aux_dir"; then
Packit bc1512
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
Packit bc1512
   fi
Packit bc1512
   if test -z "$MKINSTALLDIRS"; then
Packit bc1512
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
Packit bc1512
   fi
Packit bc1512
   AC_SUBST(MKINSTALLDIRS)
Packit bc1512
Packit bc1512
   dnl Generate list of files to be processed by xgettext which will
Packit bc1512
   dnl be included in po/Makefile.
Packit bc1512
   test -d po || mkdir po
Packit bc1512
   if test "x$srcdir" != "x."; then
Packit bc1512
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
Packit bc1512
       posrcprefix="$srcdir/"
Packit bc1512
     else
Packit bc1512
       posrcprefix="../$srcdir/"
Packit bc1512
     fi
Packit bc1512
   else
Packit bc1512
     posrcprefix="../"
Packit bc1512
   fi
Packit bc1512
   rm -f po/POTFILES
Packit bc1512
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
Packit bc1512
	< $srcdir/po/POTFILES.in > po/POTFILES
Packit bc1512
  ])
Packit bc1512
Packit bc1512
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
Packit bc1512
# -------------------------------
Packit bc1512
# Define VARIABLE to the location where catalog files will
Packit bc1512
# be installed by po/Makefile.
Packit bc1512
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
Packit bc1512
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
Packit bc1512
glib_save_prefix="$prefix"
Packit bc1512
glib_save_exec_prefix="$exec_prefix"
Packit bc1512
glib_save_datarootdir="$datarootdir"
Packit bc1512
test "x$prefix" = xNONE && prefix=$ac_default_prefix
Packit bc1512
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
Packit bc1512
datarootdir=`eval echo "${datarootdir}"`
Packit bc1512
if test "x$CATOBJEXT" = "x.mo" ; then
Packit bc1512
  localedir=`eval echo "${libdir}/locale"`
Packit bc1512
else
Packit bc1512
  localedir=`eval echo "${datadir}/locale"`
Packit bc1512
fi
Packit bc1512
prefix="$glib_save_prefix"
Packit bc1512
exec_prefix="$glib_save_exec_prefix"
Packit bc1512
datarootdir="$glib_save_datarootdir"
Packit bc1512
AC_DEFINE_UNQUOTED($1, "$localedir",
Packit bc1512
  [Define the location where the catalogs will be installed])
Packit bc1512
])
Packit bc1512
Packit bc1512
dnl
Packit bc1512
dnl Now the definitions that aclocal will find
Packit bc1512
dnl
Packit bc1512
ifdef(glib_configure_ac,[],[
Packit bc1512
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
Packit bc1512
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
Packit bc1512
])dnl
Packit bc1512
Packit bc1512
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
Packit bc1512
# 
Packit bc1512
# Create a temporary file with TEST-FILE as its contents and pass the
Packit bc1512
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
Packit bc1512
# 0 and perform ACTION-IF-FAIL for any other exit status.
Packit bc1512
AC_DEFUN([GLIB_RUN_PROG],
Packit bc1512
[cat >conftest.foo <<_ACEOF
Packit bc1512
$2
Packit bc1512
_ACEOF
Packit bc1512
if AC_RUN_LOG([$1 conftest.foo]); then
Packit bc1512
  m4_ifval([$3], [$3], [:])
Packit bc1512
m4_ifvaln([$4], [else $4])dnl
Packit bc1512
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
Packit bc1512
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
Packit bc1512
fi])
Packit bc1512
Packit bc1512
Packit bc1512
Packit bc1512
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
Packit bc1512
# serial 42 IT_PROG_INTLTOOL
Packit bc1512
AC_DEFUN([IT_PROG_INTLTOOL], [
Packit bc1512
AC_PREREQ([2.50])dnl
Packit bc1512
AC_REQUIRE([AM_NLS])dnl
Packit bc1512
Packit bc1512
case "$am__api_version" in
Packit bc1512
    1.[01234])
Packit bc1512
	AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
Packit bc1512
    ;;
Packit bc1512
    *)
Packit bc1512
    ;;
Packit bc1512
esac
Packit bc1512
Packit bc1512
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
Packit bc1512
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
Packit bc1512
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
Packit bc1512
if test -n "$1"; then
Packit bc1512
    AC_MSG_CHECKING([for intltool >= $1])
Packit bc1512
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
Packit bc1512
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
Packit bc1512
	AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
Packit bc1512
fi
Packit bc1512
Packit bc1512
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
Packit bc1512
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
Packit bc1512
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
Packit bc1512
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
Packit bc1512
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
Packit bc1512
fi
Packit bc1512
Packit bc1512
if test -z "$AM_DEFAULT_VERBOSITY"; then
Packit bc1512
  AM_DEFAULT_VERBOSITY=1
Packit bc1512
fi
Packit bc1512
AC_SUBST([AM_DEFAULT_VERBOSITY])
Packit bc1512
Packit bc1512
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
Packit bc1512
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
Packit bc1512
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
Packit bc1512
AC_SUBST(INTLTOOL_V_MERGE)
Packit bc1512
AC_SUBST(INTLTOOL__v_MERGE_)
Packit bc1512
AC_SUBST(INTLTOOL__v_MERGE_0)
Packit bc1512
Packit bc1512
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
Packit bc1512
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
Packit bc1512
intltool__v_merge_options_0='-q'
Packit bc1512
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
Packit bc1512
AC_SUBST(intltool__v_merge_options_)
Packit bc1512
AC_SUBST(intltool__v_merge_options_0)
Packit bc1512
Packit bc1512
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
Packit bc1512
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
Packit bc1512
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
Packit bc1512
else
Packit bc1512
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
Packit bc1512
fi
Packit bc1512
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
Packit bc1512
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
Packit bc1512
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
Packit bc1512
Packit bc1512
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_KEYS_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_PROP_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_OAF_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_PONG_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_SERVER_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_SHEET_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_UI_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_XAM_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_KBD_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_XML_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_CAVES_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_THEME_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_SERVICE_RULE)
Packit bc1512
_IT_SUBST(INTLTOOL_POLICY_RULE)
Packit bc1512
Packit bc1512
# Check the gettext tools to make sure they are GNU
Packit bc1512
AC_PATH_PROG(XGETTEXT, xgettext)
Packit bc1512
AC_PATH_PROG(MSGMERGE, msgmerge)
Packit bc1512
AC_PATH_PROG(MSGFMT, msgfmt)
Packit bc1512
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
Packit bc1512
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
Packit bc1512
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
Packit bc1512
fi
Packit bc1512
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
Packit bc1512
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
Packit bc1512
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
Packit bc1512
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
Packit bc1512
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
Packit bc1512
fi
Packit bc1512
Packit bc1512
AC_PATH_PROG(INTLTOOL_PERL, perl)
Packit bc1512
if test -z "$INTLTOOL_PERL"; then
Packit bc1512
   AC_MSG_ERROR([perl not found])
Packit bc1512
fi
Packit bc1512
AC_MSG_CHECKING([for perl >= 5.8.1])
Packit bc1512
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
Packit bc1512
if test $? -ne 0; then
Packit bc1512
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
Packit bc1512
else
Packit bc1512
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
Packit bc1512
   AC_MSG_RESULT([$IT_PERL_VERSION])
Packit bc1512
fi
Packit bc1512
if test "x$2" != "xno-xml"; then
Packit bc1512
   AC_MSG_CHECKING([for XML::Parser])
Packit bc1512
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
Packit bc1512
       AC_MSG_RESULT([ok])
Packit bc1512
   else
Packit bc1512
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
Packit bc1512
   fi
Packit bc1512
fi
Packit bc1512
Packit bc1512
# Substitute ALL_LINGUAS so we can use it in po/Makefile
Packit bc1512
AC_SUBST(ALL_LINGUAS)
Packit bc1512
Packit bc1512
# Set DATADIRNAME correctly if it is not set yet
Packit bc1512
# (copied from glib-gettext.m4)
Packit bc1512
if test -z "$DATADIRNAME"; then
Packit bc1512
  AC_LINK_IFELSE(
Packit bc1512
    [AC_LANG_PROGRAM([[]],
Packit bc1512
                     [[extern int _nl_msg_cat_cntr;
Packit bc1512
                       return _nl_msg_cat_cntr]])],
Packit bc1512
    [DATADIRNAME=share],
Packit bc1512
    [case $host in
Packit bc1512
    *-*-solaris*)
Packit bc1512
    dnl On Solaris, if bind_textdomain_codeset is in libc,
Packit bc1512
    dnl GNU format message catalog is always supported,
Packit bc1512
    dnl since both are added to the libc all together.
Packit bc1512
    dnl Hence, we'd like to go with DATADIRNAME=share
Packit bc1512
    dnl in this case.
Packit bc1512
    AC_CHECK_FUNC(bind_textdomain_codeset,
Packit bc1512
      [DATADIRNAME=share], [DATADIRNAME=lib])
Packit bc1512
    ;;
Packit bc1512
    *)
Packit bc1512
    [DATADIRNAME=lib]
Packit bc1512
    ;;
Packit bc1512
    esac])
Packit bc1512
fi
Packit bc1512
AC_SUBST(DATADIRNAME)
Packit bc1512
Packit bc1512
IT_PO_SUBDIR([po])
Packit bc1512
Packit bc1512
])
Packit bc1512
Packit bc1512
Packit bc1512
# IT_PO_SUBDIR(DIRNAME)
Packit bc1512
# ---------------------
Packit bc1512
# All po subdirs have to be declared with this macro; the subdir "po" is
Packit bc1512
# declared by IT_PROG_INTLTOOL.
Packit bc1512
#
Packit bc1512
AC_DEFUN([IT_PO_SUBDIR],
Packit bc1512
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
Packit bc1512
dnl
Packit bc1512
dnl The following CONFIG_COMMANDS should be executed at the very end
Packit bc1512
dnl of config.status.
Packit bc1512
AC_CONFIG_COMMANDS_PRE([
Packit bc1512
  AC_CONFIG_COMMANDS([$1/stamp-it], [
Packit bc1512
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
Packit bc1512
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
Packit bc1512
    fi
Packit bc1512
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
Packit bc1512
    >"$1/stamp-it.tmp"
Packit bc1512
    [sed '/^#/d
Packit bc1512
	 s/^[[].*] *//
Packit bc1512
	 /^[ 	]*$/d
Packit bc1512
	'"s|^|	$ac_top_srcdir/|" \
Packit bc1512
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
Packit bc1512
    ]
Packit bc1512
    [sed '/^POTFILES =/,/[^\\]$/ {
Packit bc1512
		/^POTFILES =/!d
Packit bc1512
		r $1/POTFILES
Packit bc1512
	  }
Packit bc1512
	 ' "$1/Makefile.in" >"$1/Makefile"]
Packit bc1512
    rm -f "$1/Makefile.tmp"
Packit bc1512
    mv "$1/stamp-it.tmp" "$1/stamp-it"
Packit bc1512
  ])
Packit bc1512
])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
# _IT_SUBST(VARIABLE)
Packit bc1512
# -------------------
Packit bc1512
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
Packit bc1512
#
Packit bc1512
AC_DEFUN([_IT_SUBST],
Packit bc1512
[
Packit bc1512
AC_SUBST([$1])
Packit bc1512
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
Packit bc1512
]
Packit bc1512
)
Packit bc1512
Packit bc1512
# deprecated macros
Packit bc1512
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
Packit bc1512
# A hint is needed for aclocal from Automake <= 1.9.4:
Packit bc1512
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
Packit bc1512
Packit bc1512
Packit bc1512
# nls.m4 serial 5 (gettext-0.18)
Packit bc1512
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
Packit bc1512
dnl Inc.
Packit bc1512
dnl This file is free software; the Free Software Foundation
Packit bc1512
dnl gives unlimited permission to copy and/or distribute it,
Packit bc1512
dnl with or without modifications, as long as this notice is preserved.
Packit bc1512
dnl
Packit bc1512
dnl This file can can be used in projects which are not available under
Packit bc1512
dnl the GNU General Public License or the GNU Library General Public
Packit bc1512
dnl License but which still want to provide support for the GNU gettext
Packit bc1512
dnl functionality.
Packit bc1512
dnl Please note that the actual code of the GNU gettext library is covered
Packit bc1512
dnl by the GNU Library General Public License, and the rest of the GNU
Packit bc1512
dnl gettext package package is covered by the GNU General Public License.
Packit bc1512
dnl They are *not* in the public domain.
Packit bc1512
Packit bc1512
dnl Authors:
Packit bc1512
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
Packit bc1512
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
Packit bc1512
Packit bc1512
AC_PREREQ([2.50])
Packit bc1512
Packit bc1512
AC_DEFUN([AM_NLS],
Packit bc1512
[
Packit bc1512
  AC_MSG_CHECKING([whether NLS is requested])
Packit bc1512
  dnl Default is enabled NLS
Packit bc1512
  AC_ARG_ENABLE([nls],
Packit bc1512
    [  --disable-nls           do not use Native Language Support],
Packit bc1512
    USE_NLS=$enableval, USE_NLS=yes)
Packit bc1512
  AC_MSG_RESULT([$USE_NLS])
Packit bc1512
  AC_SUBST([USE_NLS])
Packit bc1512
])
Packit bc1512
Packit bc1512
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
Packit bc1512
# serial 1 (pkg-config-0.24)
Packit bc1512
# 
Packit bc1512
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit bc1512
#
Packit bc1512
# This program is free software; you can redistribute it and/or modify
Packit bc1512
# it under the terms of the GNU General Public License as published by
Packit bc1512
# the Free Software Foundation; either version 2 of the License, or
Packit bc1512
# (at your option) any later version.
Packit bc1512
#
Packit bc1512
# This program is distributed in the hope that it will be useful, but
Packit bc1512
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit bc1512
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit bc1512
# General Public License for more details.
Packit bc1512
#
Packit bc1512
# You should have received a copy of the GNU General Public License
Packit bc1512
# along with this program; if not, write to the Free Software
Packit bc1512
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit bc1512
#
Packit bc1512
# As a special exception to the GNU General Public License, if you
Packit bc1512
# distribute this file as part of a program that contains a
Packit bc1512
# configuration script generated by Autoconf, you may include it under
Packit bc1512
# the same distribution terms that you use for the rest of that program.
Packit bc1512
Packit bc1512
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit bc1512
# ----------------------------------
Packit bc1512
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit bc1512
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit bc1512
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit bc1512
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit bc1512
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit bc1512
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit bc1512
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit bc1512
Packit bc1512
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit bc1512
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit bc1512
fi
Packit bc1512
if test -n "$PKG_CONFIG"; then
Packit bc1512
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit bc1512
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit bc1512
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit bc1512
		AC_MSG_RESULT([yes])
Packit bc1512
	else
Packit bc1512
		AC_MSG_RESULT([no])
Packit bc1512
		PKG_CONFIG=""
Packit bc1512
	fi
Packit bc1512
fi[]dnl
Packit bc1512
])# PKG_PROG_PKG_CONFIG
Packit bc1512
Packit bc1512
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit bc1512
#
Packit bc1512
# Check to see whether a particular set of modules exists.  Similar
Packit bc1512
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit bc1512
#
Packit bc1512
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit bc1512
# only at the first occurence in configure.ac, so if the first place
Packit bc1512
# it's called might be skipped (such as if it is within an "if", you
Packit bc1512
# have to call PKG_CHECK_EXISTS manually
Packit bc1512
# --------------------------------------------------------------
Packit bc1512
AC_DEFUN([PKG_CHECK_EXISTS],
Packit bc1512
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit bc1512
if test -n "$PKG_CONFIG" && \
Packit bc1512
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit bc1512
  m4_default([$2], [:])
Packit bc1512
m4_ifvaln([$3], [else
Packit bc1512
  $3])dnl
Packit bc1512
fi])
Packit bc1512
Packit bc1512
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit bc1512
# ---------------------------------------------
Packit bc1512
m4_define([_PKG_CONFIG],
Packit bc1512
[if test -n "$$1"; then
Packit bc1512
    pkg_cv_[]$1="$$1"
Packit bc1512
 elif test -n "$PKG_CONFIG"; then
Packit bc1512
    PKG_CHECK_EXISTS([$3],
Packit bc1512
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit bc1512
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit bc1512
		     [pkg_failed=yes])
Packit bc1512
 else
Packit bc1512
    pkg_failed=untried
Packit bc1512
fi[]dnl
Packit bc1512
])# _PKG_CONFIG
Packit bc1512
Packit bc1512
# _PKG_SHORT_ERRORS_SUPPORTED
Packit bc1512
# -----------------------------
Packit bc1512
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit bc1512
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit bc1512
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit bc1512
        _pkg_short_errors_supported=yes
Packit bc1512
else
Packit bc1512
        _pkg_short_errors_supported=no
Packit bc1512
fi[]dnl
Packit bc1512
])# _PKG_SHORT_ERRORS_SUPPORTED
Packit bc1512
Packit bc1512
Packit bc1512
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit bc1512
# [ACTION-IF-NOT-FOUND])
Packit bc1512
#
Packit bc1512
#
Packit bc1512
# Note that if there is a possibility the first call to
Packit bc1512
# PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit bc1512
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit bc1512
#
Packit bc1512
#
Packit bc1512
# --------------------------------------------------------------
Packit bc1512
AC_DEFUN([PKG_CHECK_MODULES],
Packit bc1512
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit bc1512
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit bc1512
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit bc1512
Packit bc1512
pkg_failed=no
Packit bc1512
AC_MSG_CHECKING([for $1])
Packit bc1512
Packit bc1512
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit bc1512
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit bc1512
Packit bc1512
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit bc1512
and $1[]_LIBS to avoid the need to call pkg-config.
Packit bc1512
See the pkg-config man page for more details.])
Packit bc1512
Packit bc1512
if test $pkg_failed = yes; then
Packit bc1512
   	AC_MSG_RESULT([no])
Packit bc1512
        _PKG_SHORT_ERRORS_SUPPORTED
Packit bc1512
        if test $_pkg_short_errors_supported = yes; then
Packit bc1512
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit bc1512
        else 
Packit bc1512
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit bc1512
        fi
Packit bc1512
	# Put the nasty error message in config.log where it belongs
Packit bc1512
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit bc1512
Packit bc1512
	m4_default([$4], [AC_MSG_ERROR(
Packit bc1512
[Package requirements ($2) were not met:
Packit bc1512
Packit bc1512
$$1_PKG_ERRORS
Packit bc1512
Packit bc1512
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit bc1512
installed software in a non-standard prefix.
Packit bc1512
Packit bc1512
_PKG_TEXT])[]dnl
Packit bc1512
        ])
Packit bc1512
elif test $pkg_failed = untried; then
Packit bc1512
     	AC_MSG_RESULT([no])
Packit bc1512
	m4_default([$4], [AC_MSG_FAILURE(
Packit bc1512
[The pkg-config script could not be found or is too old.  Make sure it
Packit bc1512
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit bc1512
path to pkg-config.
Packit bc1512
Packit bc1512
_PKG_TEXT
Packit bc1512
Packit bc1512
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit bc1512
        ])
Packit bc1512
else
Packit bc1512
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit bc1512
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit bc1512
        AC_MSG_RESULT([yes])
Packit bc1512
	$3
Packit bc1512
fi[]dnl
Packit bc1512
])# PKG_CHECK_MODULES
Packit bc1512
Packit bc1512
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
Packit bc1512
# Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# AM_AUTOMAKE_VERSION(VERSION)
Packit bc1512
# ----------------------------
Packit bc1512
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit bc1512
# generated from the m4 files accompanying Automake X.Y.
Packit bc1512
# (This private macro should not be called outside this file.)
Packit bc1512
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit bc1512
[am__api_version='1.11'
Packit bc1512
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit bc1512
dnl require some minimum version.  Point them to the right macro.
Packit bc1512
m4_if([$1], [1.11.3], [],
Packit bc1512
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
# _AM_AUTOCONF_VERSION(VERSION)
Packit bc1512
# -----------------------------
Packit bc1512
# aclocal traces this macro to find the Autoconf version.
Packit bc1512
# This is a private macro too.  Using m4_define simplifies
Packit bc1512
# the logic in aclocal, which can simply ignore this definition.
Packit bc1512
m4_define([_AM_AUTOCONF_VERSION], [])
Packit bc1512
Packit bc1512
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit bc1512
# -------------------------------
Packit bc1512
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit bc1512
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit bc1512
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit bc1512
[AM_AUTOMAKE_VERSION([1.11.3])dnl
Packit bc1512
m4_ifndef([AC_AUTOCONF_VERSION],
Packit bc1512
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit bc1512
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit bc1512
Packit bc1512
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit bc1512
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
Packit bc1512
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
Packit bc1512
#
Packit bc1512
# Of course, Automake must honor this variable whenever it calls a
Packit bc1512
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit bc1512
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit bc1512
# depending on how configure is run.  This is pretty annoying, since
Packit bc1512
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit bc1512
# source directory, any form will work fine, but in subdirectories a
Packit bc1512
# relative path needs to be adjusted first.
Packit bc1512
#
Packit bc1512
# $ac_aux_dir/missing
Packit bc1512
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit bc1512
# $top_srcdir/$ac_aux_dir/missing
Packit bc1512
#    fails if $ac_aux_dir is absolute,
Packit bc1512
#    fails when called from a subdirectory in a VPATH build with
Packit bc1512
#          a relative $ac_aux_dir
Packit bc1512
#
Packit bc1512
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit bc1512
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit bc1512
# harmless because $srcdir is `.', but things will broke when you
Packit bc1512
# start a VPATH build or use an absolute $srcdir.
Packit bc1512
#
Packit bc1512
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit bc1512
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit bc1512
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit bc1512
# and then we would define $MISSING as
Packit bc1512
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit bc1512
# This will work as long as MISSING is not called from configure, because
Packit bc1512
# unfortunately $(top_srcdir) has no meaning in configure.
Packit bc1512
# However there are other variables, like CC, which are often used in
Packit bc1512
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit bc1512
#
Packit bc1512
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit bc1512
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit bc1512
# configured tree to be moved without reconfiguration.
Packit bc1512
Packit bc1512
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit bc1512
[dnl Rely on autoconf to set up CDPATH properly.
Packit bc1512
AC_PREREQ([2.50])dnl
Packit bc1512
# expand $ac_aux_dir to an absolute path
Packit bc1512
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit bc1512
])
Packit bc1512
Packit bc1512
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
Packit bc1512
# Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 9
Packit bc1512
Packit bc1512
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit bc1512
# -------------------------------------
Packit bc1512
# Define a conditional.
Packit bc1512
AC_DEFUN([AM_CONDITIONAL],
Packit bc1512
[AC_PREREQ(2.52)dnl
Packit bc1512
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit bc1512
	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit bc1512
AC_SUBST([$1_TRUE])dnl
Packit bc1512
AC_SUBST([$1_FALSE])dnl
Packit bc1512
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit bc1512
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit bc1512
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit bc1512
if $2; then
Packit bc1512
  $1_TRUE=
Packit bc1512
  $1_FALSE='#'
Packit bc1512
else
Packit bc1512
  $1_TRUE='#'
Packit bc1512
  $1_FALSE=
Packit bc1512
fi
Packit bc1512
AC_CONFIG_COMMANDS_PRE(
Packit bc1512
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit bc1512
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit bc1512
Usually this means the macro was only invoked conditionally.]])
Packit bc1512
fi])])
Packit bc1512
Packit bc1512
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
Packit bc1512
# 2010, 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 12
Packit bc1512
Packit bc1512
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
Packit bc1512
# written in clear, in which case automake, when reading aclocal.m4,
Packit bc1512
# will think it sees a *use*, and therefore will trigger all it's
Packit bc1512
# C support machinery.  Also note that it means that autoscan, seeing
Packit bc1512
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit bc1512
Packit bc1512
Packit bc1512
# _AM_DEPENDENCIES(NAME)
Packit bc1512
# ----------------------
Packit bc1512
# See how the compiler implements dependency checking.
Packit bc1512
# NAME is "CC", "CXX", "GCJ", or "OBJC".
Packit bc1512
# We try a few techniques and use that to set a single cache variable.
Packit bc1512
#
Packit bc1512
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit bc1512
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit bc1512
# dependency, and given that the user is not expected to run this macro,
Packit bc1512
# just rely on AC_PROG_CC.
Packit bc1512
AC_DEFUN([_AM_DEPENDENCIES],
Packit bc1512
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit bc1512
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit bc1512
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit bc1512
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit bc1512
Packit bc1512
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
Packit bc1512
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
Packit bc1512
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit bc1512
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
Packit bc1512
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit bc1512
                   [depcc="$$1"   am_compiler_list=])
Packit bc1512
Packit bc1512
AC_CACHE_CHECK([dependency style of $depcc],
Packit bc1512
               [am_cv_$1_dependencies_compiler_type],
Packit bc1512
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit bc1512
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit bc1512
  # making bogus files that we don't know about and never remove.  For
Packit bc1512
  # instance it was reported that on HP-UX the gcc test will end up
Packit bc1512
  # making a dummy file named `D' -- because `-MD' means `put the output
Packit bc1512
  # in D'.
Packit bc1512
  rm -rf conftest.dir
Packit bc1512
  mkdir conftest.dir
Packit bc1512
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit bc1512
  # using a relative directory.
Packit bc1512
  cp "$am_depcomp" conftest.dir
Packit bc1512
  cd conftest.dir
Packit bc1512
  # We will build objects and dependencies in a subdirectory because
Packit bc1512
  # it helps to detect inapplicable dependency modes.  For instance
Packit bc1512
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit bc1512
  # side effect of compilation, but ICC will put the dependencies in
Packit bc1512
  # the current directory while Tru64 will put them in the object
Packit bc1512
  # directory.
Packit bc1512
  mkdir sub
Packit bc1512
Packit bc1512
  am_cv_$1_dependencies_compiler_type=none
Packit bc1512
  if test "$am_compiler_list" = ""; then
Packit bc1512
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit bc1512
  fi
Packit bc1512
  am__universal=false
Packit bc1512
  m4_case([$1], [CC],
Packit bc1512
    [case " $depcc " in #(
Packit bc1512
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit bc1512
     esac],
Packit bc1512
    [CXX],
Packit bc1512
    [case " $depcc " in #(
Packit bc1512
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit bc1512
     esac])
Packit bc1512
Packit bc1512
  for depmode in $am_compiler_list; do
Packit bc1512
    # Setup a source with many dependencies, because some compilers
Packit bc1512
    # like to wrap large dependency lists on column 80 (with \), and
Packit bc1512
    # we should not choose a depcomp mode which is confused by this.
Packit bc1512
    #
Packit bc1512
    # We need to recreate these files for each test, as the compiler may
Packit bc1512
    # overwrite some of them when testing with obscure command lines.
Packit bc1512
    # This happens at least with the AIX C compiler.
Packit bc1512
    : > sub/conftest.c
Packit bc1512
    for i in 1 2 3 4 5 6; do
Packit bc1512
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit bc1512
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
Packit bc1512
      # Solaris 8's {/usr,}/bin/sh.
Packit bc1512
      touch sub/conftst$i.h
Packit bc1512
    done
Packit bc1512
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit bc1512
Packit bc1512
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
Packit bc1512
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit bc1512
    # handle `-M -o', and we need to detect this.  Also, some Intel
Packit bc1512
    # versions had trouble with output in subdirs
Packit bc1512
    am__obj=sub/conftest.${OBJEXT-o}
Packit bc1512
    am__minus_obj="-o $am__obj"
Packit bc1512
    case $depmode in
Packit bc1512
    gcc)
Packit bc1512
      # This depmode causes a compiler race in universal mode.
Packit bc1512
      test "$am__universal" = false || continue
Packit bc1512
      ;;
Packit bc1512
    nosideeffect)
Packit bc1512
      # after this tag, mechanisms are not by side-effect, so they'll
Packit bc1512
      # only be used when explicitly requested
Packit bc1512
      if test "x$enable_dependency_tracking" = xyes; then
Packit bc1512
	continue
Packit bc1512
      else
Packit bc1512
	break
Packit bc1512
      fi
Packit bc1512
      ;;
Packit bc1512
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit bc1512
      # This compiler won't grok `-c -o', but also, the minuso test has
Packit bc1512
      # not run yet.  These depmodes are late enough in the game, and
Packit bc1512
      # so weak that their functioning should not be impacted.
Packit bc1512
      am__obj=conftest.${OBJEXT-o}
Packit bc1512
      am__minus_obj=
Packit bc1512
      ;;
Packit bc1512
    none) break ;;
Packit bc1512
    esac
Packit bc1512
    if depmode=$depmode \
Packit bc1512
       source=sub/conftest.c object=$am__obj \
Packit bc1512
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit bc1512
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit bc1512
         >/dev/null 2>conftest.err &&
Packit bc1512
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit bc1512
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit bc1512
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit bc1512
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit bc1512
      # icc doesn't choke on unknown options, it will just issue warnings
Packit bc1512
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit bc1512
      # that says an option was ignored or not supported.
Packit bc1512
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit bc1512
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit bc1512
      # The diagnosis changed in icc 8.0:
Packit bc1512
      #   icc: Command line remark: option '-MP' not supported
Packit bc1512
      if (grep 'ignoring option' conftest.err ||
Packit bc1512
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit bc1512
        am_cv_$1_dependencies_compiler_type=$depmode
Packit bc1512
        break
Packit bc1512
      fi
Packit bc1512
    fi
Packit bc1512
  done
Packit bc1512
Packit bc1512
  cd ..
Packit bc1512
  rm -rf conftest.dir
Packit bc1512
else
Packit bc1512
  am_cv_$1_dependencies_compiler_type=none
Packit bc1512
fi
Packit bc1512
])
Packit bc1512
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit bc1512
AM_CONDITIONAL([am__fastdep$1], [
Packit bc1512
  test "x$enable_dependency_tracking" != xno \
Packit bc1512
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit bc1512
])
Packit bc1512
Packit bc1512
Packit bc1512
# AM_SET_DEPDIR
Packit bc1512
# -------------
Packit bc1512
# Choose a directory name for dependency files.
Packit bc1512
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
Packit bc1512
AC_DEFUN([AM_SET_DEPDIR],
Packit bc1512
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit bc1512
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
Packit bc1512
# AM_DEP_TRACK
Packit bc1512
# ------------
Packit bc1512
AC_DEFUN([AM_DEP_TRACK],
Packit bc1512
[AC_ARG_ENABLE(dependency-tracking,
Packit bc1512
[  --disable-dependency-tracking  speeds up one-time build
Packit bc1512
  --enable-dependency-tracking   do not reject slow dependency extractors])
Packit bc1512
if test "x$enable_dependency_tracking" != xno; then
Packit bc1512
  am_depcomp="$ac_aux_dir/depcomp"
Packit bc1512
  AMDEPBACKSLASH='\'
Packit bc1512
  am__nodep='_no'
Packit bc1512
fi
Packit bc1512
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit bc1512
AC_SUBST([AMDEPBACKSLASH])dnl
Packit bc1512
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit bc1512
AC_SUBST([am__nodep])dnl
Packit bc1512
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
Packit bc1512
# Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
#serial 5
Packit bc1512
Packit bc1512
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit bc1512
# ------------------------------
Packit bc1512
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit bc1512
[{
Packit bc1512
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
Packit bc1512
  # are listed without --file.  Let's play safe and only enable the eval
Packit bc1512
  # if we detect the quoting.
Packit bc1512
  case $CONFIG_FILES in
Packit bc1512
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit bc1512
  *)   set x $CONFIG_FILES ;;
Packit bc1512
  esac
Packit bc1512
  shift
Packit bc1512
  for mf
Packit bc1512
  do
Packit bc1512
    # Strip MF so we end up with the name of the file.
Packit bc1512
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit bc1512
    # Check whether this is an Automake generated Makefile or not.
Packit bc1512
    # We used to match only the files named `Makefile.in', but
Packit bc1512
    # some people rename them; so instead we look at the file content.
Packit bc1512
    # Grep'ing the first line is not enough: some people post-process
Packit bc1512
    # each Makefile.in and add a new line on top of each file to say so.
Packit bc1512
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit bc1512
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit bc1512
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit bc1512
      dirpart=`AS_DIRNAME("$mf")`
Packit bc1512
    else
Packit bc1512
      continue
Packit bc1512
    fi
Packit bc1512
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit bc1512
    # from the Makefile without running `make'.
Packit bc1512
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit bc1512
    test -z "$DEPDIR" && continue
Packit bc1512
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit bc1512
    test -z "am__include" && continue
Packit bc1512
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit bc1512
    # When using ansi2knr, U may be empty or an underscore; expand it
Packit bc1512
    U=`sed -n 's/^U = //p' < "$mf"`
Packit bc1512
    # Find all dependency output files, they are included files with
Packit bc1512
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit bc1512
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit bc1512
    # expansion.
Packit bc1512
    for file in `sed -n "
Packit bc1512
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit bc1512
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Packit bc1512
      # Make sure the directory exists.
Packit bc1512
      test -f "$dirpart/$file" && continue
Packit bc1512
      fdir=`AS_DIRNAME(["$file"])`
Packit bc1512
      AS_MKDIR_P([$dirpart/$fdir])
Packit bc1512
      # echo "creating $dirpart/$file"
Packit bc1512
      echo '# dummy' > "$dirpart/$file"
Packit bc1512
    done
Packit bc1512
  done
Packit bc1512
}
Packit bc1512
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit bc1512
Packit bc1512
Packit bc1512
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit bc1512
# -----------------------------
Packit bc1512
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit bc1512
#
Packit bc1512
# This code is only required when automatic dependency tracking
Packit bc1512
# is enabled.  FIXME.  This creates each `.P' file that we will
Packit bc1512
# need in order to bootstrap the dependency handling code.
Packit bc1512
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit bc1512
[AC_CONFIG_COMMANDS([depfiles],
Packit bc1512
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit bc1512
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit bc1512
])
Packit bc1512
Packit bc1512
# Do all the work for Automake.                             -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit bc1512
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 16
Packit bc1512
Packit bc1512
# This macro actually does too much.  Some checks are only needed if
Packit bc1512
# your package does certain things.  But this isn't really a big deal.
Packit bc1512
Packit bc1512
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit bc1512
# AM_INIT_AUTOMAKE([OPTIONS])
Packit bc1512
# -----------------------------------------------
Packit bc1512
# The call with PACKAGE and VERSION arguments is the old style
Packit bc1512
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit bc1512
# and VERSION should now be passed to AC_INIT and removed from
Packit bc1512
# the call to AM_INIT_AUTOMAKE.
Packit bc1512
# We support both call styles for the transition.  After
Packit bc1512
# the next Automake release, Autoconf can make the AC_INIT
Packit bc1512
# arguments mandatory, and then we can depend on a new Autoconf
Packit bc1512
# release and drop the old call support.
Packit bc1512
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit bc1512
[AC_PREREQ([2.62])dnl
Packit bc1512
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit bc1512
dnl the ones we care about.
Packit bc1512
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit bc1512
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit bc1512
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit bc1512
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit bc1512
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit bc1512
  # is not polluted with repeated "-I."
Packit bc1512
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit bc1512
  # test to see if srcdir already configured
Packit bc1512
  if test -f $srcdir/config.status; then
Packit bc1512
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit bc1512
  fi
Packit bc1512
fi
Packit bc1512
Packit bc1512
# test whether we have cygpath
Packit bc1512
if test -z "$CYGPATH_W"; then
Packit bc1512
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit bc1512
    CYGPATH_W='cygpath -w'
Packit bc1512
  else
Packit bc1512
    CYGPATH_W=echo
Packit bc1512
  fi
Packit bc1512
fi
Packit bc1512
AC_SUBST([CYGPATH_W])
Packit bc1512
Packit bc1512
# Define the identity of the package.
Packit bc1512
dnl Distinguish between old-style and new-style calls.
Packit bc1512
m4_ifval([$2],
Packit bc1512
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit bc1512
 AC_SUBST([PACKAGE], [$1])dnl
Packit bc1512
 AC_SUBST([VERSION], [$2])],
Packit bc1512
[_AM_SET_OPTIONS([$1])dnl
Packit bc1512
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit bc1512
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
Packit bc1512
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit bc1512
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit bc1512
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit bc1512
Packit bc1512
_AM_IF_OPTION([no-define],,
Packit bc1512
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
Packit bc1512
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
Packit bc1512
Packit bc1512
# Some tools Automake needs.
Packit bc1512
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit bc1512
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit bc1512
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
Packit bc1512
AM_MISSING_PROG(AUTOCONF, autoconf)
Packit bc1512
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
Packit bc1512
AM_MISSING_PROG(AUTOHEADER, autoheader)
Packit bc1512
AM_MISSING_PROG(MAKEINFO, makeinfo)
Packit bc1512
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit bc1512
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit bc1512
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
Packit bc1512
# We need awk for the "check" target.  The system "awk" is bad on
Packit bc1512
# some platforms.
Packit bc1512
AC_REQUIRE([AC_PROG_AWK])dnl
Packit bc1512
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit bc1512
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit bc1512
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit bc1512
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit bc1512
			     [_AM_PROG_TAR([v7])])])
Packit bc1512
_AM_IF_OPTION([no-dependencies],,
Packit bc1512
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit bc1512
		  [_AM_DEPENDENCIES(CC)],
Packit bc1512
		  [define([AC_PROG_CC],
Packit bc1512
			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
Packit bc1512
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit bc1512
		  [_AM_DEPENDENCIES(CXX)],
Packit bc1512
		  [define([AC_PROG_CXX],
Packit bc1512
			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
Packit bc1512
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit bc1512
		  [_AM_DEPENDENCIES(OBJC)],
Packit bc1512
		  [define([AC_PROG_OBJC],
Packit bc1512
			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
Packit bc1512
])
Packit bc1512
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
Packit bc1512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
Packit bc1512
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
Packit bc1512
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit bc1512
AC_CONFIG_COMMANDS_PRE(dnl
Packit bc1512
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit bc1512
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit bc1512
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit bc1512
dnl mangled by Autoconf and run in a shell conditional statement.
Packit bc1512
m4_define([_AC_COMPILER_EXEEXT],
Packit bc1512
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit bc1512
Packit bc1512
Packit bc1512
# When config.status generates a header, we must update the stamp-h file.
Packit bc1512
# This file resides in the same directory as the config header
Packit bc1512
# that is generated.  The stamp files are numbered to have different names.
Packit bc1512
Packit bc1512
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit bc1512
# loop where config.status creates the headers, so we can generate
Packit bc1512
# our stamp files there.
Packit bc1512
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit bc1512
[# Compute $1's index in $config_headers.
Packit bc1512
_am_arg=$1
Packit bc1512
_am_stamp_count=1
Packit bc1512
for _am_header in $config_headers :; do
Packit bc1512
  case $_am_header in
Packit bc1512
    $_am_arg | $_am_arg:* )
Packit bc1512
      break ;;
Packit bc1512
    * )
Packit bc1512
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit bc1512
  esac
Packit bc1512
done
Packit bc1512
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
Packit bc1512
# Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# AM_PROG_INSTALL_SH
Packit bc1512
# ------------------
Packit bc1512
# Define $install_sh.
Packit bc1512
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit bc1512
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit bc1512
if test x"${install_sh}" != xset; then
Packit bc1512
  case $am_aux_dir in
Packit bc1512
  *\ * | *\	*)
Packit bc1512
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit bc1512
  *)
Packit bc1512
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit bc1512
  esac
Packit bc1512
fi
Packit bc1512
AC_SUBST(install_sh)])
Packit bc1512
Packit bc1512
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 2
Packit bc1512
Packit bc1512
# Check whether the underlying file-system supports filenames
Packit bc1512
# with a leading dot.  For instance MS-DOS doesn't.
Packit bc1512
AC_DEFUN([AM_SET_LEADING_DOT],
Packit bc1512
[rm -rf .tst 2>/dev/null
Packit bc1512
mkdir .tst 2>/dev/null
Packit bc1512
if test -d .tst; then
Packit bc1512
  am__leading_dot=.
Packit bc1512
else
Packit bc1512
  am__leading_dot=_
Packit bc1512
fi
Packit bc1512
rmdir .tst 2>/dev/null
Packit bc1512
AC_SUBST([am__leading_dot])])
Packit bc1512
Packit bc1512
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
Packit bc1512
# From Jim Meyering
Packit bc1512
Packit bc1512
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
Packit bc1512
# 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 5
Packit bc1512
Packit bc1512
# AM_MAINTAINER_MODE([DEFAULT-MODE])
Packit bc1512
# ----------------------------------
Packit bc1512
# Control maintainer-specific portions of Makefiles.
Packit bc1512
# Default is to disable them, unless `enable' is passed literally.
Packit bc1512
# For symmetry, `disable' may be passed as well.  Anyway, the user
Packit bc1512
# can override the default with the --enable/--disable switch.
Packit bc1512
AC_DEFUN([AM_MAINTAINER_MODE],
Packit bc1512
[m4_case(m4_default([$1], [disable]),
Packit bc1512
       [enable], [m4_define([am_maintainer_other], [disable])],
Packit bc1512
       [disable], [m4_define([am_maintainer_other], [enable])],
Packit bc1512
       [m4_define([am_maintainer_other], [enable])
Packit bc1512
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Packit bc1512
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit bc1512
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Packit bc1512
  AC_ARG_ENABLE([maintainer-mode],
Packit bc1512
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
Packit bc1512
			  (and sometimes confusing) to the casual installer],
Packit bc1512
      [USE_MAINTAINER_MODE=$enableval],
Packit bc1512
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Packit bc1512
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Packit bc1512
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Packit bc1512
  MAINT=$MAINTAINER_MODE_TRUE
Packit bc1512
  AC_SUBST([MAINT])dnl
Packit bc1512
]
Packit bc1512
)
Packit bc1512
Packit bc1512
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
Packit bc1512
Packit bc1512
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 4
Packit bc1512
Packit bc1512
# AM_MAKE_INCLUDE()
Packit bc1512
# -----------------
Packit bc1512
# Check to see how make treats includes.
Packit bc1512
AC_DEFUN([AM_MAKE_INCLUDE],
Packit bc1512
[am_make=${MAKE-make}
Packit bc1512
cat > confinc << 'END'
Packit bc1512
am__doit:
Packit bc1512
	@echo this is the am__doit target
Packit bc1512
.PHONY: am__doit
Packit bc1512
END
Packit bc1512
# If we don't find an include directive, just comment out the code.
Packit bc1512
AC_MSG_CHECKING([for style of include used by $am_make])
Packit bc1512
am__include="#"
Packit bc1512
am__quote=
Packit bc1512
_am_result=none
Packit bc1512
# First try GNU make style include.
Packit bc1512
echo "include confinc" > confmf
Packit bc1512
# Ignore all kinds of additional output from `make'.
Packit bc1512
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit bc1512
*the\ am__doit\ target*)
Packit bc1512
  am__include=include
Packit bc1512
  am__quote=
Packit bc1512
  _am_result=GNU
Packit bc1512
  ;;
Packit bc1512
esac
Packit bc1512
# Now try BSD make style include.
Packit bc1512
if test "$am__include" = "#"; then
Packit bc1512
   echo '.include "confinc"' > confmf
Packit bc1512
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit bc1512
   *the\ am__doit\ target*)
Packit bc1512
     am__include=.include
Packit bc1512
     am__quote="\""
Packit bc1512
     _am_result=BSD
Packit bc1512
     ;;
Packit bc1512
   esac
Packit bc1512
fi
Packit bc1512
AC_SUBST([am__include])
Packit bc1512
AC_SUBST([am__quote])
Packit bc1512
AC_MSG_RESULT([$_am_result])
Packit bc1512
rm -f confinc confmf
Packit bc1512
])
Packit bc1512
Packit bc1512
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
Packit bc1512
# Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 6
Packit bc1512
Packit bc1512
# AM_MISSING_PROG(NAME, PROGRAM)
Packit bc1512
# ------------------------------
Packit bc1512
AC_DEFUN([AM_MISSING_PROG],
Packit bc1512
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit bc1512
$1=${$1-"${am_missing_run}$2"}
Packit bc1512
AC_SUBST($1)])
Packit bc1512
Packit bc1512
Packit bc1512
# AM_MISSING_HAS_RUN
Packit bc1512
# ------------------
Packit bc1512
# Define MISSING if not defined so far and test if it supports --run.
Packit bc1512
# If it does, set am_missing_run to use it, otherwise, to nothing.
Packit bc1512
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit bc1512
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit bc1512
AC_REQUIRE_AUX_FILE([missing])dnl
Packit bc1512
if test x"${MISSING+set}" != xset; then
Packit bc1512
  case $am_aux_dir in
Packit bc1512
  *\ * | *\	*)
Packit bc1512
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit bc1512
  *)
Packit bc1512
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit bc1512
  esac
Packit bc1512
fi
Packit bc1512
# Use eval to expand $SHELL
Packit bc1512
if eval "$MISSING --run true"; then
Packit bc1512
  am_missing_run="$MISSING --run "
Packit bc1512
else
Packit bc1512
  am_missing_run=
Packit bc1512
  AC_MSG_WARN([`missing' script is too old or missing])
Packit bc1512
fi
Packit bc1512
])
Packit bc1512
Packit bc1512
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
Packit bc1512
# Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# AM_PROG_MKDIR_P
Packit bc1512
# ---------------
Packit bc1512
# Check for `mkdir -p'.
Packit bc1512
AC_DEFUN([AM_PROG_MKDIR_P],
Packit bc1512
[AC_PREREQ([2.60])dnl
Packit bc1512
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit bc1512
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
Packit bc1512
dnl while keeping a definition of mkdir_p for backward compatibility.
Packit bc1512
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
Packit bc1512
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
Packit bc1512
dnl Makefile.ins that do not define MKDIR_P, so we do our own
Packit bc1512
dnl adjustment using top_builddir (which is defined more often than
Packit bc1512
dnl MKDIR_P).
Packit bc1512
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
Packit bc1512
case $mkdir_p in
Packit bc1512
  [[\\/$]]* | ?:[[\\/]]*) ;;
Packit bc1512
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Packit bc1512
esac
Packit bc1512
])
Packit bc1512
Packit bc1512
# Helper functions for option handling.                     -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
Packit bc1512
# Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 5
Packit bc1512
Packit bc1512
# _AM_MANGLE_OPTION(NAME)
Packit bc1512
# -----------------------
Packit bc1512
AC_DEFUN([_AM_MANGLE_OPTION],
Packit bc1512
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit bc1512
Packit bc1512
# _AM_SET_OPTION(NAME)
Packit bc1512
# --------------------
Packit bc1512
# Set option NAME.  Presently that only means defining a flag for this option.
Packit bc1512
AC_DEFUN([_AM_SET_OPTION],
Packit bc1512
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
Packit bc1512
Packit bc1512
# _AM_SET_OPTIONS(OPTIONS)
Packit bc1512
# ------------------------
Packit bc1512
# OPTIONS is a space-separated list of Automake options.
Packit bc1512
AC_DEFUN([_AM_SET_OPTIONS],
Packit bc1512
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit bc1512
Packit bc1512
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit bc1512
# -------------------------------------------
Packit bc1512
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit bc1512
AC_DEFUN([_AM_IF_OPTION],
Packit bc1512
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit bc1512
Packit bc1512
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
Packit bc1512
# 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 2
Packit bc1512
Packit bc1512
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit bc1512
# ---------------------------------------------------------------------------
Packit bc1512
# Adds support for distributing Python modules and packages.  To
Packit bc1512
# install modules, copy them to $(pythondir), using the python_PYTHON
Packit bc1512
# automake variable.  To install a package with the same name as the
Packit bc1512
# automake package, install to $(pkgpythondir), or use the
Packit bc1512
# pkgpython_PYTHON automake variable.
Packit bc1512
#
Packit bc1512
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
Packit bc1512
# locations to install python extension modules (shared libraries).
Packit bc1512
# Another macro is required to find the appropriate flags to compile
Packit bc1512
# extension modules.
Packit bc1512
#
Packit bc1512
# If your package is configured with a different prefix to python,
Packit bc1512
# users will have to add the install directory to the PYTHONPATH
Packit bc1512
# environment variable, or create a .pth file (see the python
Packit bc1512
# documentation for details).
Packit bc1512
#
Packit bc1512
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
Packit bc1512
# cause an error if the version of python installed on the system
Packit bc1512
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
Packit bc1512
# numbers and dots only.
Packit bc1512
AC_DEFUN([AM_PATH_PYTHON],
Packit bc1512
 [
Packit bc1512
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
Packit bc1512
  dnl supported. (2.0 was released on October 16, 2000).
Packit bc1512
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
Packit bc1512
[python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
Packit bc1512
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
Packit bc1512
Packit bc1512
  AC_ARG_VAR([PYTHON], [the Python interpreter])
Packit bc1512
Packit bc1512
  m4_if([$1],[],[
Packit bc1512
    dnl No version check is needed.
Packit bc1512
    # Find any Python interpreter.
Packit bc1512
    if test -z "$PYTHON"; then
Packit bc1512
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
Packit bc1512
    fi
Packit bc1512
    am_display_PYTHON=python
Packit bc1512
  ], [
Packit bc1512
    dnl A version check is needed.
Packit bc1512
    if test -n "$PYTHON"; then
Packit bc1512
      # If the user set $PYTHON, use it and don't search something else.
Packit bc1512
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
Packit bc1512
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
Packit bc1512
			      [AC_MSG_RESULT(yes)],
Packit bc1512
			      [AC_MSG_ERROR(too old)])
Packit bc1512
      am_display_PYTHON=$PYTHON
Packit bc1512
    else
Packit bc1512
      # Otherwise, try each interpreter until we find one that satisfies
Packit bc1512
      # VERSION.
Packit bc1512
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
Packit bc1512
	[am_cv_pathless_PYTHON],[
Packit bc1512
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
Packit bc1512
	  test "$am_cv_pathless_PYTHON" = none && break
Packit bc1512
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
Packit bc1512
	done])
Packit bc1512
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
Packit bc1512
      if test "$am_cv_pathless_PYTHON" = none; then
Packit bc1512
	PYTHON=:
Packit bc1512
      else
Packit bc1512
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
Packit bc1512
      fi
Packit bc1512
      am_display_PYTHON=$am_cv_pathless_PYTHON
Packit bc1512
    fi
Packit bc1512
  ])
Packit bc1512
Packit bc1512
  if test "$PYTHON" = :; then
Packit bc1512
  dnl Run any user-specified action, or abort.
Packit bc1512
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
Packit bc1512
  else
Packit bc1512
Packit bc1512
  dnl Query Python for its version number.  Getting [:3] seems to be
Packit bc1512
  dnl the best way to do this; it's what "site.py" does in the standard
Packit bc1512
  dnl library.
Packit bc1512
Packit bc1512
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
Packit bc1512
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
Packit bc1512
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
Packit bc1512
Packit bc1512
  dnl Use the values of $prefix and $exec_prefix for the corresponding
Packit bc1512
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
Packit bc1512
  dnl distinct variables so they can be overridden if need be.  However,
Packit bc1512
  dnl general consensus is that you shouldn't need this ability.
Packit bc1512
Packit bc1512
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
Packit bc1512
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
Packit bc1512
Packit bc1512
  dnl At times (like when building shared libraries) you may want
Packit bc1512
  dnl to know which OS platform Python thinks this is.
Packit bc1512
Packit bc1512
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
Packit bc1512
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
Packit bc1512
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
Packit bc1512
Packit bc1512
Packit bc1512
  dnl Set up 4 directories:
Packit bc1512
Packit bc1512
  dnl pythondir -- where to install python scripts.  This is the
Packit bc1512
  dnl   site-packages directory, not the python standard library
Packit bc1512
  dnl   directory like in previous automake betas.  This behavior
Packit bc1512
  dnl   is more consistent with lispdir.m4 for example.
Packit bc1512
  dnl Query distutils for this directory.
Packit bc1512
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
Packit bc1512
    [am_cv_python_pythondir],
Packit bc1512
    [if test "x$prefix" = xNONE
Packit bc1512
     then
Packit bc1512
       am_py_prefix=$ac_default_prefix
Packit bc1512
     else
Packit bc1512
       am_py_prefix=$prefix
Packit bc1512
     fi
Packit bc1512
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
Packit bc1512
     case $am_cv_python_pythondir in
Packit bc1512
     $am_py_prefix*)
Packit bc1512
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
Packit bc1512
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
Packit bc1512
       ;;
Packit bc1512
     *)
Packit bc1512
       case $am_py_prefix in
Packit bc1512
         /usr|/System*) ;;
Packit bc1512
         *)
Packit bc1512
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit bc1512
	  ;;
Packit bc1512
       esac
Packit bc1512
       ;;
Packit bc1512
     esac
Packit bc1512
    ])
Packit bc1512
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
Packit bc1512
Packit bc1512
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
Packit bc1512
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
Packit bc1512
  dnl   more consistent with the rest of automake.
Packit bc1512
Packit bc1512
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
Packit bc1512
Packit bc1512
  dnl pyexecdir -- directory for installing python extension modules
Packit bc1512
  dnl   (shared libraries)
Packit bc1512
  dnl Query distutils for this directory.
Packit bc1512
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
Packit bc1512
    [am_cv_python_pyexecdir],
Packit bc1512
    [if test "x$exec_prefix" = xNONE
Packit bc1512
     then
Packit bc1512
       am_py_exec_prefix=$am_py_prefix
Packit bc1512
     else
Packit bc1512
       am_py_exec_prefix=$exec_prefix
Packit bc1512
     fi
Packit bc1512
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
Packit bc1512
     case $am_cv_python_pyexecdir in
Packit bc1512
     $am_py_exec_prefix*)
Packit bc1512
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
Packit bc1512
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
Packit bc1512
       ;;
Packit bc1512
     *)
Packit bc1512
       case $am_py_exec_prefix in
Packit bc1512
         /usr|/System*) ;;
Packit bc1512
         *)
Packit bc1512
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit bc1512
	   ;;
Packit bc1512
       esac
Packit bc1512
       ;;
Packit bc1512
     esac
Packit bc1512
    ])
Packit bc1512
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
Packit bc1512
Packit bc1512
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
Packit bc1512
Packit bc1512
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
Packit bc1512
Packit bc1512
  dnl Run any user-specified action.
Packit bc1512
  $2
Packit bc1512
  fi
Packit bc1512
Packit bc1512
])
Packit bc1512
Packit bc1512
Packit bc1512
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
Packit bc1512
# ---------------------------------------------------------------------------
Packit bc1512
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
Packit bc1512
# Run ACTION-IF-FALSE otherwise.
Packit bc1512
# This test uses sys.hexversion instead of the string equivalent (first
Packit bc1512
# word of sys.version), in order to cope with versions such as 2.2c1.
Packit bc1512
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
Packit bc1512
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
Packit bc1512
 [prog="import sys
Packit bc1512
# split strings by '.' and convert to numeric.  Append some zeros
Packit bc1512
# because we need at least 4 digits for the hex conversion.
Packit bc1512
# map returns an iterator in Python 3.0 and a list in 2.x
Packit bc1512
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
Packit bc1512
minverhex = 0
Packit bc1512
# xrange is not present in Python 3.0 and range returns an iterator
Packit bc1512
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
Packit bc1512
sys.exit(sys.hexversion < minverhex)"
Packit bc1512
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# AM_RUN_LOG(COMMAND)
Packit bc1512
# -------------------
Packit bc1512
# Run COMMAND, save the exit status in ac_status, and log it.
Packit bc1512
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Packit bc1512
AC_DEFUN([AM_RUN_LOG],
Packit bc1512
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Packit bc1512
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Packit bc1512
   ac_status=$?
Packit bc1512
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit bc1512
   (exit $ac_status); }])
Packit bc1512
Packit bc1512
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
Packit bc1512
# Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 5
Packit bc1512
Packit bc1512
# AM_SANITY_CHECK
Packit bc1512
# ---------------
Packit bc1512
AC_DEFUN([AM_SANITY_CHECK],
Packit bc1512
[AC_MSG_CHECKING([whether build environment is sane])
Packit bc1512
# Just in case
Packit bc1512
sleep 1
Packit bc1512
echo timestamp > conftest.file
Packit bc1512
# Reject unsafe characters in $srcdir or the absolute working directory
Packit bc1512
# name.  Accept space and tab only in the latter.
Packit bc1512
am_lf='
Packit bc1512
'
Packit bc1512
case `pwd` in
Packit bc1512
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit bc1512
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit bc1512
esac
Packit bc1512
case $srcdir in
Packit bc1512
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit bc1512
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
Packit bc1512
esac
Packit bc1512
Packit bc1512
# Do `set' in a subshell so we don't clobber the current shell's
Packit bc1512
# arguments.  Must try -L first in case configure is actually a
Packit bc1512
# symlink; some systems play weird games with the mod time of symlinks
Packit bc1512
# (eg FreeBSD returns the mod time of the symlink's containing
Packit bc1512
# directory).
Packit bc1512
if (
Packit bc1512
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit bc1512
   if test "$[*]" = "X"; then
Packit bc1512
      # -L didn't work.
Packit bc1512
      set X `ls -t "$srcdir/configure" conftest.file`
Packit bc1512
   fi
Packit bc1512
   rm -f conftest.file
Packit bc1512
   if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit bc1512
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit bc1512
Packit bc1512
      # If neither matched, then we have a broken ls.  This can happen
Packit bc1512
      # if, for instance, CONFIG_SHELL is bash and it inherits a
Packit bc1512
      # broken ls alias from the environment.  This has actually
Packit bc1512
      # happened.  Such a system could not be considered "sane".
Packit bc1512
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit bc1512
alias in your environment])
Packit bc1512
   fi
Packit bc1512
Packit bc1512
   test "$[2]" = conftest.file
Packit bc1512
   )
Packit bc1512
then
Packit bc1512
   # Ok.
Packit bc1512
   :
Packit bc1512
else
Packit bc1512
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit bc1512
Check your system clock])
Packit bc1512
fi
Packit bc1512
AC_MSG_RESULT(yes)])
Packit bc1512
Packit bc1512
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 2
Packit bc1512
Packit bc1512
# AM_SILENT_RULES([DEFAULT])
Packit bc1512
# --------------------------
Packit bc1512
# Enable less verbose build rules; with the default set to DEFAULT
Packit bc1512
# (`yes' being less verbose, `no' or empty being verbose).
Packit bc1512
AC_DEFUN([AM_SILENT_RULES],
Packit bc1512
[AC_ARG_ENABLE([silent-rules],
Packit bc1512
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
Packit bc1512
  --disable-silent-rules         verbose build output (undo: `make V=0')])
Packit bc1512
case $enable_silent_rules in
Packit bc1512
yes) AM_DEFAULT_VERBOSITY=0;;
Packit bc1512
no)  AM_DEFAULT_VERBOSITY=1;;
Packit bc1512
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit bc1512
esac
Packit bc1512
dnl
Packit bc1512
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
Packit bc1512
dnl do not support nested variable expansions.
Packit bc1512
dnl See automake bug#9928 and bug#10237.
Packit bc1512
am_make=${MAKE-make}
Packit bc1512
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit bc1512
   [am_cv_make_support_nested_variables],
Packit bc1512
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit bc1512
BAR0=false
Packit bc1512
BAR1=true
Packit bc1512
V=1
Packit bc1512
am__doit:
Packit bc1512
	@$(TRUE)
Packit bc1512
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit bc1512
  am_cv_make_support_nested_variables=yes
Packit bc1512
else
Packit bc1512
  am_cv_make_support_nested_variables=no
Packit bc1512
fi])
Packit bc1512
if test $am_cv_make_support_nested_variables = yes; then
Packit bc1512
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
Packit bc1512
  AM_V='$(V)'
Packit bc1512
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit bc1512
else
Packit bc1512
  AM_V=$AM_DEFAULT_VERBOSITY
Packit bc1512
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit bc1512
fi
Packit bc1512
AC_SUBST([AM_V])dnl
Packit bc1512
AM_SUBST_NOTMAKE([AM_V])dnl
Packit bc1512
AC_SUBST([AM_DEFAULT_V])dnl
Packit bc1512
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit bc1512
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit bc1512
AM_BACKSLASH='\'
Packit bc1512
AC_SUBST([AM_BACKSLASH])dnl
Packit bc1512
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit bc1512
])
Packit bc1512
Packit bc1512
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 1
Packit bc1512
Packit bc1512
# AM_PROG_INSTALL_STRIP
Packit bc1512
# ---------------------
Packit bc1512
# One issue with vendor `install' (even GNU) is that you can't
Packit bc1512
# specify the program used to strip binaries.  This is especially
Packit bc1512
# annoying in cross-compiling environments, where the build's strip
Packit bc1512
# is unlikely to handle the host's binaries.
Packit bc1512
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit bc1512
# always use install-sh in `make install-strip', and initialize
Packit bc1512
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit bc1512
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit bc1512
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit bc1512
# Installed binaries are usually stripped using `strip' when the user
Packit bc1512
# run `make install-strip'.  However `strip' might not be the right
Packit bc1512
# tool to use in cross-compilation environments, therefore Automake
Packit bc1512
# will honor the `STRIP' environment variable to overrule this program.
Packit bc1512
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
Packit bc1512
if test "$cross_compiling" != no; then
Packit bc1512
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit bc1512
fi
Packit bc1512
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit bc1512
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit bc1512
Packit bc1512
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 3
Packit bc1512
Packit bc1512
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit bc1512
# ---------------------------
Packit bc1512
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit bc1512
# This macro is traced by Automake.
Packit bc1512
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit bc1512
Packit bc1512
# AM_SUBST_NOTMAKE(VARIABLE)
Packit bc1512
# --------------------------
Packit bc1512
# Public sister of _AM_SUBST_NOTMAKE.
Packit bc1512
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit bc1512
Packit bc1512
# Check how to create a tarball.                            -*- Autoconf -*-
Packit bc1512
Packit bc1512
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
Packit bc1512
#
Packit bc1512
# This file is free software; the Free Software Foundation
Packit bc1512
# gives unlimited permission to copy and/or distribute it,
Packit bc1512
# with or without modifications, as long as this notice is preserved.
Packit bc1512
Packit bc1512
# serial 2
Packit bc1512
Packit bc1512
# _AM_PROG_TAR(FORMAT)
Packit bc1512
# --------------------
Packit bc1512
# Check how to create a tarball in format FORMAT.
Packit bc1512
# FORMAT should be one of `v7', `ustar', or `pax'.
Packit bc1512
#
Packit bc1512
# Substitute a variable $(am__tar) that is a command
Packit bc1512
# writing to stdout a FORMAT-tarball containing the directory
Packit bc1512
# $tardir.
Packit bc1512
#     tardir=directory && $(am__tar) > result.tar
Packit bc1512
#
Packit bc1512
# Substitute a variable $(am__untar) that extract such
Packit bc1512
# a tarball read from stdin.
Packit bc1512
#     $(am__untar) < result.tar
Packit bc1512
AC_DEFUN([_AM_PROG_TAR],
Packit bc1512
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit bc1512
# in the wild :-(  We should find a proper way to deprecate it ...
Packit bc1512
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit bc1512
m4_if([$1], [v7],
Packit bc1512
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit bc1512
     [m4_case([$1], [ustar],, [pax],,
Packit bc1512
              [m4_fatal([Unknown tar format])])
Packit bc1512
AC_MSG_CHECKING([how to create a $1 tar archive])
Packit bc1512
# Loop over all known methods to create a tar archive until one works.
Packit bc1512
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit bc1512
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit bc1512
# Do not fold the above two line into one, because Tru64 sh and
Packit bc1512
# Solaris sh will not grok spaces in the rhs of `-'.
Packit bc1512
for _am_tool in $_am_tools
Packit bc1512
do
Packit bc1512
  case $_am_tool in
Packit bc1512
  gnutar)
Packit bc1512
    for _am_tar in tar gnutar gtar;
Packit bc1512
    do
Packit bc1512
      AM_RUN_LOG([$_am_tar --version]) && break
Packit bc1512
    done
Packit bc1512
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit bc1512
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit bc1512
    am__untar="$_am_tar -xf -"
Packit bc1512
    ;;
Packit bc1512
  plaintar)
Packit bc1512
    # Must skip GNU tar: if it does not support --format= it doesn't create
Packit bc1512
    # ustar tarball either.
Packit bc1512
    (tar --version) >/dev/null 2>&1 && continue
Packit bc1512
    am__tar='tar chf - "$$tardir"'
Packit bc1512
    am__tar_='tar chf - "$tardir"'
Packit bc1512
    am__untar='tar xf -'
Packit bc1512
    ;;
Packit bc1512
  pax)
Packit bc1512
    am__tar='pax -L -x $1 -w "$$tardir"'
Packit bc1512
    am__tar_='pax -L -x $1 -w "$tardir"'
Packit bc1512
    am__untar='pax -r'
Packit bc1512
    ;;
Packit bc1512
  cpio)
Packit bc1512
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit bc1512
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit bc1512
    am__untar='cpio -i -H $1 -d'
Packit bc1512
    ;;
Packit bc1512
  none)
Packit bc1512
    am__tar=false
Packit bc1512
    am__tar_=false
Packit bc1512
    am__untar=false
Packit bc1512
    ;;
Packit bc1512
  esac
Packit bc1512
Packit bc1512
  # If the value was cached, stop now.  We just wanted to have am__tar
Packit bc1512
  # and am__untar set.
Packit bc1512
  test -n "${am_cv_prog_tar_$1}" && break
Packit bc1512
Packit bc1512
  # tar/untar a dummy directory, and stop if the command works
Packit bc1512
  rm -rf conftest.dir
Packit bc1512
  mkdir conftest.dir
Packit bc1512
  echo GrepMe > conftest.dir/file
Packit bc1512
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit bc1512
  rm -rf conftest.dir
Packit bc1512
  if test -s conftest.tar; then
Packit bc1512
    AM_RUN_LOG([$am__untar 
Packit bc1512
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit bc1512
  fi
Packit bc1512
done
Packit bc1512
rm -rf conftest.dir
Packit bc1512
Packit bc1512
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit bc1512
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit bc1512
AC_SUBST([am__tar])
Packit bc1512
AC_SUBST([am__untar])
Packit bc1512
]) # _AM_PROG_TAR
Packit bc1512
Packit bc1512
m4_include([m4/as-compiler-flag.m4])
Packit bc1512
m4_include([m4/gegl-variadic-macros.m4])
Packit bc1512
m4_include([m4/gtk-doc.m4])
Packit bc1512
m4_include([m4/introspection.m4])
Packit bc1512
m4_include([m4/libtool.m4])
Packit bc1512
m4_include([m4/ltoptions.m4])
Packit bc1512
m4_include([m4/ltsugar.m4])
Packit bc1512
m4_include([m4/ltversion.m4])
Packit bc1512
m4_include([m4/lt~obsolete.m4])