1# generated automatically by aclocal 1.13.4 -*- Autoconf -*- 2 3# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 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# Copyright (C) 1995-2002 Free Software Foundation, Inc. 24# Copyright (C) 2001-2003,2004 Red Hat, Inc. 25# 26# This file is free software, distributed under the terms of the GNU 27# General Public License. As a special exception to the GNU General 28# Public License, this file may be distributed as part of a program 29# that contains a configuration script generated by Autoconf, under 30# the same distribution terms as the rest of that program. 31# 32# This file can be copied and used freely without restrictions. It can 33# be used in projects which are not available under the GNU Public License 34# but which still want to provide support for the GNU gettext functionality. 35# 36# Macro to add for using GNU gettext. 37# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 38# 39# Modified to never use included libintl. 40# Owen Taylor <otaylor@redhat.com>, 12/15/1998 41# 42# Major rework to remove unused code 43# Owen Taylor <otaylor@redhat.com>, 12/11/2002 44# 45# Added better handling of ALL_LINGUAS from GNU gettext version 46# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 47# 48# Modified to require ngettext 49# Matthias Clasen <mclasen@redhat.com> 08/06/2004 50# 51# We need this here as well, since someone might use autoconf-2.5x 52# to configure GLib then an older version to configure a package 53# using AM_GLIB_GNU_GETTEXT 54AC_PREREQ(2.53) 55 56dnl 57dnl We go to great lengths to make sure that aclocal won't 58dnl try to pull in the installed version of these macros 59dnl when running aclocal in the glib directory. 60dnl 61m4_copy([AC_DEFUN],[glib_DEFUN]) 62m4_copy([AC_REQUIRE],[glib_REQUIRE]) 63dnl 64dnl At the end, if we're not within glib, we'll define the public 65dnl definitions in terms of our private definitions. 66dnl 67 68# GLIB_LC_MESSAGES 69#-------------------- 70glib_DEFUN([GLIB_LC_MESSAGES], 71 [AC_CHECK_HEADERS([locale.h]) 72 if test $ac_cv_header_locale_h = yes; then 73 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, 74 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], 75 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) 76 if test $am_cv_val_LC_MESSAGES = yes; then 77 AC_DEFINE(HAVE_LC_MESSAGES, 1, 78 [Define if your <locale.h> file defines LC_MESSAGES.]) 79 fi 80 fi]) 81 82# GLIB_PATH_PROG_WITH_TEST 83#---------------------------- 84dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, 85dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) 86glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], 87[# Extract the first word of "$2", so it can be a program name with args. 88set dummy $2; ac_word=[$]2 89AC_MSG_CHECKING([for $ac_word]) 90AC_CACHE_VAL(ac_cv_path_$1, 91[case "[$]$1" in 92 /*) 93 ac_cv_path_$1="[$]$1" # Let the user override the test with a path. 94 ;; 95 *) 96 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 97 for ac_dir in ifelse([$5], , $PATH, [$5]); do 98 test -z "$ac_dir" && ac_dir=. 99 if test -f $ac_dir/$ac_word; then 100 if [$3]; then 101 ac_cv_path_$1="$ac_dir/$ac_word" 102 break 103 fi 104 fi 105 done 106 IFS="$ac_save_ifs" 107dnl If no 4th arg is given, leave the cache variable unset, 108dnl so AC_PATH_PROGS will keep looking. 109ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" 110])dnl 111 ;; 112esac])dnl 113$1="$ac_cv_path_$1" 114if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then 115 AC_MSG_RESULT([$]$1) 116else 117 AC_MSG_RESULT(no) 118fi 119AC_SUBST($1)dnl 120]) 121 122# GLIB_WITH_NLS 123#----------------- 124glib_DEFUN([GLIB_WITH_NLS], 125 dnl NLS is obligatory 126 [USE_NLS=yes 127 AC_SUBST(USE_NLS) 128 129 gt_cv_have_gettext=no 130 131 CATOBJEXT=NONE 132 XGETTEXT=: 133 INTLLIBS= 134 135 AC_CHECK_HEADER(libintl.h, 136 [gt_cv_func_dgettext_libintl="no" 137 libintl_extra_libs="" 138 139 # 140 # First check in libc 141 # 142 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, 143 [AC_TRY_LINK([ 144#include <libintl.h> 145], 146 [return !ngettext ("","", 1)], 147 gt_cv_func_ngettext_libc=yes, 148 gt_cv_func_ngettext_libc=no) 149 ]) 150 151 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 152 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, 153 [AC_TRY_LINK([ 154#include <libintl.h> 155], 156 [return !dgettext ("","")], 157 gt_cv_func_dgettext_libc=yes, 158 gt_cv_func_dgettext_libc=no) 159 ]) 160 fi 161 162 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 163 AC_CHECK_FUNCS(bind_textdomain_codeset) 164 fi 165 166 # 167 # If we don't have everything we want, check in libintl 168 # 169 if test "$gt_cv_func_dgettext_libc" != "yes" \ 170 || test "$gt_cv_func_ngettext_libc" != "yes" \ 171 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 172 173 AC_CHECK_LIB(intl, bindtextdomain, 174 [AC_CHECK_LIB(intl, ngettext, 175 [AC_CHECK_LIB(intl, dgettext, 176 gt_cv_func_dgettext_libintl=yes)])]) 177 178 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 179 AC_MSG_CHECKING([if -liconv is needed to use gettext]) 180 AC_MSG_RESULT([]) 181 AC_CHECK_LIB(intl, ngettext, 182 [AC_CHECK_LIB(intl, dcgettext, 183 [gt_cv_func_dgettext_libintl=yes 184 libintl_extra_libs=-liconv], 185 :,-liconv)], 186 :,-liconv) 187 fi 188 189 # 190 # If we found libintl, then check in it for bind_textdomain_codeset(); 191 # we'll prefer libc if neither have bind_textdomain_codeset(), 192 # and both have dgettext and ngettext 193 # 194 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 195 glib_save_LIBS="$LIBS" 196 LIBS="$LIBS -lintl $libintl_extra_libs" 197 unset ac_cv_func_bind_textdomain_codeset 198 AC_CHECK_FUNCS(bind_textdomain_codeset) 199 LIBS="$glib_save_LIBS" 200 201 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 202 gt_cv_func_dgettext_libc=no 203 else 204 if test "$gt_cv_func_dgettext_libc" = "yes" \ 205 && test "$gt_cv_func_ngettext_libc" = "yes"; then 206 gt_cv_func_dgettext_libintl=no 207 fi 208 fi 209 fi 210 fi 211 212 if test "$gt_cv_func_dgettext_libc" = "yes" \ 213 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 214 gt_cv_have_gettext=yes 215 fi 216 217 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 218 INTLLIBS="-lintl $libintl_extra_libs" 219 fi 220 221 if test "$gt_cv_have_gettext" = "yes"; then 222 AC_DEFINE(HAVE_GETTEXT,1, 223 [Define if the GNU gettext() function is already present or preinstalled.]) 224 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, 225 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl 226 if test "$MSGFMT" != "no"; then 227 glib_save_LIBS="$LIBS" 228 LIBS="$LIBS $INTLLIBS" 229 AC_CHECK_FUNCS(dcgettext) 230 MSGFMT_OPTS= 231 AC_MSG_CHECKING([if msgfmt accepts -c]) 232 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ 233msgid "" 234msgstr "" 235"Content-Type: text/plain; charset=UTF-8\n" 236"Project-Id-Version: test 1.0\n" 237"PO-Revision-Date: 2007-02-15 12:01+0100\n" 238"Last-Translator: test <foo@bar.xx>\n" 239"Language-Team: C <LL@li.org>\n" 240"MIME-Version: 1.0\n" 241"Content-Transfer-Encoding: 8bit\n" 242], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) 243 AC_SUBST(MSGFMT_OPTS) 244 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) 245 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, 246 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) 247 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; 248 return _nl_msg_cat_cntr], 249 [CATOBJEXT=.gmo 250 DATADIRNAME=share], 251 [case $host in 252 *-*-solaris*) 253 dnl On Solaris, if bind_textdomain_codeset is in libc, 254 dnl GNU format message catalog is always supported, 255 dnl since both are added to the libc all together. 256 dnl Hence, we'd like to go with DATADIRNAME=share and 257 dnl and CATOBJEXT=.gmo in this case. 258 AC_CHECK_FUNC(bind_textdomain_codeset, 259 [CATOBJEXT=.gmo 260 DATADIRNAME=share], 261 [CATOBJEXT=.mo 262 DATADIRNAME=lib]) 263 ;; 264 *-*-openbsd*) 265 CATOBJEXT=.mo 266 DATADIRNAME=share 267 ;; 268 *) 269 CATOBJEXT=.mo 270 DATADIRNAME=lib 271 ;; 272 esac]) 273 LIBS="$glib_save_LIBS" 274 INSTOBJEXT=.mo 275 else 276 gt_cv_have_gettext=no 277 fi 278 fi 279 ]) 280 281 if test "$gt_cv_have_gettext" = "yes" ; then 282 AC_DEFINE(ENABLE_NLS, 1, 283 [always defined to indicate that i18n is enabled]) 284 fi 285 286 dnl Test whether we really found GNU xgettext. 287 if test "$XGETTEXT" != ":"; then 288 dnl If it is not GNU xgettext we define it as : so that the 289 dnl Makefiles still can work. 290 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 291 : ; 292 else 293 AC_MSG_RESULT( 294 [found xgettext program is not GNU xgettext; ignore it]) 295 XGETTEXT=":" 296 fi 297 fi 298 299 # We need to process the po/ directory. 300 POSUB=po 301 302 AC_OUTPUT_COMMANDS( 303 [case "$CONFIG_FILES" in *po/Makefile.in*) 304 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 305 esac]) 306 307 dnl These rules are solely for the distribution goal. While doing this 308 dnl we only have to keep exactly one list of the available catalogs 309 dnl in configure.ac. 310 for lang in $ALL_LINGUAS; do 311 GMOFILES="$GMOFILES $lang.gmo" 312 POFILES="$POFILES $lang.po" 313 done 314 315 dnl Make all variables we use known to autoconf. 316 AC_SUBST(CATALOGS) 317 AC_SUBST(CATOBJEXT) 318 AC_SUBST(DATADIRNAME) 319 AC_SUBST(GMOFILES) 320 AC_SUBST(INSTOBJEXT) 321 AC_SUBST(INTLLIBS) 322 AC_SUBST(PO_IN_DATADIR_TRUE) 323 AC_SUBST(PO_IN_DATADIR_FALSE) 324 AC_SUBST(POFILES) 325 AC_SUBST(POSUB) 326 ]) 327 328# AM_GLIB_GNU_GETTEXT 329# ------------------- 330# Do checks necessary for use of gettext. If a suitable implementation 331# of gettext is found in either in libintl or in the C library, 332# it will set INTLLIBS to the libraries needed for use of gettext 333# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable 334# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() 335# on various variables needed by the Makefile.in.in installed by 336# glib-gettextize. 337dnl 338glib_DEFUN([GLIB_GNU_GETTEXT], 339 [AC_REQUIRE([AC_PROG_CC])dnl 340 341 GLIB_LC_MESSAGES 342 GLIB_WITH_NLS 343 344 if test "$gt_cv_have_gettext" = "yes"; then 345 if test "x$ALL_LINGUAS" = "x"; then 346 LINGUAS= 347 else 348 AC_MSG_CHECKING(for catalogs to be installed) 349 NEW_LINGUAS= 350 for presentlang in $ALL_LINGUAS; do 351 useit=no 352 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 353 desiredlanguages="$LINGUAS" 354 else 355 desiredlanguages="$ALL_LINGUAS" 356 fi 357 for desiredlang in $desiredlanguages; do 358 # Use the presentlang catalog if desiredlang is 359 # a. equal to presentlang, or 360 # b. a variant of presentlang (because in this case, 361 # presentlang can be used as a fallback for messages 362 # which are not translated in the desiredlang catalog). 363 case "$desiredlang" in 364 "$presentlang"*) useit=yes;; 365 esac 366 done 367 if test $useit = yes; then 368 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 369 fi 370 done 371 LINGUAS=$NEW_LINGUAS 372 AC_MSG_RESULT($LINGUAS) 373 fi 374 375 dnl Construct list of names of catalog files to be constructed. 376 if test -n "$LINGUAS"; then 377 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 378 fi 379 fi 380 381 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly 382 dnl find the mkinstalldirs script in another subdir but ($top_srcdir). 383 dnl Try to locate is. 384 MKINSTALLDIRS= 385 if test -n "$ac_aux_dir"; then 386 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 387 fi 388 if test -z "$MKINSTALLDIRS"; then 389 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 390 fi 391 AC_SUBST(MKINSTALLDIRS) 392 393 dnl Generate list of files to be processed by xgettext which will 394 dnl be included in po/Makefile. 395 test -d po || mkdir po 396 if test "x$srcdir" != "x."; then 397 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 398 posrcprefix="$srcdir/" 399 else 400 posrcprefix="../$srcdir/" 401 fi 402 else 403 posrcprefix="../" 404 fi 405 rm -f po/POTFILES 406 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 407 < $srcdir/po/POTFILES.in > po/POTFILES 408 ]) 409 410# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 411# ------------------------------- 412# Define VARIABLE to the location where catalog files will 413# be installed by po/Makefile. 414glib_DEFUN([GLIB_DEFINE_LOCALEDIR], 415[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl 416glib_save_prefix="$prefix" 417glib_save_exec_prefix="$exec_prefix" 418glib_save_datarootdir="$datarootdir" 419test "x$prefix" = xNONE && prefix=$ac_default_prefix 420test "x$exec_prefix" = xNONE && exec_prefix=$prefix 421datarootdir=`eval echo "${datarootdir}"` 422if test "x$CATOBJEXT" = "x.mo" ; then 423 localedir=`eval echo "${libdir}/locale"` 424else 425 localedir=`eval echo "${datadir}/locale"` 426fi 427prefix="$glib_save_prefix" 428exec_prefix="$glib_save_exec_prefix" 429datarootdir="$glib_save_datarootdir" 430AC_DEFINE_UNQUOTED($1, "$localedir", 431 [Define the location where the catalogs will be installed]) 432]) 433 434dnl 435dnl Now the definitions that aclocal will find 436dnl 437ifdef(glib_configure_ac,[],[ 438AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) 439AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 440])dnl 441 442# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 443# 444# Create a temporary file with TEST-FILE as its contents and pass the 445# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with 446# 0 and perform ACTION-IF-FAIL for any other exit status. 447AC_DEFUN([GLIB_RUN_PROG], 448[cat >conftest.foo <<_ACEOF 449$2 450_ACEOF 451if AC_RUN_LOG([$1 conftest.foo]); then 452 m4_ifval([$3], [$3], [:]) 453m4_ifvaln([$4], [else $4])dnl 454echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD 455sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 456fi]) 457 458 459dnl Autoconf macros for libgcrypt 460dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc. 461dnl 462dnl This file is free software; as a special exception the author gives 463dnl unlimited permission to copy and/or distribute it, with or without 464dnl modifications, as long as this notice is preserved. 465dnl 466dnl This file is distributed in the hope that it will be useful, but 467dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 468dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 469 470 471dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION, 472dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) 473dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS. 474dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed 475dnl with the API version to also check the API compatibility. Example: 476dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed 477dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using 478dnl this features allows to prevent build against newer versions of libgcrypt 479dnl with a changed API. 480dnl 481AC_DEFUN([AM_PATH_LIBGCRYPT], 482[ AC_ARG_WITH(libgcrypt-prefix, 483 AC_HELP_STRING([--with-libgcrypt-prefix=PFX], 484 [prefix where LIBGCRYPT is installed (optional)]), 485 libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="") 486 if test x$libgcrypt_config_prefix != x ; then 487 if test x${LIBGCRYPT_CONFIG+set} != xset ; then 488 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config 489 fi 490 fi 491 492 AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no) 493 tmp=ifelse([$1], ,1:1.2.0,$1) 494 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 495 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 496 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 497 else 498 req_libgcrypt_api=0 499 min_libgcrypt_version="$tmp" 500 fi 501 502 AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version) 503 ok=no 504 if test "$LIBGCRYPT_CONFIG" != "no" ; then 505 req_major=`echo $min_libgcrypt_version | \ 506 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` 507 req_minor=`echo $min_libgcrypt_version | \ 508 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` 509 req_micro=`echo $min_libgcrypt_version | \ 510 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` 511 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 512 major=`echo $libgcrypt_config_version | \ 513 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` 514 minor=`echo $libgcrypt_config_version | \ 515 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` 516 micro=`echo $libgcrypt_config_version | \ 517 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` 518 if test "$major" -gt "$req_major"; then 519 ok=yes 520 else 521 if test "$major" -eq "$req_major"; then 522 if test "$minor" -gt "$req_minor"; then 523 ok=yes 524 else 525 if test "$minor" -eq "$req_minor"; then 526 if test "$micro" -ge "$req_micro"; then 527 ok=yes 528 fi 529 fi 530 fi 531 fi 532 fi 533 fi 534 if test $ok = yes; then 535 AC_MSG_RESULT([yes ($libgcrypt_config_version)]) 536 else 537 AC_MSG_RESULT(no) 538 fi 539 if test $ok = yes; then 540 # If we have a recent libgcrypt, we should also check that the 541 # API is compatible 542 if test "$req_libgcrypt_api" -gt 0 ; then 543 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 544 if test "$tmp" -gt 0 ; then 545 AC_MSG_CHECKING([LIBGCRYPT API version]) 546 if test "$req_libgcrypt_api" -eq "$tmp" ; then 547 AC_MSG_RESULT([okay]) 548 else 549 ok=no 550 AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp]) 551 fi 552 fi 553 fi 554 fi 555 if test $ok = yes; then 556 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 557 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 558 ifelse([$2], , :, [$2]) 559 if test x"$host" != x ; then 560 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` 561 if test x"$libgcrypt_config_host" != xnone ; then 562 if test x"$libgcrypt_config_host" != x"$host" ; then 563 AC_MSG_WARN([[ 564*** 565*** The config script $LIBGCRYPT_CONFIG was 566*** built for $libgcrypt_config_host and thus may not match the 567*** used host $host. 568*** You may want to use the configure option --with-libgcrypt-prefix 569*** to specify a matching config script. 570***]]) 571 fi 572 fi 573 fi 574 else 575 LIBGCRYPT_CFLAGS="" 576 LIBGCRYPT_LIBS="" 577 ifelse([$3], , :, [$3]) 578 fi 579 AC_SUBST(LIBGCRYPT_CFLAGS) 580 AC_SUBST(LIBGCRYPT_LIBS) 581]) 582 583# nls.m4 serial 5 (gettext-0.18) 584dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, 585dnl Inc. 586dnl This file is free software; the Free Software Foundation 587dnl gives unlimited permission to copy and/or distribute it, 588dnl with or without modifications, as long as this notice is preserved. 589dnl 590dnl This file can can be used in projects which are not available under 591dnl the GNU General Public License or the GNU Library General Public 592dnl License but which still want to provide support for the GNU gettext 593dnl functionality. 594dnl Please note that the actual code of the GNU gettext library is covered 595dnl by the GNU Library General Public License, and the rest of the GNU 596dnl gettext package package is covered by the GNU General Public License. 597dnl They are *not* in the public domain. 598 599dnl Authors: 600dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 601dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 602 603AC_PREREQ([2.50]) 604 605AC_DEFUN([AM_NLS], 606[ 607 AC_MSG_CHECKING([whether NLS is requested]) 608 dnl Default is enabled NLS 609 AC_ARG_ENABLE([nls], 610 [ --disable-nls do not use Native Language Support], 611 USE_NLS=$enableval, USE_NLS=yes) 612 AC_MSG_RESULT([$USE_NLS]) 613 AC_SUBST([USE_NLS]) 614]) 615 616# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 617# serial 1 (pkg-config-0.24) 618# 619# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 620# 621# This program is free software; you can redistribute it and/or modify 622# it under the terms of the GNU General Public License as published by 623# the Free Software Foundation; either version 2 of the License, or 624# (at your option) any later version. 625# 626# This program is distributed in the hope that it will be useful, but 627# WITHOUT ANY WARRANTY; without even the implied warranty of 628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 629# General Public License for more details. 630# 631# You should have received a copy of the GNU General Public License 632# along with this program; if not, write to the Free Software 633# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 634# 635# As a special exception to the GNU General Public License, if you 636# distribute this file as part of a program that contains a 637# configuration script generated by Autoconf, you may include it under 638# the same distribution terms that you use for the rest of that program. 639 640# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 641# ---------------------------------- 642AC_DEFUN([PKG_PROG_PKG_CONFIG], 643[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 644m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 645m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 646AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 647AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 648AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 649 650if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 651 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 652fi 653if test -n "$PKG_CONFIG"; then 654 _pkg_min_version=m4_default([$1], [0.9.0]) 655 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 656 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 657 AC_MSG_RESULT([yes]) 658 else 659 AC_MSG_RESULT([no]) 660 PKG_CONFIG="" 661 fi 662fi[]dnl 663])# PKG_PROG_PKG_CONFIG 664 665# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 666# 667# Check to see whether a particular set of modules exists. Similar 668# to PKG_CHECK_MODULES(), but does not set variables or print errors. 669# 670# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 671# only at the first occurence in configure.ac, so if the first place 672# it's called might be skipped (such as if it is within an "if", you 673# have to call PKG_CHECK_EXISTS manually 674# -------------------------------------------------------------- 675AC_DEFUN([PKG_CHECK_EXISTS], 676[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 677if test -n "$PKG_CONFIG" && \ 678 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 679 m4_default([$2], [:]) 680m4_ifvaln([$3], [else 681 $3])dnl 682fi]) 683 684# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 685# --------------------------------------------- 686m4_define([_PKG_CONFIG], 687[if test -n "$$1"; then 688 pkg_cv_[]$1="$$1" 689 elif test -n "$PKG_CONFIG"; then 690 PKG_CHECK_EXISTS([$3], 691 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 692 test "x$?" != "x0" && pkg_failed=yes ], 693 [pkg_failed=yes]) 694 else 695 pkg_failed=untried 696fi[]dnl 697])# _PKG_CONFIG 698 699# _PKG_SHORT_ERRORS_SUPPORTED 700# ----------------------------- 701AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 702[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 704 _pkg_short_errors_supported=yes 705else 706 _pkg_short_errors_supported=no 707fi[]dnl 708])# _PKG_SHORT_ERRORS_SUPPORTED 709 710 711# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 712# [ACTION-IF-NOT-FOUND]) 713# 714# 715# Note that if there is a possibility the first call to 716# PKG_CHECK_MODULES might not happen, you should be sure to include an 717# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 718# 719# 720# -------------------------------------------------------------- 721AC_DEFUN([PKG_CHECK_MODULES], 722[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 723AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 724AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 725 726pkg_failed=no 727AC_MSG_CHECKING([for $1]) 728 729_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 730_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 731 732m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 733and $1[]_LIBS to avoid the need to call pkg-config. 734See the pkg-config man page for more details.]) 735 736if test $pkg_failed = yes; then 737 AC_MSG_RESULT([no]) 738 _PKG_SHORT_ERRORS_SUPPORTED 739 if test $_pkg_short_errors_supported = yes; then 740 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 741 else 742 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 743 fi 744 # Put the nasty error message in config.log where it belongs 745 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 746 747 m4_default([$4], [AC_MSG_ERROR( 748[Package requirements ($2) were not met: 749 750$$1_PKG_ERRORS 751 752Consider adjusting the PKG_CONFIG_PATH environment variable if you 753installed software in a non-standard prefix. 754 755_PKG_TEXT])[]dnl 756 ]) 757elif test $pkg_failed = untried; then 758 AC_MSG_RESULT([no]) 759 m4_default([$4], [AC_MSG_FAILURE( 760[The pkg-config script could not be found or is too old. Make sure it 761is in your PATH or set the PKG_CONFIG environment variable to the full 762path to pkg-config. 763 764_PKG_TEXT 765 766To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 767 ]) 768else 769 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 770 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 771 AC_MSG_RESULT([yes]) 772 $3 773fi[]dnl 774])# PKG_CHECK_MODULES 775 776 777# PKG_INSTALLDIR(DIRECTORY) 778# ------------------------- 779# Substitutes the variable pkgconfigdir as the location where a module 780# should install pkg-config .pc files. By default the directory is 781# $libdir/pkgconfig, but the default can be changed by passing 782# DIRECTORY. The user can override through the --with-pkgconfigdir 783# parameter. 784AC_DEFUN([PKG_INSTALLDIR], 785[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 786m4_pushdef([pkg_description], 787 [pkg-config installation directory @<:@]pkg_default[@:>@]) 788AC_ARG_WITH([pkgconfigdir], 789 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 790 [with_pkgconfigdir=]pkg_default) 791AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 792m4_popdef([pkg_default]) 793m4_popdef([pkg_description]) 794]) dnl PKG_INSTALLDIR 795 796 797# PKG_NOARCH_INSTALLDIR(DIRECTORY) 798# ------------------------- 799# Substitutes the variable noarch_pkgconfigdir as the location where a 800# module should install arch-independent pkg-config .pc files. By 801# default the directory is $datadir/pkgconfig, but the default can be 802# changed by passing DIRECTORY. The user can override through the 803# --with-noarch-pkgconfigdir parameter. 804AC_DEFUN([PKG_NOARCH_INSTALLDIR], 805[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 806m4_pushdef([pkg_description], 807 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 808AC_ARG_WITH([noarch-pkgconfigdir], 809 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 810 [with_noarch_pkgconfigdir=]pkg_default) 811AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 812m4_popdef([pkg_default]) 813m4_popdef([pkg_description]) 814]) dnl PKG_NOARCH_INSTALLDIR 815 816 817# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 818# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 819# ------------------------------------------- 820# Retrieves the value of the pkg-config variable for the given module. 821AC_DEFUN([PKG_CHECK_VAR], 822[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 823AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 824 825_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 826AS_VAR_COPY([$1], [pkg_cv_][$1]) 827 828AS_VAR_IF([$1], [""], [$5], [$4])dnl 829])# PKG_CHECK_VAR 830 831# Copyright (C) 2002-2013 Free Software Foundation, Inc. 832# 833# This file is free software; the Free Software Foundation 834# gives unlimited permission to copy and/or distribute it, 835# with or without modifications, as long as this notice is preserved. 836 837# AM_AUTOMAKE_VERSION(VERSION) 838# ---------------------------- 839# Automake X.Y traces this macro to ensure aclocal.m4 has been 840# generated from the m4 files accompanying Automake X.Y. 841# (This private macro should not be called outside this file.) 842AC_DEFUN([AM_AUTOMAKE_VERSION], 843[am__api_version='1.13' 844dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 845dnl require some minimum version. Point them to the right macro. 846m4_if([$1], [1.13.4], [], 847 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 848]) 849 850# _AM_AUTOCONF_VERSION(VERSION) 851# ----------------------------- 852# aclocal traces this macro to find the Autoconf version. 853# This is a private macro too. Using m4_define simplifies 854# the logic in aclocal, which can simply ignore this definition. 855m4_define([_AM_AUTOCONF_VERSION], []) 856 857# AM_SET_CURRENT_AUTOMAKE_VERSION 858# ------------------------------- 859# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 860# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 861AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 862[AM_AUTOMAKE_VERSION([1.13.4])dnl 863m4_ifndef([AC_AUTOCONF_VERSION], 864 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 865_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 866 867# AM_AUX_DIR_EXPAND -*- Autoconf -*- 868 869# Copyright (C) 2001-2013 Free Software Foundation, Inc. 870# 871# This file is free software; the Free Software Foundation 872# gives unlimited permission to copy and/or distribute it, 873# with or without modifications, as long as this notice is preserved. 874 875# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 876# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 877# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 878# 879# Of course, Automake must honor this variable whenever it calls a 880# tool from the auxiliary directory. The problem is that $srcdir (and 881# therefore $ac_aux_dir as well) can be either absolute or relative, 882# depending on how configure is run. This is pretty annoying, since 883# it makes $ac_aux_dir quite unusable in subdirectories: in the top 884# source directory, any form will work fine, but in subdirectories a 885# relative path needs to be adjusted first. 886# 887# $ac_aux_dir/missing 888# fails when called from a subdirectory if $ac_aux_dir is relative 889# $top_srcdir/$ac_aux_dir/missing 890# fails if $ac_aux_dir is absolute, 891# fails when called from a subdirectory in a VPATH build with 892# a relative $ac_aux_dir 893# 894# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 895# are both prefixed by $srcdir. In an in-source build this is usually 896# harmless because $srcdir is '.', but things will broke when you 897# start a VPATH build or use an absolute $srcdir. 898# 899# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 900# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 901# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 902# and then we would define $MISSING as 903# MISSING="\${SHELL} $am_aux_dir/missing" 904# This will work as long as MISSING is not called from configure, because 905# unfortunately $(top_srcdir) has no meaning in configure. 906# However there are other variables, like CC, which are often used in 907# configure, and could therefore not use this "fixed" $ac_aux_dir. 908# 909# Another solution, used here, is to always expand $ac_aux_dir to an 910# absolute PATH. The drawback is that using absolute paths prevent a 911# configured tree to be moved without reconfiguration. 912 913AC_DEFUN([AM_AUX_DIR_EXPAND], 914[dnl Rely on autoconf to set up CDPATH properly. 915AC_PREREQ([2.50])dnl 916# expand $ac_aux_dir to an absolute path 917am_aux_dir=`cd $ac_aux_dir && pwd` 918]) 919 920# AM_CONDITIONAL -*- Autoconf -*- 921 922# Copyright (C) 1997-2013 Free Software Foundation, Inc. 923# 924# This file is free software; the Free Software Foundation 925# gives unlimited permission to copy and/or distribute it, 926# with or without modifications, as long as this notice is preserved. 927 928# AM_CONDITIONAL(NAME, SHELL-CONDITION) 929# ------------------------------------- 930# Define a conditional. 931AC_DEFUN([AM_CONDITIONAL], 932[AC_PREREQ([2.52])dnl 933 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 934 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 935AC_SUBST([$1_TRUE])dnl 936AC_SUBST([$1_FALSE])dnl 937_AM_SUBST_NOTMAKE([$1_TRUE])dnl 938_AM_SUBST_NOTMAKE([$1_FALSE])dnl 939m4_define([_AM_COND_VALUE_$1], [$2])dnl 940if $2; then 941 $1_TRUE= 942 $1_FALSE='#' 943else 944 $1_TRUE='#' 945 $1_FALSE= 946fi 947AC_CONFIG_COMMANDS_PRE( 948[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 949 AC_MSG_ERROR([[conditional "$1" was never defined. 950Usually this means the macro was only invoked conditionally.]]) 951fi])]) 952 953# Copyright (C) 1999-2013 Free Software Foundation, Inc. 954# 955# This file is free software; the Free Software Foundation 956# gives unlimited permission to copy and/or distribute it, 957# with or without modifications, as long as this notice is preserved. 958 959 960# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 961# written in clear, in which case automake, when reading aclocal.m4, 962# will think it sees a *use*, and therefore will trigger all it's 963# C support machinery. Also note that it means that autoscan, seeing 964# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 965 966 967# _AM_DEPENDENCIES(NAME) 968# ---------------------- 969# See how the compiler implements dependency checking. 970# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 971# We try a few techniques and use that to set a single cache variable. 972# 973# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 974# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 975# dependency, and given that the user is not expected to run this macro, 976# just rely on AC_PROG_CC. 977AC_DEFUN([_AM_DEPENDENCIES], 978[AC_REQUIRE([AM_SET_DEPDIR])dnl 979AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 980AC_REQUIRE([AM_MAKE_INCLUDE])dnl 981AC_REQUIRE([AM_DEP_TRACK])dnl 982 983m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 984 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 985 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 986 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 987 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 988 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 989 [depcc="$$1" am_compiler_list=]) 990 991AC_CACHE_CHECK([dependency style of $depcc], 992 [am_cv_$1_dependencies_compiler_type], 993[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 994 # We make a subdir and do the tests there. Otherwise we can end up 995 # making bogus files that we don't know about and never remove. For 996 # instance it was reported that on HP-UX the gcc test will end up 997 # making a dummy file named 'D' -- because '-MD' means "put the output 998 # in D". 999 rm -rf conftest.dir 1000 mkdir conftest.dir 1001 # Copy depcomp to subdir because otherwise we won't find it if we're 1002 # using a relative directory. 1003 cp "$am_depcomp" conftest.dir 1004 cd conftest.dir 1005 # We will build objects and dependencies in a subdirectory because 1006 # it helps to detect inapplicable dependency modes. For instance 1007 # both Tru64's cc and ICC support -MD to output dependencies as a 1008 # side effect of compilation, but ICC will put the dependencies in 1009 # the current directory while Tru64 will put them in the object 1010 # directory. 1011 mkdir sub 1012 1013 am_cv_$1_dependencies_compiler_type=none 1014 if test "$am_compiler_list" = ""; then 1015 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 1016 fi 1017 am__universal=false 1018 m4_case([$1], [CC], 1019 [case " $depcc " in #( 1020 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1021 esac], 1022 [CXX], 1023 [case " $depcc " in #( 1024 *\ -arch\ *\ -arch\ *) am__universal=true ;; 1025 esac]) 1026 1027 for depmode in $am_compiler_list; do 1028 # Setup a source with many dependencies, because some compilers 1029 # like to wrap large dependency lists on column 80 (with \), and 1030 # we should not choose a depcomp mode which is confused by this. 1031 # 1032 # We need to recreate these files for each test, as the compiler may 1033 # overwrite some of them when testing with obscure command lines. 1034 # This happens at least with the AIX C compiler. 1035 : > sub/conftest.c 1036 for i in 1 2 3 4 5 6; do 1037 echo '#include "conftst'$i'.h"' >> sub/conftest.c 1038 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 1039 # Solaris 10 /bin/sh. 1040 echo '/* dummy */' > sub/conftst$i.h 1041 done 1042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 1043 1044 # We check with '-c' and '-o' for the sake of the "dashmstdout" 1045 # mode. It turns out that the SunPro C++ compiler does not properly 1046 # handle '-M -o', and we need to detect this. Also, some Intel 1047 # versions had trouble with output in subdirs. 1048 am__obj=sub/conftest.${OBJEXT-o} 1049 am__minus_obj="-o $am__obj" 1050 case $depmode in 1051 gcc) 1052 # This depmode causes a compiler race in universal mode. 1053 test "$am__universal" = false || continue 1054 ;; 1055 nosideeffect) 1056 # After this tag, mechanisms are not by side-effect, so they'll 1057 # only be used when explicitly requested. 1058 if test "x$enable_dependency_tracking" = xyes; then 1059 continue 1060 else 1061 break 1062 fi 1063 ;; 1064 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 1065 # This compiler won't grok '-c -o', but also, the minuso test has 1066 # not run yet. These depmodes are late enough in the game, and 1067 # so weak that their functioning should not be impacted. 1068 am__obj=conftest.${OBJEXT-o} 1069 am__minus_obj= 1070 ;; 1071 none) break ;; 1072 esac 1073 if depmode=$depmode \ 1074 source=sub/conftest.c object=$am__obj \ 1075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 1076 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 1077 >/dev/null 2>conftest.err && 1078 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 1079 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 1080 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 1081 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1082 # icc doesn't choke on unknown options, it will just issue warnings 1083 # or remarks (even with -Werror). So we grep stderr for any message 1084 # that says an option was ignored or not supported. 1085 # When given -MP, icc 7.0 and 7.1 complain thusly: 1086 # icc: Command line warning: ignoring option '-M'; no argument required 1087 # The diagnosis changed in icc 8.0: 1088 # icc: Command line remark: option '-MP' not supported 1089 if (grep 'ignoring option' conftest.err || 1090 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 1091 am_cv_$1_dependencies_compiler_type=$depmode 1092 break 1093 fi 1094 fi 1095 done 1096 1097 cd .. 1098 rm -rf conftest.dir 1099else 1100 am_cv_$1_dependencies_compiler_type=none 1101fi 1102]) 1103AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 1104AM_CONDITIONAL([am__fastdep$1], [ 1105 test "x$enable_dependency_tracking" != xno \ 1106 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 1107]) 1108 1109 1110# AM_SET_DEPDIR 1111# ------------- 1112# Choose a directory name for dependency files. 1113# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 1114AC_DEFUN([AM_SET_DEPDIR], 1115[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1116AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 1117]) 1118 1119 1120# AM_DEP_TRACK 1121# ------------ 1122AC_DEFUN([AM_DEP_TRACK], 1123[AC_ARG_ENABLE([dependency-tracking], [dnl 1124AS_HELP_STRING( 1125 [--enable-dependency-tracking], 1126 [do not reject slow dependency extractors]) 1127AS_HELP_STRING( 1128 [--disable-dependency-tracking], 1129 [speeds up one-time build])]) 1130if test "x$enable_dependency_tracking" != xno; then 1131 am_depcomp="$ac_aux_dir/depcomp" 1132 AMDEPBACKSLASH='\' 1133 am__nodep='_no' 1134fi 1135AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 1136AC_SUBST([AMDEPBACKSLASH])dnl 1137_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 1138AC_SUBST([am__nodep])dnl 1139_AM_SUBST_NOTMAKE([am__nodep])dnl 1140]) 1141 1142# Generate code to set up dependency tracking. -*- Autoconf -*- 1143 1144# Copyright (C) 1999-2013 Free Software Foundation, Inc. 1145# 1146# This file is free software; the Free Software Foundation 1147# gives unlimited permission to copy and/or distribute it, 1148# with or without modifications, as long as this notice is preserved. 1149 1150 1151# _AM_OUTPUT_DEPENDENCY_COMMANDS 1152# ------------------------------ 1153AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 1154[{ 1155 # Older Autoconf quotes --file arguments for eval, but not when files 1156 # are listed without --file. Let's play safe and only enable the eval 1157 # if we detect the quoting. 1158 case $CONFIG_FILES in 1159 *\'*) eval set x "$CONFIG_FILES" ;; 1160 *) set x $CONFIG_FILES ;; 1161 esac 1162 shift 1163 for mf 1164 do 1165 # Strip MF so we end up with the name of the file. 1166 mf=`echo "$mf" | sed -e 's/:.*$//'` 1167 # Check whether this is an Automake generated Makefile or not. 1168 # We used to match only the files named 'Makefile.in', but 1169 # some people rename them; so instead we look at the file content. 1170 # Grep'ing the first line is not enough: some people post-process 1171 # each Makefile.in and add a new line on top of each file to say so. 1172 # Grep'ing the whole file is not good either: AIX grep has a line 1173 # limit of 2048, but all sed's we know have understand at least 4000. 1174 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1175 dirpart=`AS_DIRNAME("$mf")` 1176 else 1177 continue 1178 fi 1179 # Extract the definition of DEPDIR, am__include, and am__quote 1180 # from the Makefile without running 'make'. 1181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 1182 test -z "$DEPDIR" && continue 1183 am__include=`sed -n 's/^am__include = //p' < "$mf"` 1184 test -z "$am__include" && continue 1185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 1186 # Find all dependency output files, they are included files with 1187 # $(DEPDIR) in their names. We invoke sed twice because it is the 1188 # simplest approach to changing $(DEPDIR) to its actual value in the 1189 # expansion. 1190 for file in `sed -n " 1191 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 1192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 1193 # Make sure the directory exists. 1194 test -f "$dirpart/$file" && continue 1195 fdir=`AS_DIRNAME(["$file"])` 1196 AS_MKDIR_P([$dirpart/$fdir]) 1197 # echo "creating $dirpart/$file" 1198 echo '# dummy' > "$dirpart/$file" 1199 done 1200 done 1201} 1202])# _AM_OUTPUT_DEPENDENCY_COMMANDS 1203 1204 1205# AM_OUTPUT_DEPENDENCY_COMMANDS 1206# ----------------------------- 1207# This macro should only be invoked once -- use via AC_REQUIRE. 1208# 1209# This code is only required when automatic dependency tracking 1210# is enabled. FIXME. This creates each '.P' file that we will 1211# need in order to bootstrap the dependency handling code. 1212AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 1213[AC_CONFIG_COMMANDS([depfiles], 1214 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 1215 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 1216]) 1217 1218# Do all the work for Automake. -*- Autoconf -*- 1219 1220# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1221# 1222# This file is free software; the Free Software Foundation 1223# gives unlimited permission to copy and/or distribute it, 1224# with or without modifications, as long as this notice is preserved. 1225 1226# This macro actually does too much. Some checks are only needed if 1227# your package does certain things. But this isn't really a big deal. 1228 1229# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 1230# AM_INIT_AUTOMAKE([OPTIONS]) 1231# ----------------------------------------------- 1232# The call with PACKAGE and VERSION arguments is the old style 1233# call (pre autoconf-2.50), which is being phased out. PACKAGE 1234# and VERSION should now be passed to AC_INIT and removed from 1235# the call to AM_INIT_AUTOMAKE. 1236# We support both call styles for the transition. After 1237# the next Automake release, Autoconf can make the AC_INIT 1238# arguments mandatory, and then we can depend on a new Autoconf 1239# release and drop the old call support. 1240AC_DEFUN([AM_INIT_AUTOMAKE], 1241[AC_PREREQ([2.65])dnl 1242dnl Autoconf wants to disallow AM_ names. We explicitly allow 1243dnl the ones we care about. 1244m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 1245AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 1246AC_REQUIRE([AC_PROG_INSTALL])dnl 1247if test "`cd $srcdir && pwd`" != "`pwd`"; then 1248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 1249 # is not polluted with repeated "-I." 1250 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 1251 # test to see if srcdir already configured 1252 if test -f $srcdir/config.status; then 1253 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 1254 fi 1255fi 1256 1257# test whether we have cygpath 1258if test -z "$CYGPATH_W"; then 1259 if (cygpath --version) >/dev/null 2>/dev/null; then 1260 CYGPATH_W='cygpath -w' 1261 else 1262 CYGPATH_W=echo 1263 fi 1264fi 1265AC_SUBST([CYGPATH_W]) 1266 1267# Define the identity of the package. 1268dnl Distinguish between old-style and new-style calls. 1269m4_ifval([$2], 1270[AC_DIAGNOSE([obsolete], 1271 [$0: two- and three-arguments forms are deprecated.]) 1272m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 1273 AC_SUBST([PACKAGE], [$1])dnl 1274 AC_SUBST([VERSION], [$2])], 1275[_AM_SET_OPTIONS([$1])dnl 1276dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 1277m4_if( 1278 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 1279 [ok:ok],, 1280 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 1281 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 1282 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 1283 1284_AM_IF_OPTION([no-define],, 1285[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 1286 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 1287 1288# Some tools Automake needs. 1289AC_REQUIRE([AM_SANITY_CHECK])dnl 1290AC_REQUIRE([AC_ARG_PROGRAM])dnl 1291AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 1292AM_MISSING_PROG([AUTOCONF], [autoconf]) 1293AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 1294AM_MISSING_PROG([AUTOHEADER], [autoheader]) 1295AM_MISSING_PROG([MAKEINFO], [makeinfo]) 1296AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1297AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 1298AC_REQUIRE([AC_PROG_MKDIR_P])dnl 1299# For better backward compatibility. To be removed once Automake 1.9.x 1300# dies out for good. For more background, see: 1301# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 1302# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 1303AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 1304# We need awk for the "check" target. The system "awk" is bad on 1305# some platforms. 1306AC_REQUIRE([AC_PROG_AWK])dnl 1307AC_REQUIRE([AC_PROG_MAKE_SET])dnl 1308AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1309_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 1310 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 1311 [_AM_PROG_TAR([v7])])]) 1312_AM_IF_OPTION([no-dependencies],, 1313[AC_PROVIDE_IFELSE([AC_PROG_CC], 1314 [_AM_DEPENDENCIES([CC])], 1315 [m4_define([AC_PROG_CC], 1316 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 1317AC_PROVIDE_IFELSE([AC_PROG_CXX], 1318 [_AM_DEPENDENCIES([CXX])], 1319 [m4_define([AC_PROG_CXX], 1320 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 1321AC_PROVIDE_IFELSE([AC_PROG_OBJC], 1322 [_AM_DEPENDENCIES([OBJC])], 1323 [m4_define([AC_PROG_OBJC], 1324 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 1325AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 1326 [_AM_DEPENDENCIES([OBJCXX])], 1327 [m4_define([AC_PROG_OBJCXX], 1328 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 1329]) 1330AC_REQUIRE([AM_SILENT_RULES])dnl 1331dnl The testsuite driver may need to know about EXEEXT, so add the 1332dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 1333dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 1334AC_CONFIG_COMMANDS_PRE(dnl 1335[m4_provide_if([_AM_COMPILER_EXEEXT], 1336 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 1337]) 1338 1339dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 1340dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 1341dnl mangled by Autoconf and run in a shell conditional statement. 1342m4_define([_AC_COMPILER_EXEEXT], 1343m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 1344 1345 1346# When config.status generates a header, we must update the stamp-h file. 1347# This file resides in the same directory as the config header 1348# that is generated. The stamp files are numbered to have different names. 1349 1350# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 1351# loop where config.status creates the headers, so we can generate 1352# our stamp files there. 1353AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 1354[# Compute $1's index in $config_headers. 1355_am_arg=$1 1356_am_stamp_count=1 1357for _am_header in $config_headers :; do 1358 case $_am_header in 1359 $_am_arg | $_am_arg:* ) 1360 break ;; 1361 * ) 1362 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1363 esac 1364done 1365echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 1366 1367# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1368# 1369# This file is free software; the Free Software Foundation 1370# gives unlimited permission to copy and/or distribute it, 1371# with or without modifications, as long as this notice is preserved. 1372 1373# AM_PROG_INSTALL_SH 1374# ------------------ 1375# Define $install_sh. 1376AC_DEFUN([AM_PROG_INSTALL_SH], 1377[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1378if test x"${install_sh}" != xset; then 1379 case $am_aux_dir in 1380 *\ * | *\ *) 1381 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 1382 *) 1383 install_sh="\${SHELL} $am_aux_dir/install-sh" 1384 esac 1385fi 1386AC_SUBST([install_sh])]) 1387 1388# Copyright (C) 2003-2013 Free Software Foundation, Inc. 1389# 1390# This file is free software; the Free Software Foundation 1391# gives unlimited permission to copy and/or distribute it, 1392# with or without modifications, as long as this notice is preserved. 1393 1394# Check whether the underlying file-system supports filenames 1395# with a leading dot. For instance MS-DOS doesn't. 1396AC_DEFUN([AM_SET_LEADING_DOT], 1397[rm -rf .tst 2>/dev/null 1398mkdir .tst 2>/dev/null 1399if test -d .tst; then 1400 am__leading_dot=. 1401else 1402 am__leading_dot=_ 1403fi 1404rmdir .tst 2>/dev/null 1405AC_SUBST([am__leading_dot])]) 1406 1407# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 1408# From Jim Meyering 1409 1410# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1411# 1412# This file is free software; the Free Software Foundation 1413# gives unlimited permission to copy and/or distribute it, 1414# with or without modifications, as long as this notice is preserved. 1415 1416# AM_MAINTAINER_MODE([DEFAULT-MODE]) 1417# ---------------------------------- 1418# Control maintainer-specific portions of Makefiles. 1419# Default is to disable them, unless 'enable' is passed literally. 1420# For symmetry, 'disable' may be passed as well. Anyway, the user 1421# can override the default with the --enable/--disable switch. 1422AC_DEFUN([AM_MAINTAINER_MODE], 1423[m4_case(m4_default([$1], [disable]), 1424 [enable], [m4_define([am_maintainer_other], [disable])], 1425 [disable], [m4_define([am_maintainer_other], [enable])], 1426 [m4_define([am_maintainer_other], [enable]) 1427 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 1428AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 1429 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 1430 AC_ARG_ENABLE([maintainer-mode], 1431 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 1432 am_maintainer_other[ make rules and dependencies not useful 1433 (and sometimes confusing) to the casual installer])], 1434 [USE_MAINTAINER_MODE=$enableval], 1435 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 1436 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 1437 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 1438 MAINT=$MAINTAINER_MODE_TRUE 1439 AC_SUBST([MAINT])dnl 1440] 1441) 1442 1443# Check to see how 'make' treats includes. -*- Autoconf -*- 1444 1445# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1446# 1447# This file is free software; the Free Software Foundation 1448# gives unlimited permission to copy and/or distribute it, 1449# with or without modifications, as long as this notice is preserved. 1450 1451# AM_MAKE_INCLUDE() 1452# ----------------- 1453# Check to see how make treats includes. 1454AC_DEFUN([AM_MAKE_INCLUDE], 1455[am_make=${MAKE-make} 1456cat > confinc << 'END' 1457am__doit: 1458 @echo this is the am__doit target 1459.PHONY: am__doit 1460END 1461# If we don't find an include directive, just comment out the code. 1462AC_MSG_CHECKING([for style of include used by $am_make]) 1463am__include="#" 1464am__quote= 1465_am_result=none 1466# First try GNU make style include. 1467echo "include confinc" > confmf 1468# Ignore all kinds of additional output from 'make'. 1469case `$am_make -s -f confmf 2> /dev/null` in #( 1470*the\ am__doit\ target*) 1471 am__include=include 1472 am__quote= 1473 _am_result=GNU 1474 ;; 1475esac 1476# Now try BSD make style include. 1477if test "$am__include" = "#"; then 1478 echo '.include "confinc"' > confmf 1479 case `$am_make -s -f confmf 2> /dev/null` in #( 1480 *the\ am__doit\ target*) 1481 am__include=.include 1482 am__quote="\"" 1483 _am_result=BSD 1484 ;; 1485 esac 1486fi 1487AC_SUBST([am__include]) 1488AC_SUBST([am__quote]) 1489AC_MSG_RESULT([$_am_result]) 1490rm -f confinc confmf 1491]) 1492 1493# Copyright (C) 1999-2013 Free Software Foundation, Inc. 1494# 1495# This file is free software; the Free Software Foundation 1496# gives unlimited permission to copy and/or distribute it, 1497# with or without modifications, as long as this notice is preserved. 1498 1499# AM_PROG_CC_C_O 1500# -------------- 1501# Like AC_PROG_CC_C_O, but changed for automake. 1502AC_DEFUN([AM_PROG_CC_C_O], 1503[AC_REQUIRE([AC_PROG_CC_C_O])dnl 1504AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1505AC_REQUIRE_AUX_FILE([compile])dnl 1506# FIXME: we rely on the cache variable name because 1507# there is no other way. 1508set dummy $CC 1509am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 1510eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 1511if test "$am_t" != yes; then 1512 # Losing compiler, so override with the script. 1513 # FIXME: It is wrong to rewrite CC. 1514 # But if we don't then we get into trouble of one sort or another. 1515 # A longer-term fix would be to have automake use am__CC in this case, 1516 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 1517 CC="$am_aux_dir/compile $CC" 1518fi 1519dnl Make sure AC_PROG_CC is never called again, or it will override our 1520dnl setting of CC. 1521m4_define([AC_PROG_CC], 1522 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 1523]) 1524 1525# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1526 1527# Copyright (C) 1997-2013 Free Software Foundation, Inc. 1528# 1529# This file is free software; the Free Software Foundation 1530# gives unlimited permission to copy and/or distribute it, 1531# with or without modifications, as long as this notice is preserved. 1532 1533# AM_MISSING_PROG(NAME, PROGRAM) 1534# ------------------------------ 1535AC_DEFUN([AM_MISSING_PROG], 1536[AC_REQUIRE([AM_MISSING_HAS_RUN]) 1537$1=${$1-"${am_missing_run}$2"} 1538AC_SUBST($1)]) 1539 1540# AM_MISSING_HAS_RUN 1541# ------------------ 1542# Define MISSING if not defined so far and test if it is modern enough. 1543# If it is, set am_missing_run to use it, otherwise, to nothing. 1544AC_DEFUN([AM_MISSING_HAS_RUN], 1545[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1546AC_REQUIRE_AUX_FILE([missing])dnl 1547if test x"${MISSING+set}" != xset; then 1548 case $am_aux_dir in 1549 *\ * | *\ *) 1550 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 1551 *) 1552 MISSING="\${SHELL} $am_aux_dir/missing" ;; 1553 esac 1554fi 1555# Use eval to expand $SHELL 1556if eval "$MISSING --is-lightweight"; then 1557 am_missing_run="$MISSING " 1558else 1559 am_missing_run= 1560 AC_MSG_WARN(['missing' script is too old or missing]) 1561fi 1562]) 1563 1564# Helper functions for option handling. -*- Autoconf -*- 1565 1566# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1567# 1568# This file is free software; the Free Software Foundation 1569# gives unlimited permission to copy and/or distribute it, 1570# with or without modifications, as long as this notice is preserved. 1571 1572# _AM_MANGLE_OPTION(NAME) 1573# ----------------------- 1574AC_DEFUN([_AM_MANGLE_OPTION], 1575[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1576 1577# _AM_SET_OPTION(NAME) 1578# -------------------- 1579# Set option NAME. Presently that only means defining a flag for this option. 1580AC_DEFUN([_AM_SET_OPTION], 1581[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 1582 1583# _AM_SET_OPTIONS(OPTIONS) 1584# ------------------------ 1585# OPTIONS is a space-separated list of Automake options. 1586AC_DEFUN([_AM_SET_OPTIONS], 1587[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1588 1589# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1590# ------------------------------------------- 1591# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1592AC_DEFUN([_AM_IF_OPTION], 1593[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1594 1595# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1596# 1597# This file is free software; the Free Software Foundation 1598# gives unlimited permission to copy and/or distribute it, 1599# with or without modifications, as long as this notice is preserved. 1600 1601# AM_RUN_LOG(COMMAND) 1602# ------------------- 1603# Run COMMAND, save the exit status in ac_status, and log it. 1604# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 1605AC_DEFUN([AM_RUN_LOG], 1606[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 1607 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 1608 ac_status=$? 1609 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1610 (exit $ac_status); }]) 1611 1612# Check to make sure that the build environment is sane. -*- Autoconf -*- 1613 1614# Copyright (C) 1996-2013 Free Software Foundation, Inc. 1615# 1616# This file is free software; the Free Software Foundation 1617# gives unlimited permission to copy and/or distribute it, 1618# with or without modifications, as long as this notice is preserved. 1619 1620# AM_SANITY_CHECK 1621# --------------- 1622AC_DEFUN([AM_SANITY_CHECK], 1623[AC_MSG_CHECKING([whether build environment is sane]) 1624# Reject unsafe characters in $srcdir or the absolute working directory 1625# name. Accept space and tab only in the latter. 1626am_lf=' 1627' 1628case `pwd` in 1629 *[[\\\"\#\$\&\'\`$am_lf]]*) 1630 AC_MSG_ERROR([unsafe absolute working directory name]);; 1631esac 1632case $srcdir in 1633 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 1634 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 1635esac 1636 1637# Do 'set' in a subshell so we don't clobber the current shell's 1638# arguments. Must try -L first in case configure is actually a 1639# symlink; some systems play weird games with the mod time of symlinks 1640# (eg FreeBSD returns the mod time of the symlink's containing 1641# directory). 1642if ( 1643 am_has_slept=no 1644 for am_try in 1 2; do 1645 echo "timestamp, slept: $am_has_slept" > conftest.file 1646 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 1647 if test "$[*]" = "X"; then 1648 # -L didn't work. 1649 set X `ls -t "$srcdir/configure" conftest.file` 1650 fi 1651 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1652 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1653 1654 # If neither matched, then we have a broken ls. This can happen 1655 # if, for instance, CONFIG_SHELL is bash and it inherits a 1656 # broken ls alias from the environment. This has actually 1657 # happened. Such a system could not be considered "sane". 1658 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1659 alias in your environment]) 1660 fi 1661 if test "$[2]" = conftest.file || test $am_try -eq 2; then 1662 break 1663 fi 1664 # Just in case. 1665 sleep 1 1666 am_has_slept=yes 1667 done 1668 test "$[2]" = conftest.file 1669 ) 1670then 1671 # Ok. 1672 : 1673else 1674 AC_MSG_ERROR([newly created file is older than distributed files! 1675Check your system clock]) 1676fi 1677AC_MSG_RESULT([yes]) 1678# If we didn't sleep, we still need to ensure time stamps of config.status and 1679# generated files are strictly newer. 1680am_sleep_pid= 1681if grep 'slept: no' conftest.file >/dev/null 2>&1; then 1682 ( sleep 1 ) & 1683 am_sleep_pid=$! 1684fi 1685AC_CONFIG_COMMANDS_PRE( 1686 [AC_MSG_CHECKING([that generated files are newer than configure]) 1687 if test -n "$am_sleep_pid"; then 1688 # Hide warnings about reused PIDs. 1689 wait $am_sleep_pid 2>/dev/null 1690 fi 1691 AC_MSG_RESULT([done])]) 1692rm -f conftest.file 1693]) 1694 1695# Copyright (C) 2009-2013 Free Software Foundation, Inc. 1696# 1697# This file is free software; the Free Software Foundation 1698# gives unlimited permission to copy and/or distribute it, 1699# with or without modifications, as long as this notice is preserved. 1700 1701# AM_SILENT_RULES([DEFAULT]) 1702# -------------------------- 1703# Enable less verbose build rules; with the default set to DEFAULT 1704# ("yes" being less verbose, "no" or empty being verbose). 1705AC_DEFUN([AM_SILENT_RULES], 1706[AC_ARG_ENABLE([silent-rules], [dnl 1707AS_HELP_STRING( 1708 [--enable-silent-rules], 1709 [less verbose build output (undo: "make V=1")]) 1710AS_HELP_STRING( 1711 [--disable-silent-rules], 1712 [verbose build output (undo: "make V=0")])dnl 1713]) 1714case $enable_silent_rules in @%:@ ((( 1715 yes) AM_DEFAULT_VERBOSITY=0;; 1716 no) AM_DEFAULT_VERBOSITY=1;; 1717 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1718esac 1719dnl 1720dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1721dnl do not support nested variable expansions. 1722dnl See automake bug#9928 and bug#10237. 1723am_make=${MAKE-make} 1724AC_CACHE_CHECK([whether $am_make supports nested variables], 1725 [am_cv_make_support_nested_variables], 1726 [if AS_ECHO([['TRUE=$(BAR$(V)) 1727BAR0=false 1728BAR1=true 1729V=1 1730am__doit: 1731 @$(TRUE) 1732.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1733 am_cv_make_support_nested_variables=yes 1734else 1735 am_cv_make_support_nested_variables=no 1736fi]) 1737if test $am_cv_make_support_nested_variables = yes; then 1738 dnl Using '$V' instead of '$(V)' breaks IRIX make. 1739 AM_V='$(V)' 1740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1741else 1742 AM_V=$AM_DEFAULT_VERBOSITY 1743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1744fi 1745AC_SUBST([AM_V])dnl 1746AM_SUBST_NOTMAKE([AM_V])dnl 1747AC_SUBST([AM_DEFAULT_V])dnl 1748AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1749AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1750AM_BACKSLASH='\' 1751AC_SUBST([AM_BACKSLASH])dnl 1752_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1753]) 1754 1755# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1756# 1757# This file is free software; the Free Software Foundation 1758# gives unlimited permission to copy and/or distribute it, 1759# with or without modifications, as long as this notice is preserved. 1760 1761# AM_PROG_INSTALL_STRIP 1762# --------------------- 1763# One issue with vendor 'install' (even GNU) is that you can't 1764# specify the program used to strip binaries. This is especially 1765# annoying in cross-compiling environments, where the build's strip 1766# is unlikely to handle the host's binaries. 1767# Fortunately install-sh will honor a STRIPPROG variable, so we 1768# always use install-sh in "make install-strip", and initialize 1769# STRIPPROG with the value of the STRIP variable (set by the user). 1770AC_DEFUN([AM_PROG_INSTALL_STRIP], 1771[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1772# Installed binaries are usually stripped using 'strip' when the user 1773# run "make install-strip". However 'strip' might not be the right 1774# tool to use in cross-compilation environments, therefore Automake 1775# will honor the 'STRIP' environment variable to overrule this program. 1776dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1777if test "$cross_compiling" != no; then 1778 AC_CHECK_TOOL([STRIP], [strip], :) 1779fi 1780INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1781AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1782 1783# Copyright (C) 2006-2013 Free Software Foundation, Inc. 1784# 1785# This file is free software; the Free Software Foundation 1786# gives unlimited permission to copy and/or distribute it, 1787# with or without modifications, as long as this notice is preserved. 1788 1789# _AM_SUBST_NOTMAKE(VARIABLE) 1790# --------------------------- 1791# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1792# This macro is traced by Automake. 1793AC_DEFUN([_AM_SUBST_NOTMAKE]) 1794 1795# AM_SUBST_NOTMAKE(VARIABLE) 1796# -------------------------- 1797# Public sister of _AM_SUBST_NOTMAKE. 1798AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1799 1800# Check how to create a tarball. -*- Autoconf -*- 1801 1802# Copyright (C) 2004-2013 Free Software Foundation, Inc. 1803# 1804# This file is free software; the Free Software Foundation 1805# gives unlimited permission to copy and/or distribute it, 1806# with or without modifications, as long as this notice is preserved. 1807 1808# _AM_PROG_TAR(FORMAT) 1809# -------------------- 1810# Check how to create a tarball in format FORMAT. 1811# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1812# 1813# Substitute a variable $(am__tar) that is a command 1814# writing to stdout a FORMAT-tarball containing the directory 1815# $tardir. 1816# tardir=directory && $(am__tar) > result.tar 1817# 1818# Substitute a variable $(am__untar) that extract such 1819# a tarball read from stdin. 1820# $(am__untar) < result.tar 1821# 1822AC_DEFUN([_AM_PROG_TAR], 1823[# Always define AMTAR for backward compatibility. Yes, it's still used 1824# in the wild :-( We should find a proper way to deprecate it ... 1825AC_SUBST([AMTAR], ['$${TAR-tar}']) 1826 1827# We'll loop over all known methods to create a tar archive until one works. 1828_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1829 1830m4_if([$1], [v7], 1831 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1832 1833 [m4_case([$1], 1834 [ustar], 1835 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1836 # There is notably a 21 bits limit for the UID and the GID. In fact, 1837 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1838 # and bug#13588). 1839 am_max_uid=2097151 # 2^21 - 1 1840 am_max_gid=$am_max_uid 1841 # The $UID and $GID variables are not portable, so we need to resort 1842 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1843 # below are definitely unexpected, so allow the users to see them 1844 # (that is, avoid stderr redirection). 1845 am_uid=`id -u || echo unknown` 1846 am_gid=`id -g || echo unknown` 1847 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1848 if test $am_uid -le $am_max_uid; then 1849 AC_MSG_RESULT([yes]) 1850 else 1851 AC_MSG_RESULT([no]) 1852 _am_tools=none 1853 fi 1854 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1855 if test $am_gid -le $am_max_gid; then 1856 AC_MSG_RESULT([yes]) 1857 else 1858 AC_MSG_RESULT([no]) 1859 _am_tools=none 1860 fi], 1861 1862 [pax], 1863 [], 1864 1865 [m4_fatal([Unknown tar format])]) 1866 1867 AC_MSG_CHECKING([how to create a $1 tar archive]) 1868 1869 # Go ahead even if we have the value already cached. We do so because we 1870 # need to set the values for the 'am__tar' and 'am__untar' variables. 1871 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1872 1873 for _am_tool in $_am_tools; do 1874 case $_am_tool in 1875 gnutar) 1876 for _am_tar in tar gnutar gtar; do 1877 AM_RUN_LOG([$_am_tar --version]) && break 1878 done 1879 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1880 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1881 am__untar="$_am_tar -xf -" 1882 ;; 1883 plaintar) 1884 # Must skip GNU tar: if it does not support --format= it doesn't create 1885 # ustar tarball either. 1886 (tar --version) >/dev/null 2>&1 && continue 1887 am__tar='tar chf - "$$tardir"' 1888 am__tar_='tar chf - "$tardir"' 1889 am__untar='tar xf -' 1890 ;; 1891 pax) 1892 am__tar='pax -L -x $1 -w "$$tardir"' 1893 am__tar_='pax -L -x $1 -w "$tardir"' 1894 am__untar='pax -r' 1895 ;; 1896 cpio) 1897 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1898 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1899 am__untar='cpio -i -H $1 -d' 1900 ;; 1901 none) 1902 am__tar=false 1903 am__tar_=false 1904 am__untar=false 1905 ;; 1906 esac 1907 1908 # If the value was cached, stop now. We just wanted to have am__tar 1909 # and am__untar set. 1910 test -n "${am_cv_prog_tar_$1}" && break 1911 1912 # tar/untar a dummy directory, and stop if the command works. 1913 rm -rf conftest.dir 1914 mkdir conftest.dir 1915 echo GrepMe > conftest.dir/file 1916 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1917 rm -rf conftest.dir 1918 if test -s conftest.tar; then 1919 AM_RUN_LOG([$am__untar <conftest.tar]) 1920 AM_RUN_LOG([cat conftest.dir/file]) 1921 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1922 fi 1923 done 1924 rm -rf conftest.dir 1925 1926 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1927 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1928 1929AC_SUBST([am__tar]) 1930AC_SUBST([am__untar]) 1931]) # _AM_PROG_TAR 1932 1933m4_include([build/m4/gtk-doc.m4]) 1934m4_include([build/m4/intltool.m4]) 1935m4_include([build/m4/introspection.m4]) 1936m4_include([build/m4/libtool.m4]) 1937m4_include([build/m4/ltoptions.m4]) 1938m4_include([build/m4/ltsugar.m4]) 1939m4_include([build/m4/ltversion.m4]) 1940m4_include([build/m4/lt~obsolete.m4]) 1941m4_include([build/m4/vapigen.m4]) 1942