1# generated automatically by aclocal 1.11.6 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5# Inc. 6# This file is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13# PARTICULAR PURPOSE. 14 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18[m4_warning([this file was generated for autoconf 2.69. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically `autoreconf'.])]) 22 23 24dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) 25# serial 42 IT_PROG_INTLTOOL 26AC_DEFUN([IT_PROG_INTLTOOL], [ 27AC_PREREQ([2.50])dnl 28AC_REQUIRE([AM_NLS])dnl 29 30case "$am__api_version" in 31 1.[01234]) 32 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) 33 ;; 34 *) 35 ;; 36esac 37 38INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 39INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 40INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 41if test -n "$1"; then 42 AC_MSG_CHECKING([for intltool >= $1]) 43 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) 44 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 45 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) 46fi 47 48AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) 49AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) 50AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) 51if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 52 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) 53fi 54 55if test -z "$AM_DEFAULT_VERBOSITY"; then 56 AM_DEFAULT_VERBOSITY=1 57fi 58AC_SUBST([AM_DEFAULT_VERBOSITY]) 59 60INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 61INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 62INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' 63AC_SUBST(INTLTOOL_V_MERGE) 64AC_SUBST(INTLTOOL__v_MERGE_) 65AC_SUBST(INTLTOOL__v_MERGE_0) 66 67INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 68intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 69intltool__v_merge_options_0='-q' 70AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) 71AC_SUBST(intltool__v_merge_options_) 72AC_SUBST(intltool__v_merge_options_0) 73 74 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 $< [$]@' 75INTLTOOL_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 $< [$]@' 76 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 $< [$]@' 77 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 $< [$]@' 78 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 $< [$]@' 79 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 $< [$]@' 80 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 $< [$]@' 81 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 $< [$]@' 82INTLTOOL_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 $< [$]@' 83 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 $< [$]@' 84 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 $< [$]@' 85if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 86 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 $< [$]@' 87else 88 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' 89fi 90 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 $< [$]@' 91 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 $< [$]@' 92 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 $< [$]@' 93 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 $< [$]@' 94 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 $< [$]@' 95 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 $< [$]@' 96 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 $< [$]@' 97 98_IT_SUBST(INTLTOOL_DESKTOP_RULE) 99_IT_SUBST(INTLTOOL_DIRECTORY_RULE) 100_IT_SUBST(INTLTOOL_KEYS_RULE) 101_IT_SUBST(INTLTOOL_PROP_RULE) 102_IT_SUBST(INTLTOOL_OAF_RULE) 103_IT_SUBST(INTLTOOL_PONG_RULE) 104_IT_SUBST(INTLTOOL_SERVER_RULE) 105_IT_SUBST(INTLTOOL_SHEET_RULE) 106_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) 107_IT_SUBST(INTLTOOL_UI_RULE) 108_IT_SUBST(INTLTOOL_XAM_RULE) 109_IT_SUBST(INTLTOOL_KBD_RULE) 110_IT_SUBST(INTLTOOL_XML_RULE) 111_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) 112_IT_SUBST(INTLTOOL_CAVES_RULE) 113_IT_SUBST(INTLTOOL_SCHEMAS_RULE) 114_IT_SUBST(INTLTOOL_THEME_RULE) 115_IT_SUBST(INTLTOOL_SERVICE_RULE) 116_IT_SUBST(INTLTOOL_POLICY_RULE) 117 118# Check the gettext tools to make sure they are GNU 119AC_PATH_PROG(XGETTEXT, xgettext) 120AC_PATH_PROG(MSGMERGE, msgmerge) 121AC_PATH_PROG(MSGFMT, msgfmt) 122AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 123if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 124 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 125fi 126xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 127mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 128mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 129if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 130 AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) 131fi 132 133AC_PATH_PROG(INTLTOOL_PERL, perl) 134if test -z "$INTLTOOL_PERL"; then 135 AC_MSG_ERROR([perl not found]) 136fi 137AC_MSG_CHECKING([for perl >= 5.8.1]) 138$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 139if test $? -ne 0; then 140 AC_MSG_ERROR([perl 5.8.1 is required for intltool]) 141else 142 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 143 AC_MSG_RESULT([$IT_PERL_VERSION]) 144fi 145if test "x$2" != "xno-xml"; then 146 AC_MSG_CHECKING([for XML::Parser]) 147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 148 AC_MSG_RESULT([ok]) 149 else 150 AC_MSG_ERROR([XML::Parser perl module is required for intltool]) 151 fi 152fi 153 154# Substitute ALL_LINGUAS so we can use it in po/Makefile 155AC_SUBST(ALL_LINGUAS) 156 157# Set DATADIRNAME correctly if it is not set yet 158# (copied from glib-gettext.m4) 159if test -z "$DATADIRNAME"; then 160 AC_LINK_IFELSE( 161 [AC_LANG_PROGRAM([[]], 162 [[extern int _nl_msg_cat_cntr; 163 return _nl_msg_cat_cntr]])], 164 [DATADIRNAME=share], 165 [case $host in 166 *-*-solaris*) 167 dnl On Solaris, if bind_textdomain_codeset is in libc, 168 dnl GNU format message catalog is always supported, 169 dnl since both are added to the libc all together. 170 dnl Hence, we'd like to go with DATADIRNAME=share 171 dnl in this case. 172 AC_CHECK_FUNC(bind_textdomain_codeset, 173 [DATADIRNAME=share], [DATADIRNAME=lib]) 174 ;; 175 *) 176 [DATADIRNAME=lib] 177 ;; 178 esac]) 179fi 180AC_SUBST(DATADIRNAME) 181 182IT_PO_SUBDIR([po]) 183 184]) 185 186 187# IT_PO_SUBDIR(DIRNAME) 188# --------------------- 189# All po subdirs have to be declared with this macro; the subdir "po" is 190# declared by IT_PROG_INTLTOOL. 191# 192AC_DEFUN([IT_PO_SUBDIR], 193[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. 194dnl 195dnl The following CONFIG_COMMANDS should be executed at the very end 196dnl of config.status. 197AC_CONFIG_COMMANDS_PRE([ 198 AC_CONFIG_COMMANDS([$1/stamp-it], [ 199 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then 200 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) 201 fi 202 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" 203 >"$1/stamp-it.tmp" 204 [sed '/^#/d 205 s/^[[].*] *// 206 /^[ ]*$/d 207 '"s|^| $ac_top_srcdir/|" \ 208 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" 209 ] 210 [sed '/^POTFILES =/,/[^\\]$/ { 211 /^POTFILES =/!d 212 r $1/POTFILES 213 } 214 ' "$1/Makefile.in" >"$1/Makefile"] 215 rm -f "$1/Makefile.tmp" 216 mv "$1/stamp-it.tmp" "$1/stamp-it" 217 ]) 218])dnl 219]) 220 221# _IT_SUBST(VARIABLE) 222# ------------------- 223# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST 224# 225AC_DEFUN([_IT_SUBST], 226[ 227AC_SUBST([$1]) 228m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) 229] 230) 231 232# deprecated macros 233AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) 234# A hint is needed for aclocal from Automake <= 1.9.4: 235# AC_DEFUN([AC_PROG_INTLTOOL], ...) 236 237 238# nls.m4 serial 5 (gettext-0.18) 239dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, 240dnl Inc. 241dnl This file is free software; the Free Software Foundation 242dnl gives unlimited permission to copy and/or distribute it, 243dnl with or without modifications, as long as this notice is preserved. 244dnl 245dnl This file can can be used in projects which are not available under 246dnl the GNU General Public License or the GNU Library General Public 247dnl License but which still want to provide support for the GNU gettext 248dnl functionality. 249dnl Please note that the actual code of the GNU gettext library is covered 250dnl by the GNU Library General Public License, and the rest of the GNU 251dnl gettext package package is covered by the GNU General Public License. 252dnl They are *not* in the public domain. 253 254dnl Authors: 255dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 256dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 257 258AC_PREREQ([2.50]) 259 260AC_DEFUN([AM_NLS], 261[ 262 AC_MSG_CHECKING([whether NLS is requested]) 263 dnl Default is enabled NLS 264 AC_ARG_ENABLE([nls], 265 [ --disable-nls do not use Native Language Support], 266 USE_NLS=$enableval, USE_NLS=yes) 267 AC_MSG_RESULT([$USE_NLS]) 268 AC_SUBST([USE_NLS]) 269]) 270 271# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 272# Foundation, Inc. 273# 274# This file is free software; the Free Software Foundation 275# gives unlimited permission to copy and/or distribute it, 276# with or without modifications, as long as this notice is preserved. 277 278# serial 1 279 280# AM_AUTOMAKE_VERSION(VERSION) 281# ---------------------------- 282# Automake X.Y traces this macro to ensure aclocal.m4 has been 283# generated from the m4 files accompanying Automake X.Y. 284# (This private macro should not be called outside this file.) 285AC_DEFUN([AM_AUTOMAKE_VERSION], 286[am__api_version='1.11' 287dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 288dnl require some minimum version. Point them to the right macro. 289m4_if([$1], [1.11.6], [], 290 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 291]) 292 293# _AM_AUTOCONF_VERSION(VERSION) 294# ----------------------------- 295# aclocal traces this macro to find the Autoconf version. 296# This is a private macro too. Using m4_define simplifies 297# the logic in aclocal, which can simply ignore this definition. 298m4_define([_AM_AUTOCONF_VERSION], []) 299 300# AM_SET_CURRENT_AUTOMAKE_VERSION 301# ------------------------------- 302# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 303# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 304AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 305[AM_AUTOMAKE_VERSION([1.11.6])dnl 306m4_ifndef([AC_AUTOCONF_VERSION], 307 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 308_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 309 310# AM_AUX_DIR_EXPAND -*- Autoconf -*- 311 312# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 313# 314# This file is free software; the Free Software Foundation 315# gives unlimited permission to copy and/or distribute it, 316# with or without modifications, as long as this notice is preserved. 317 318# serial 1 319 320# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 321# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 322# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 323# 324# Of course, Automake must honor this variable whenever it calls a 325# tool from the auxiliary directory. The problem is that $srcdir (and 326# therefore $ac_aux_dir as well) can be either absolute or relative, 327# depending on how configure is run. This is pretty annoying, since 328# it makes $ac_aux_dir quite unusable in subdirectories: in the top 329# source directory, any form will work fine, but in subdirectories a 330# relative path needs to be adjusted first. 331# 332# $ac_aux_dir/missing 333# fails when called from a subdirectory if $ac_aux_dir is relative 334# $top_srcdir/$ac_aux_dir/missing 335# fails if $ac_aux_dir is absolute, 336# fails when called from a subdirectory in a VPATH build with 337# a relative $ac_aux_dir 338# 339# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 340# are both prefixed by $srcdir. In an in-source build this is usually 341# harmless because $srcdir is `.', but things will broke when you 342# start a VPATH build or use an absolute $srcdir. 343# 344# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 345# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 346# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 347# and then we would define $MISSING as 348# MISSING="\${SHELL} $am_aux_dir/missing" 349# This will work as long as MISSING is not called from configure, because 350# unfortunately $(top_srcdir) has no meaning in configure. 351# However there are other variables, like CC, which are often used in 352# configure, and could therefore not use this "fixed" $ac_aux_dir. 353# 354# Another solution, used here, is to always expand $ac_aux_dir to an 355# absolute PATH. The drawback is that using absolute paths prevent a 356# configured tree to be moved without reconfiguration. 357 358AC_DEFUN([AM_AUX_DIR_EXPAND], 359[dnl Rely on autoconf to set up CDPATH properly. 360AC_PREREQ([2.50])dnl 361# expand $ac_aux_dir to an absolute path 362am_aux_dir=`cd $ac_aux_dir && pwd` 363]) 364 365# AM_CONDITIONAL -*- Autoconf -*- 366 367# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 368# Free Software Foundation, Inc. 369# 370# This file is free software; the Free Software Foundation 371# gives unlimited permission to copy and/or distribute it, 372# with or without modifications, as long as this notice is preserved. 373 374# serial 9 375 376# AM_CONDITIONAL(NAME, SHELL-CONDITION) 377# ------------------------------------- 378# Define a conditional. 379AC_DEFUN([AM_CONDITIONAL], 380[AC_PREREQ(2.52)dnl 381 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 382 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 383AC_SUBST([$1_TRUE])dnl 384AC_SUBST([$1_FALSE])dnl 385_AM_SUBST_NOTMAKE([$1_TRUE])dnl 386_AM_SUBST_NOTMAKE([$1_FALSE])dnl 387m4_define([_AM_COND_VALUE_$1], [$2])dnl 388if $2; then 389 $1_TRUE= 390 $1_FALSE='#' 391else 392 $1_TRUE='#' 393 $1_FALSE= 394fi 395AC_CONFIG_COMMANDS_PRE( 396[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 397 AC_MSG_ERROR([[conditional "$1" was never defined. 398Usually this means the macro was only invoked conditionally.]]) 399fi])]) 400 401# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 402# 2010, 2011 Free Software Foundation, Inc. 403# 404# This file is free software; the Free Software Foundation 405# gives unlimited permission to copy and/or distribute it, 406# with or without modifications, as long as this notice is preserved. 407 408# serial 12 409 410# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 411# written in clear, in which case automake, when reading aclocal.m4, 412# will think it sees a *use*, and therefore will trigger all it's 413# C support machinery. Also note that it means that autoscan, seeing 414# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 415 416 417# _AM_DEPENDENCIES(NAME) 418# ---------------------- 419# See how the compiler implements dependency checking. 420# NAME is "CC", "CXX", "GCJ", or "OBJC". 421# We try a few techniques and use that to set a single cache variable. 422# 423# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 424# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 425# dependency, and given that the user is not expected to run this macro, 426# just rely on AC_PROG_CC. 427AC_DEFUN([_AM_DEPENDENCIES], 428[AC_REQUIRE([AM_SET_DEPDIR])dnl 429AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 430AC_REQUIRE([AM_MAKE_INCLUDE])dnl 431AC_REQUIRE([AM_DEP_TRACK])dnl 432 433ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 434 [$1], CXX, [depcc="$CXX" am_compiler_list=], 435 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 436 [$1], UPC, [depcc="$UPC" am_compiler_list=], 437 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 438 [depcc="$$1" am_compiler_list=]) 439 440AC_CACHE_CHECK([dependency style of $depcc], 441 [am_cv_$1_dependencies_compiler_type], 442[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 443 # We make a subdir and do the tests there. Otherwise we can end up 444 # making bogus files that we don't know about and never remove. For 445 # instance it was reported that on HP-UX the gcc test will end up 446 # making a dummy file named `D' -- because `-MD' means `put the output 447 # in D'. 448 rm -rf conftest.dir 449 mkdir conftest.dir 450 # Copy depcomp to subdir because otherwise we won't find it if we're 451 # using a relative directory. 452 cp "$am_depcomp" conftest.dir 453 cd conftest.dir 454 # We will build objects and dependencies in a subdirectory because 455 # it helps to detect inapplicable dependency modes. For instance 456 # both Tru64's cc and ICC support -MD to output dependencies as a 457 # side effect of compilation, but ICC will put the dependencies in 458 # the current directory while Tru64 will put them in the object 459 # directory. 460 mkdir sub 461 462 am_cv_$1_dependencies_compiler_type=none 463 if test "$am_compiler_list" = ""; then 464 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 465 fi 466 am__universal=false 467 m4_case([$1], [CC], 468 [case " $depcc " in #( 469 *\ -arch\ *\ -arch\ *) am__universal=true ;; 470 esac], 471 [CXX], 472 [case " $depcc " in #( 473 *\ -arch\ *\ -arch\ *) am__universal=true ;; 474 esac]) 475 476 for depmode in $am_compiler_list; do 477 # Setup a source with many dependencies, because some compilers 478 # like to wrap large dependency lists on column 80 (with \), and 479 # we should not choose a depcomp mode which is confused by this. 480 # 481 # We need to recreate these files for each test, as the compiler may 482 # overwrite some of them when testing with obscure command lines. 483 # This happens at least with the AIX C compiler. 484 : > sub/conftest.c 485 for i in 1 2 3 4 5 6; do 486 echo '#include "conftst'$i'.h"' >> sub/conftest.c 487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 488 # Solaris 8's {/usr,}/bin/sh. 489 touch sub/conftst$i.h 490 done 491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 492 493 # We check with `-c' and `-o' for the sake of the "dashmstdout" 494 # mode. It turns out that the SunPro C++ compiler does not properly 495 # handle `-M -o', and we need to detect this. Also, some Intel 496 # versions had trouble with output in subdirs 497 am__obj=sub/conftest.${OBJEXT-o} 498 am__minus_obj="-o $am__obj" 499 case $depmode in 500 gcc) 501 # This depmode causes a compiler race in universal mode. 502 test "$am__universal" = false || continue 503 ;; 504 nosideeffect) 505 # after this tag, mechanisms are not by side-effect, so they'll 506 # only be used when explicitly requested 507 if test "x$enable_dependency_tracking" = xyes; then 508 continue 509 else 510 break 511 fi 512 ;; 513 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 514 # This compiler won't grok `-c -o', but also, the minuso test has 515 # not run yet. These depmodes are late enough in the game, and 516 # so weak that their functioning should not be impacted. 517 am__obj=conftest.${OBJEXT-o} 518 am__minus_obj= 519 ;; 520 none) break ;; 521 esac 522 if depmode=$depmode \ 523 source=sub/conftest.c object=$am__obj \ 524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 525 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 526 >/dev/null 2>conftest.err && 527 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 529 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 531 # icc doesn't choke on unknown options, it will just issue warnings 532 # or remarks (even with -Werror). So we grep stderr for any message 533 # that says an option was ignored or not supported. 534 # When given -MP, icc 7.0 and 7.1 complain thusly: 535 # icc: Command line warning: ignoring option '-M'; no argument required 536 # The diagnosis changed in icc 8.0: 537 # icc: Command line remark: option '-MP' not supported 538 if (grep 'ignoring option' conftest.err || 539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 540 am_cv_$1_dependencies_compiler_type=$depmode 541 break 542 fi 543 fi 544 done 545 546 cd .. 547 rm -rf conftest.dir 548else 549 am_cv_$1_dependencies_compiler_type=none 550fi 551]) 552AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 553AM_CONDITIONAL([am__fastdep$1], [ 554 test "x$enable_dependency_tracking" != xno \ 555 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 556]) 557 558 559# AM_SET_DEPDIR 560# ------------- 561# Choose a directory name for dependency files. 562# This macro is AC_REQUIREd in _AM_DEPENDENCIES 563AC_DEFUN([AM_SET_DEPDIR], 564[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 565AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 566]) 567 568 569# AM_DEP_TRACK 570# ------------ 571AC_DEFUN([AM_DEP_TRACK], 572[AC_ARG_ENABLE(dependency-tracking, 573[ --disable-dependency-tracking speeds up one-time build 574 --enable-dependency-tracking do not reject slow dependency extractors]) 575if test "x$enable_dependency_tracking" != xno; then 576 am_depcomp="$ac_aux_dir/depcomp" 577 AMDEPBACKSLASH='\' 578 am__nodep='_no' 579fi 580AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 581AC_SUBST([AMDEPBACKSLASH])dnl 582_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 583AC_SUBST([am__nodep])dnl 584_AM_SUBST_NOTMAKE([am__nodep])dnl 585]) 586 587# Generate code to set up dependency tracking. -*- Autoconf -*- 588 589# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 590# Free Software Foundation, Inc. 591# 592# This file is free software; the Free Software Foundation 593# gives unlimited permission to copy and/or distribute it, 594# with or without modifications, as long as this notice is preserved. 595 596#serial 5 597 598# _AM_OUTPUT_DEPENDENCY_COMMANDS 599# ------------------------------ 600AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 601[{ 602 # Autoconf 2.62 quotes --file arguments for eval, but not when files 603 # are listed without --file. Let's play safe and only enable the eval 604 # if we detect the quoting. 605 case $CONFIG_FILES in 606 *\'*) eval set x "$CONFIG_FILES" ;; 607 *) set x $CONFIG_FILES ;; 608 esac 609 shift 610 for mf 611 do 612 # Strip MF so we end up with the name of the file. 613 mf=`echo "$mf" | sed -e 's/:.*$//'` 614 # Check whether this is an Automake generated Makefile or not. 615 # We used to match only the files named `Makefile.in', but 616 # some people rename them; so instead we look at the file content. 617 # Grep'ing the first line is not enough: some people post-process 618 # each Makefile.in and add a new line on top of each file to say so. 619 # Grep'ing the whole file is not good either: AIX grep has a line 620 # limit of 2048, but all sed's we know have understand at least 4000. 621 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 622 dirpart=`AS_DIRNAME("$mf")` 623 else 624 continue 625 fi 626 # Extract the definition of DEPDIR, am__include, and am__quote 627 # from the Makefile without running `make'. 628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 629 test -z "$DEPDIR" && continue 630 am__include=`sed -n 's/^am__include = //p' < "$mf"` 631 test -z "am__include" && continue 632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 633 # When using ansi2knr, U may be empty or an underscore; expand it 634 U=`sed -n 's/^U = //p' < "$mf"` 635 # Find all dependency output files, they are included files with 636 # $(DEPDIR) in their names. We invoke sed twice because it is the 637 # simplest approach to changing $(DEPDIR) to its actual value in the 638 # expansion. 639 for file in `sed -n " 640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 642 # Make sure the directory exists. 643 test -f "$dirpart/$file" && continue 644 fdir=`AS_DIRNAME(["$file"])` 645 AS_MKDIR_P([$dirpart/$fdir]) 646 # echo "creating $dirpart/$file" 647 echo '# dummy' > "$dirpart/$file" 648 done 649 done 650} 651])# _AM_OUTPUT_DEPENDENCY_COMMANDS 652 653 654# AM_OUTPUT_DEPENDENCY_COMMANDS 655# ----------------------------- 656# This macro should only be invoked once -- use via AC_REQUIRE. 657# 658# This code is only required when automatic dependency tracking 659# is enabled. FIXME. This creates each `.P' file that we will 660# need in order to bootstrap the dependency handling code. 661AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 662[AC_CONFIG_COMMANDS([depfiles], 663 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 664 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 665]) 666 667# Do all the work for Automake. -*- Autoconf -*- 668 669# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 670# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 671# 672# This file is free software; the Free Software Foundation 673# gives unlimited permission to copy and/or distribute it, 674# with or without modifications, as long as this notice is preserved. 675 676# serial 16 677 678# This macro actually does too much. Some checks are only needed if 679# your package does certain things. But this isn't really a big deal. 680 681# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 682# AM_INIT_AUTOMAKE([OPTIONS]) 683# ----------------------------------------------- 684# The call with PACKAGE and VERSION arguments is the old style 685# call (pre autoconf-2.50), which is being phased out. PACKAGE 686# and VERSION should now be passed to AC_INIT and removed from 687# the call to AM_INIT_AUTOMAKE. 688# We support both call styles for the transition. After 689# the next Automake release, Autoconf can make the AC_INIT 690# arguments mandatory, and then we can depend on a new Autoconf 691# release and drop the old call support. 692AC_DEFUN([AM_INIT_AUTOMAKE], 693[AC_PREREQ([2.62])dnl 694dnl Autoconf wants to disallow AM_ names. We explicitly allow 695dnl the ones we care about. 696m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 697AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 698AC_REQUIRE([AC_PROG_INSTALL])dnl 699if test "`cd $srcdir && pwd`" != "`pwd`"; then 700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 701 # is not polluted with repeated "-I." 702 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 703 # test to see if srcdir already configured 704 if test -f $srcdir/config.status; then 705 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 706 fi 707fi 708 709# test whether we have cygpath 710if test -z "$CYGPATH_W"; then 711 if (cygpath --version) >/dev/null 2>/dev/null; then 712 CYGPATH_W='cygpath -w' 713 else 714 CYGPATH_W=echo 715 fi 716fi 717AC_SUBST([CYGPATH_W]) 718 719# Define the identity of the package. 720dnl Distinguish between old-style and new-style calls. 721m4_ifval([$2], 722[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 723 AC_SUBST([PACKAGE], [$1])dnl 724 AC_SUBST([VERSION], [$2])], 725[_AM_SET_OPTIONS([$1])dnl 726dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 727m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 728 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 729 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 730 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 731 732_AM_IF_OPTION([no-define],, 733[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 734 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 735 736# Some tools Automake needs. 737AC_REQUIRE([AM_SANITY_CHECK])dnl 738AC_REQUIRE([AC_ARG_PROGRAM])dnl 739AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 740AM_MISSING_PROG(AUTOCONF, autoconf) 741AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 742AM_MISSING_PROG(AUTOHEADER, autoheader) 743AM_MISSING_PROG(MAKEINFO, makeinfo) 744AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 745AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 746AC_REQUIRE([AM_PROG_MKDIR_P])dnl 747# We need awk for the "check" target. The system "awk" is bad on 748# some platforms. 749AC_REQUIRE([AC_PROG_AWK])dnl 750AC_REQUIRE([AC_PROG_MAKE_SET])dnl 751AC_REQUIRE([AM_SET_LEADING_DOT])dnl 752_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 753 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 754 [_AM_PROG_TAR([v7])])]) 755_AM_IF_OPTION([no-dependencies],, 756[AC_PROVIDE_IFELSE([AC_PROG_CC], 757 [_AM_DEPENDENCIES(CC)], 758 [define([AC_PROG_CC], 759 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 760AC_PROVIDE_IFELSE([AC_PROG_CXX], 761 [_AM_DEPENDENCIES(CXX)], 762 [define([AC_PROG_CXX], 763 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 764AC_PROVIDE_IFELSE([AC_PROG_OBJC], 765 [_AM_DEPENDENCIES(OBJC)], 766 [define([AC_PROG_OBJC], 767 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 768]) 769_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 770dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 771dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 772dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 773AC_CONFIG_COMMANDS_PRE(dnl 774[m4_provide_if([_AM_COMPILER_EXEEXT], 775 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 776]) 777 778dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 779dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 780dnl mangled by Autoconf and run in a shell conditional statement. 781m4_define([_AC_COMPILER_EXEEXT], 782m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 783 784 785# When config.status generates a header, we must update the stamp-h file. 786# This file resides in the same directory as the config header 787# that is generated. The stamp files are numbered to have different names. 788 789# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 790# loop where config.status creates the headers, so we can generate 791# our stamp files there. 792AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 793[# Compute $1's index in $config_headers. 794_am_arg=$1 795_am_stamp_count=1 796for _am_header in $config_headers :; do 797 case $_am_header in 798 $_am_arg | $_am_arg:* ) 799 break ;; 800 * ) 801 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 802 esac 803done 804echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 805 806# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 807# Inc. 808# 809# This file is free software; the Free Software Foundation 810# gives unlimited permission to copy and/or distribute it, 811# with or without modifications, as long as this notice is preserved. 812 813# serial 1 814 815# AM_PROG_INSTALL_SH 816# ------------------ 817# Define $install_sh. 818AC_DEFUN([AM_PROG_INSTALL_SH], 819[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 820if test x"${install_sh}" != xset; then 821 case $am_aux_dir in 822 *\ * | *\ *) 823 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 824 *) 825 install_sh="\${SHELL} $am_aux_dir/install-sh" 826 esac 827fi 828AC_SUBST(install_sh)]) 829 830# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 831# 832# This file is free software; the Free Software Foundation 833# gives unlimited permission to copy and/or distribute it, 834# with or without modifications, as long as this notice is preserved. 835 836# serial 2 837 838# Check whether the underlying file-system supports filenames 839# with a leading dot. For instance MS-DOS doesn't. 840AC_DEFUN([AM_SET_LEADING_DOT], 841[rm -rf .tst 2>/dev/null 842mkdir .tst 2>/dev/null 843if test -d .tst; then 844 am__leading_dot=. 845else 846 am__leading_dot=_ 847fi 848rmdir .tst 2>/dev/null 849AC_SUBST([am__leading_dot])]) 850 851# Check to see how 'make' treats includes. -*- Autoconf -*- 852 853# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 854# 855# This file is free software; the Free Software Foundation 856# gives unlimited permission to copy and/or distribute it, 857# with or without modifications, as long as this notice is preserved. 858 859# serial 4 860 861# AM_MAKE_INCLUDE() 862# ----------------- 863# Check to see how make treats includes. 864AC_DEFUN([AM_MAKE_INCLUDE], 865[am_make=${MAKE-make} 866cat > confinc << 'END' 867am__doit: 868 @echo this is the am__doit target 869.PHONY: am__doit 870END 871# If we don't find an include directive, just comment out the code. 872AC_MSG_CHECKING([for style of include used by $am_make]) 873am__include="#" 874am__quote= 875_am_result=none 876# First try GNU make style include. 877echo "include confinc" > confmf 878# Ignore all kinds of additional output from `make'. 879case `$am_make -s -f confmf 2> /dev/null` in #( 880*the\ am__doit\ target*) 881 am__include=include 882 am__quote= 883 _am_result=GNU 884 ;; 885esac 886# Now try BSD make style include. 887if test "$am__include" = "#"; then 888 echo '.include "confinc"' > confmf 889 case `$am_make -s -f confmf 2> /dev/null` in #( 890 *the\ am__doit\ target*) 891 am__include=.include 892 am__quote="\"" 893 _am_result=BSD 894 ;; 895 esac 896fi 897AC_SUBST([am__include]) 898AC_SUBST([am__quote]) 899AC_MSG_RESULT([$_am_result]) 900rm -f confinc confmf 901]) 902 903# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 904 905# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 906# Free Software Foundation, Inc. 907# 908# This file is free software; the Free Software Foundation 909# gives unlimited permission to copy and/or distribute it, 910# with or without modifications, as long as this notice is preserved. 911 912# serial 6 913 914# AM_MISSING_PROG(NAME, PROGRAM) 915# ------------------------------ 916AC_DEFUN([AM_MISSING_PROG], 917[AC_REQUIRE([AM_MISSING_HAS_RUN]) 918$1=${$1-"${am_missing_run}$2"} 919AC_SUBST($1)]) 920 921 922# AM_MISSING_HAS_RUN 923# ------------------ 924# Define MISSING if not defined so far and test if it supports --run. 925# If it does, set am_missing_run to use it, otherwise, to nothing. 926AC_DEFUN([AM_MISSING_HAS_RUN], 927[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 928AC_REQUIRE_AUX_FILE([missing])dnl 929if test x"${MISSING+set}" != xset; then 930 case $am_aux_dir in 931 *\ * | *\ *) 932 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 933 *) 934 MISSING="\${SHELL} $am_aux_dir/missing" ;; 935 esac 936fi 937# Use eval to expand $SHELL 938if eval "$MISSING --run true"; then 939 am_missing_run="$MISSING --run " 940else 941 am_missing_run= 942 AC_MSG_WARN([`missing' script is too old or missing]) 943fi 944]) 945 946# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 947# Inc. 948# 949# This file is free software; the Free Software Foundation 950# gives unlimited permission to copy and/or distribute it, 951# with or without modifications, as long as this notice is preserved. 952 953# serial 1 954 955# AM_PROG_MKDIR_P 956# --------------- 957# Check for `mkdir -p'. 958AC_DEFUN([AM_PROG_MKDIR_P], 959[AC_PREREQ([2.60])dnl 960AC_REQUIRE([AC_PROG_MKDIR_P])dnl 961dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 962dnl while keeping a definition of mkdir_p for backward compatibility. 963dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 964dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 965dnl Makefile.ins that do not define MKDIR_P, so we do our own 966dnl adjustment using top_builddir (which is defined more often than 967dnl MKDIR_P). 968AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 969case $mkdir_p in 970 [[\\/$]]* | ?:[[\\/]]*) ;; 971 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 972esac 973]) 974 975# Helper functions for option handling. -*- Autoconf -*- 976 977# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 978# Foundation, Inc. 979# 980# This file is free software; the Free Software Foundation 981# gives unlimited permission to copy and/or distribute it, 982# with or without modifications, as long as this notice is preserved. 983 984# serial 5 985 986# _AM_MANGLE_OPTION(NAME) 987# ----------------------- 988AC_DEFUN([_AM_MANGLE_OPTION], 989[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 990 991# _AM_SET_OPTION(NAME) 992# -------------------- 993# Set option NAME. Presently that only means defining a flag for this option. 994AC_DEFUN([_AM_SET_OPTION], 995[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 996 997# _AM_SET_OPTIONS(OPTIONS) 998# ------------------------ 999# OPTIONS is a space-separated list of Automake options. 1000AC_DEFUN([_AM_SET_OPTIONS], 1001[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1002 1003# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1004# ------------------------------------------- 1005# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1006AC_DEFUN([_AM_IF_OPTION], 1007[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1008 1009# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 1010# 1011# This file is free software; the Free Software Foundation 1012# gives unlimited permission to copy and/or distribute it, 1013# with or without modifications, as long as this notice is preserved. 1014 1015# serial 1 1016 1017# AM_RUN_LOG(COMMAND) 1018# ------------------- 1019# Run COMMAND, save the exit status in ac_status, and log it. 1020# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1021AC_DEFUN([AM_RUN_LOG], 1022[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1023 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1024 ac_status=$? 1025 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1026 (exit $ac_status); }]) 1027 1028# Check to make sure that the build environment is sane. -*- Autoconf -*- 1029 1030# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 1031# Free Software Foundation, Inc. 1032# 1033# This file is free software; the Free Software Foundation 1034# gives unlimited permission to copy and/or distribute it, 1035# with or without modifications, as long as this notice is preserved. 1036 1037# serial 5 1038 1039# AM_SANITY_CHECK 1040# --------------- 1041AC_DEFUN([AM_SANITY_CHECK], 1042[AC_MSG_CHECKING([whether build environment is sane]) 1043# Just in case 1044sleep 1 1045echo timestamp > conftest.file 1046# Reject unsafe characters in $srcdir or the absolute working directory 1047# name. Accept space and tab only in the latter. 1048am_lf=' 1049' 1050case `pwd` in 1051 *[[\\\"\#\$\&\'\`$am_lf]]*) 1052 AC_MSG_ERROR([unsafe absolute working directory name]);; 1053esac 1054case $srcdir in 1055 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1056 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 1057esac 1058 1059# Do `set' in a subshell so we don't clobber the current shell's 1060# arguments. Must try -L first in case configure is actually a 1061# symlink; some systems play weird games with the mod time of symlinks 1062# (eg FreeBSD returns the mod time of the symlink's containing 1063# directory). 1064if ( 1065 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1066 if test "$[*]" = "X"; then 1067 # -L didn't work. 1068 set X `ls -t "$srcdir/configure" conftest.file` 1069 fi 1070 rm -f conftest.file 1071 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1072 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1073 1074 # If neither matched, then we have a broken ls. This can happen 1075 # if, for instance, CONFIG_SHELL is bash and it inherits a 1076 # broken ls alias from the environment. This has actually 1077 # happened. Such a system could not be considered "sane". 1078 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1079alias in your environment]) 1080 fi 1081 1082 test "$[2]" = conftest.file 1083 ) 1084then 1085 # Ok. 1086 : 1087else 1088 AC_MSG_ERROR([newly created file is older than distributed files! 1089Check your system clock]) 1090fi 1091AC_MSG_RESULT(yes)]) 1092 1093# Copyright (C) 2009, 2011 Free Software Foundation, Inc. 1094# 1095# This file is free software; the Free Software Foundation 1096# gives unlimited permission to copy and/or distribute it, 1097# with or without modifications, as long as this notice is preserved. 1098 1099# serial 2 1100 1101# AM_SILENT_RULES([DEFAULT]) 1102# -------------------------- 1103# Enable less verbose build rules; with the default set to DEFAULT 1104# (`yes' being less verbose, `no' or empty being verbose). 1105AC_DEFUN([AM_SILENT_RULES], 1106[AC_ARG_ENABLE([silent-rules], 1107[ --enable-silent-rules less verbose build output (undo: `make V=1') 1108 --disable-silent-rules verbose build output (undo: `make V=0')]) 1109case $enable_silent_rules in 1110yes) AM_DEFAULT_VERBOSITY=0;; 1111no) AM_DEFAULT_VERBOSITY=1;; 1112*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1113esac 1114dnl 1115dnl A few `make' implementations (e.g., NonStop OS and NextStep) 1116dnl do not support nested variable expansions. 1117dnl See automake bug#9928 and bug#10237. 1118am_make=${MAKE-make} 1119AC_CACHE_CHECK([whether $am_make supports nested variables], 1120 [am_cv_make_support_nested_variables], 1121 [if AS_ECHO([['TRUE=$(BAR$(V)) 1122BAR0=false 1123BAR1=true 1124V=1 1125am__doit: 1126 @$(TRUE) 1127.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1128 am_cv_make_support_nested_variables=yes 1129else 1130 am_cv_make_support_nested_variables=no 1131fi]) 1132if test $am_cv_make_support_nested_variables = yes; then 1133 dnl Using `$V' instead of `$(V)' breaks IRIX make. 1134 AM_V='$(V)' 1135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1136else 1137 AM_V=$AM_DEFAULT_VERBOSITY 1138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1139fi 1140AC_SUBST([AM_V])dnl 1141AM_SUBST_NOTMAKE([AM_V])dnl 1142AC_SUBST([AM_DEFAULT_V])dnl 1143AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1144AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1145AM_BACKSLASH='\' 1146AC_SUBST([AM_BACKSLASH])dnl 1147_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1148]) 1149 1150# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 1151# 1152# This file is free software; the Free Software Foundation 1153# gives unlimited permission to copy and/or distribute it, 1154# with or without modifications, as long as this notice is preserved. 1155 1156# serial 1 1157 1158# AM_PROG_INSTALL_STRIP 1159# --------------------- 1160# One issue with vendor `install' (even GNU) is that you can't 1161# specify the program used to strip binaries. This is especially 1162# annoying in cross-compiling environments, where the build's strip 1163# is unlikely to handle the host's binaries. 1164# Fortunately install-sh will honor a STRIPPROG variable, so we 1165# always use install-sh in `make install-strip', and initialize 1166# STRIPPROG with the value of the STRIP variable (set by the user). 1167AC_DEFUN([AM_PROG_INSTALL_STRIP], 1168[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1169# Installed binaries are usually stripped using `strip' when the user 1170# run `make install-strip'. However `strip' might not be the right 1171# tool to use in cross-compilation environments, therefore Automake 1172# will honor the `STRIP' environment variable to overrule this program. 1173dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1174if test "$cross_compiling" != no; then 1175 AC_CHECK_TOOL([STRIP], [strip], :) 1176fi 1177INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1178AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1179 1180# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 1181# 1182# This file is free software; the Free Software Foundation 1183# gives unlimited permission to copy and/or distribute it, 1184# with or without modifications, as long as this notice is preserved. 1185 1186# serial 3 1187 1188# _AM_SUBST_NOTMAKE(VARIABLE) 1189# --------------------------- 1190# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1191# This macro is traced by Automake. 1192AC_DEFUN([_AM_SUBST_NOTMAKE]) 1193 1194# AM_SUBST_NOTMAKE(VARIABLE) 1195# -------------------------- 1196# Public sister of _AM_SUBST_NOTMAKE. 1197AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1198 1199# Check how to create a tarball. -*- Autoconf -*- 1200 1201# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 1202# 1203# This file is free software; the Free Software Foundation 1204# gives unlimited permission to copy and/or distribute it, 1205# with or without modifications, as long as this notice is preserved. 1206 1207# serial 2 1208 1209# _AM_PROG_TAR(FORMAT) 1210# -------------------- 1211# Check how to create a tarball in format FORMAT. 1212# FORMAT should be one of `v7', `ustar', or `pax'. 1213# 1214# Substitute a variable $(am__tar) that is a command 1215# writing to stdout a FORMAT-tarball containing the directory 1216# $tardir. 1217# tardir=directory && $(am__tar) > result.tar 1218# 1219# Substitute a variable $(am__untar) that extract such 1220# a tarball read from stdin. 1221# $(am__untar) < result.tar 1222AC_DEFUN([_AM_PROG_TAR], 1223[# Always define AMTAR for backward compatibility. Yes, it's still used 1224# in the wild :-( We should find a proper way to deprecate it ... 1225AC_SUBST([AMTAR], ['$${TAR-tar}']) 1226m4_if([$1], [v7], 1227 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1228 [m4_case([$1], [ustar],, [pax],, 1229 [m4_fatal([Unknown tar format])]) 1230AC_MSG_CHECKING([how to create a $1 tar archive]) 1231# Loop over all known methods to create a tar archive until one works. 1232_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1233_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1234# Do not fold the above two line into one, because Tru64 sh and 1235# Solaris sh will not grok spaces in the rhs of `-'. 1236for _am_tool in $_am_tools 1237do 1238 case $_am_tool in 1239 gnutar) 1240 for _am_tar in tar gnutar gtar; 1241 do 1242 AM_RUN_LOG([$_am_tar --version]) && break 1243 done 1244 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1245 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1246 am__untar="$_am_tar -xf -" 1247 ;; 1248 plaintar) 1249 # Must skip GNU tar: if it does not support --format= it doesn't create 1250 # ustar tarball either. 1251 (tar --version) >/dev/null 2>&1 && continue 1252 am__tar='tar chf - "$$tardir"' 1253 am__tar_='tar chf - "$tardir"' 1254 am__untar='tar xf -' 1255 ;; 1256 pax) 1257 am__tar='pax -L -x $1 -w "$$tardir"' 1258 am__tar_='pax -L -x $1 -w "$tardir"' 1259 am__untar='pax -r' 1260 ;; 1261 cpio) 1262 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1263 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1264 am__untar='cpio -i -H $1 -d' 1265 ;; 1266 none) 1267 am__tar=false 1268 am__tar_=false 1269 am__untar=false 1270 ;; 1271 esac 1272 1273 # If the value was cached, stop now. We just wanted to have am__tar 1274 # and am__untar set. 1275 test -n "${am_cv_prog_tar_$1}" && break 1276 1277 # tar/untar a dummy directory, and stop if the command works 1278 rm -rf conftest.dir 1279 mkdir conftest.dir 1280 echo GrepMe > conftest.dir/file 1281 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1282 rm -rf conftest.dir 1283 if test -s conftest.tar; then 1284 AM_RUN_LOG([$am__untar <conftest.tar]) 1285 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1286 fi 1287done 1288rm -rf conftest.dir 1289 1290AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1291AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1292AC_SUBST([am__tar]) 1293AC_SUBST([am__untar]) 1294]) # _AM_PROG_TAR 1295 1296m4_include([m4/acx-pthread.m4]) 1297m4_include([m4/check-ssl.m4]) 1298m4_include([m4/glib-gettext.m4]) 1299m4_include([m4/libtool.m4]) 1300m4_include([m4/ltoptions.m4]) 1301m4_include([m4/ltsugar.m4]) 1302m4_include([m4/ltversion.m4]) 1303m4_include([m4/lt~obsolete.m4]) 1304m4_include([m4/pkg.m4]) 1305m4_include([m4/zlib.m4]) 1306