aclocal.m4 revision f46a6179
1# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 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_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(AC_AUTOCONF_VERSION, [2.61],, 17[m4_warning([this file was generated for autoconf 2.61. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 23# 24# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 25# 26# This program is free software; you can redistribute it and/or modify 27# it under the terms of the GNU General Public License as published by 28# the Free Software Foundation; either version 2 of the License, or 29# (at your option) any later version. 30# 31# This program is distributed in the hope that it will be useful, but 32# WITHOUT ANY WARRANTY; without even the implied warranty of 33# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 34# General Public License for more details. 35# 36# You should have received a copy of the GNU General Public License 37# along with this program; if not, write to the Free Software 38# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 39# 40# As a special exception to the GNU General Public License, if you 41# distribute this file as part of a program that contains a 42# configuration script generated by Autoconf, you may include it under 43# the same distribution terms that you use for the rest of that program. 44 45# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 46# ---------------------------------- 47AC_DEFUN([PKG_PROG_PKG_CONFIG], 48[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 49m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 50AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 51if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 52 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 53fi 54if test -n "$PKG_CONFIG"; then 55 _pkg_min_version=m4_default([$1], [0.9.0]) 56 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 57 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 58 AC_MSG_RESULT([yes]) 59 else 60 AC_MSG_RESULT([no]) 61 PKG_CONFIG="" 62 fi 63 64fi[]dnl 65])# PKG_PROG_PKG_CONFIG 66 67# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 68# 69# Check to see whether a particular set of modules exists. Similar 70# to PKG_CHECK_MODULES(), but does not set variables or print errors. 71# 72# 73# Similar to PKG_CHECK_MODULES, make sure that the first instance of 74# this or PKG_CHECK_MODULES is called, or make sure to call 75# PKG_CHECK_EXISTS manually 76# -------------------------------------------------------------- 77AC_DEFUN([PKG_CHECK_EXISTS], 78[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 79if test -n "$PKG_CONFIG" && \ 80 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 81 m4_ifval([$2], [$2], [:]) 82m4_ifvaln([$3], [else 83 $3])dnl 84fi]) 85 86 87# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 88# --------------------------------------------- 89m4_define([_PKG_CONFIG], 90[if test -n "$PKG_CONFIG"; then 91 if test -n "$$1"; then 92 pkg_cv_[]$1="$$1" 93 else 94 PKG_CHECK_EXISTS([$3], 95 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 96 [pkg_failed=yes]) 97 fi 98else 99 pkg_failed=untried 100fi[]dnl 101])# _PKG_CONFIG 102 103# _PKG_SHORT_ERRORS_SUPPORTED 104# ----------------------------- 105AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 106[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 108 _pkg_short_errors_supported=yes 109else 110 _pkg_short_errors_supported=no 111fi[]dnl 112])# _PKG_SHORT_ERRORS_SUPPORTED 113 114 115# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 116# [ACTION-IF-NOT-FOUND]) 117# 118# 119# Note that if there is a possibility the first call to 120# PKG_CHECK_MODULES might not happen, you should be sure to include an 121# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 122# 123# 124# -------------------------------------------------------------- 125AC_DEFUN([PKG_CHECK_MODULES], 126[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 127AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 128AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 129 130pkg_failed=no 131AC_MSG_CHECKING([for $1]) 132 133_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 134_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 135 136m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 137and $1[]_LIBS to avoid the need to call pkg-config. 138See the pkg-config man page for more details.]) 139 140if test $pkg_failed = yes; then 141 _PKG_SHORT_ERRORS_SUPPORTED 142 if test $_pkg_short_errors_supported = yes; then 143 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 144 else 145 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 146 fi 147 # Put the nasty error message in config.log where it belongs 148 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 149 150 ifelse([$4], , [AC_MSG_ERROR(dnl 151[Package requirements ($2) were not met: 152 153$$1_PKG_ERRORS 154 155Consider adjusting the PKG_CONFIG_PATH environment variable if you 156installed software in a non-standard prefix. 157 158_PKG_TEXT 159])], 160 [AC_MSG_RESULT([no]) 161 $4]) 162elif test $pkg_failed = untried; then 163 ifelse([$4], , [AC_MSG_FAILURE(dnl 164[The pkg-config script could not be found or is too old. Make sure it 165is in your PATH or set the PKG_CONFIG environment variable to the full 166path to pkg-config. 167 168_PKG_TEXT 169 170To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 171 [$4]) 172else 173 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 174 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 175 AC_MSG_RESULT([yes]) 176 ifelse([$3], , :, [$3]) 177fi[]dnl 178])# PKG_CHECK_MODULES 179 180dnl 181dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 182dnl 183dnl Permission is hereby granted, free of charge, to any person obtaining a 184dnl copy of this software and associated documentation files (the 185dnl "Software"), to deal in the Software without restriction, including 186dnl without limitation the rights to use, copy, modify, merge, publish, 187dnl distribute, and/or sell copies of the Software, and to permit persons 188dnl to whom the Software is furnished to do so, provided that the above 189dnl copyright notice(s) and this permission notice appear in all copies of 190dnl the Software and that both the above copyright notice(s) and this 191dnl permission notice appear in supporting documentation. 192dnl 193dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 194dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 195dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 196dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 197dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 198dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 199dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 200dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 201dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 202dnl 203dnl Except as contained in this notice, the name of a copyright holder 204dnl shall not be used in advertising or otherwise to promote the sale, use 205dnl or other dealings in this Software without prior written authorization 206dnl of the copyright holder. 207 208# XORG_MACROS_VERSION(required-version) 209# ------------------------------------- 210# Minimum version: 1.1.0 211# 212# If you're using a macro added in Version 1.1 or newer, include this in 213# your configure.ac with the minimum required version, such as: 214# XORG_MACROS_VERSION(1.1) 215# 216# To force at least a version with this macro defined, also add: 217# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 218# 219# 220# See the "minimum version" comment for each macro you use to see what 221# version you require. 222AC_DEFUN([XORG_MACROS_VERSION],[ 223 [XORG_MACROS_needed_version=$1 224 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 225 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 226 AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 227 [XORG_MACROS_version=1.1.5 228 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 229 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 230 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 231 AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 232 fi 233 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 234 AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer]) 235 fi 236 AC_MSG_RESULT([yes, $XORG_MACROS_version]) 237]) # XORG_MACROS_VERSION 238 239# XORG_PROG_RAWCPP() 240# ------------------ 241# Minimum version: 1.0.0 242# 243# Find cpp program and necessary flags for use in pre-processing text files 244# such as man pages and config files 245AC_DEFUN([XORG_PROG_RAWCPP],[ 246AC_REQUIRE([AC_PROG_CPP]) 247AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 248 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 249 250# Check for flag to avoid builtin definitions - assumes unix is predefined, 251# which is not the best choice for supporting other OS'es, but covers most 252# of the ones we need for now. 253AC_MSG_CHECKING([if $RAWCPP requires -undef]) 254AC_LANG_CONFTEST([Does cpp redefine unix ?]) 255if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 256 AC_MSG_RESULT([no]) 257else 258 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 259 RAWCPPFLAGS=-undef 260 AC_MSG_RESULT([yes]) 261 else 262 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 263 fi 264fi 265rm -f conftest.$ac_ext 266 267AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 268AC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 269if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 270 AC_MSG_RESULT([no]) 271else 272 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 273 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 274 AC_MSG_RESULT([yes]) 275 else 276 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 277 fi 278fi 279rm -f conftest.$ac_ext 280AC_SUBST(RAWCPPFLAGS) 281]) # XORG_PROG_RAWCPP 282 283# XORG_MANPAGE_SECTIONS() 284# ----------------------- 285# Minimum version: 1.0.0 286# 287# Determine which sections man pages go in for the different man page types 288# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 289# Not sure if there's any better way than just hardcoding by OS name. 290# Override default settings by setting environment variables 291 292AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 293AC_REQUIRE([AC_CANONICAL_HOST]) 294 295if test x$APP_MAN_SUFFIX = x ; then 296 APP_MAN_SUFFIX=1 297fi 298if test x$APP_MAN_DIR = x ; then 299 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 300fi 301 302if test x$LIB_MAN_SUFFIX = x ; then 303 LIB_MAN_SUFFIX=3 304fi 305if test x$LIB_MAN_DIR = x ; then 306 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 307fi 308 309if test x$FILE_MAN_SUFFIX = x ; then 310 case $host_os in 311 solaris*) FILE_MAN_SUFFIX=4 ;; 312 *) FILE_MAN_SUFFIX=5 ;; 313 esac 314fi 315if test x$FILE_MAN_DIR = x ; then 316 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 317fi 318 319if test x$MISC_MAN_SUFFIX = x ; then 320 case $host_os in 321 solaris*) MISC_MAN_SUFFIX=5 ;; 322 *) MISC_MAN_SUFFIX=7 ;; 323 esac 324fi 325if test x$MISC_MAN_DIR = x ; then 326 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 327fi 328 329if test x$DRIVER_MAN_SUFFIX = x ; then 330 case $host_os in 331 solaris*) DRIVER_MAN_SUFFIX=7 ;; 332 *) DRIVER_MAN_SUFFIX=4 ;; 333 esac 334fi 335if test x$DRIVER_MAN_DIR = x ; then 336 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 337fi 338 339if test x$ADMIN_MAN_SUFFIX = x ; then 340 case $host_os in 341 solaris*) ADMIN_MAN_SUFFIX=1m ;; 342 *) ADMIN_MAN_SUFFIX=8 ;; 343 esac 344fi 345if test x$ADMIN_MAN_DIR = x ; then 346 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 347fi 348 349 350AC_SUBST([APP_MAN_SUFFIX]) 351AC_SUBST([LIB_MAN_SUFFIX]) 352AC_SUBST([FILE_MAN_SUFFIX]) 353AC_SUBST([MISC_MAN_SUFFIX]) 354AC_SUBST([DRIVER_MAN_SUFFIX]) 355AC_SUBST([ADMIN_MAN_SUFFIX]) 356AC_SUBST([APP_MAN_DIR]) 357AC_SUBST([LIB_MAN_DIR]) 358AC_SUBST([FILE_MAN_DIR]) 359AC_SUBST([MISC_MAN_DIR]) 360AC_SUBST([DRIVER_MAN_DIR]) 361AC_SUBST([ADMIN_MAN_DIR]) 362]) # XORG_MANPAGE_SECTIONS 363 364# XORG_CHECK_LINUXDOC 365# ------------------- 366# Minimum version: 1.0.0 367# 368# Defines the variable MAKE_TEXT if the necessary tools and 369# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 370# Whether or not the necessary tools and files are found can be checked 371# with the AM_CONDITIONAL "BUILD_LINUXDOC" 372AC_DEFUN([XORG_CHECK_LINUXDOC],[ 373XORG_SGML_PATH=$prefix/share/sgml 374HAVE_DEFS_ENT= 375 376if test x"$cross_compiling" = x"yes" ; then 377 HAVE_DEFS_ENT=no 378else 379 AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 380fi 381 382AC_PATH_PROG(LINUXDOC, linuxdoc) 383AC_PATH_PROG(PS2PDF, ps2pdf) 384 385AC_MSG_CHECKING([Whether to build documentation]) 386 387if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 388 BUILDDOC=yes 389else 390 BUILDDOC=no 391fi 392 393AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 394 395AC_MSG_RESULT([$BUILDDOC]) 396 397AC_MSG_CHECKING([Whether to build pdf documentation]) 398 399if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 400 BUILDPDFDOC=yes 401else 402 BUILDPDFDOC=no 403fi 404 405AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 406 407AC_MSG_RESULT([$BUILDPDFDOC]) 408 409MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 410MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 411MAKE_PDF="$PS2PDF" 412MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 413 414AC_SUBST(MAKE_TEXT) 415AC_SUBST(MAKE_PS) 416AC_SUBST(MAKE_PDF) 417AC_SUBST(MAKE_HTML) 418]) # XORG_CHECK_LINUXDOC 419 420# XORG_CHECK_DOCBOOK 421# ------------------- 422# Minimum version: 1.0.0 423# 424# Checks for the ability to build output formats from SGML DocBook source. 425# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 426# indicates whether the necessary tools and files are found and, if set, 427# $(MAKE_XXX) blah.sgml will produce blah.xxx. 428AC_DEFUN([XORG_CHECK_DOCBOOK],[ 429XORG_SGML_PATH=$prefix/share/sgml 430HAVE_DEFS_ENT= 431BUILDTXTDOC=no 432BUILDPDFDOC=no 433BUILDPSDOC=no 434BUILDHTMLDOC=no 435 436AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 437 438AC_PATH_PROG(DOCBOOKPS, docbook2ps) 439AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 440AC_PATH_PROG(DOCBOOKHTML, docbook2html) 441AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 442 443AC_MSG_CHECKING([Whether to build text documentation]) 444if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 445 test x$BUILD_TXTDOC != xno; then 446 BUILDTXTDOC=yes 447fi 448AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 449AC_MSG_RESULT([$BUILDTXTDOC]) 450 451AC_MSG_CHECKING([Whether to build PDF documentation]) 452if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 453 test x$BUILD_PDFDOC != xno; then 454 BUILDPDFDOC=yes 455fi 456AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 457AC_MSG_RESULT([$BUILDPDFDOC]) 458 459AC_MSG_CHECKING([Whether to build PostScript documentation]) 460if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 461 test x$BUILD_PSDOC != xno; then 462 BUILDPSDOC=yes 463fi 464AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 465AC_MSG_RESULT([$BUILDPSDOC]) 466 467AC_MSG_CHECKING([Whether to build HTML documentation]) 468if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 469 test x$BUILD_HTMLDOC != xno; then 470 BUILDHTMLDOC=yes 471fi 472AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 473AC_MSG_RESULT([$BUILDHTMLDOC]) 474 475MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 476MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 477MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 478MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 479 480AC_SUBST(MAKE_TEXT) 481AC_SUBST(MAKE_PS) 482AC_SUBST(MAKE_PDF) 483AC_SUBST(MAKE_HTML) 484]) # XORG_CHECK_DOCBOOK 485 486# XORG_CHECK_MALLOC_ZERO 487# ---------------------- 488# Minimum version: 1.0.0 489# 490# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 491# malloc(0) returns NULL. Packages should add one of these cflags to 492# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 493AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 494AC_ARG_ENABLE(malloc0returnsnull, 495 AC_HELP_STRING([--enable-malloc0returnsnull], 496 [malloc(0) returns NULL (default: auto)]), 497 [MALLOC_ZERO_RETURNS_NULL=$enableval], 498 [MALLOC_ZERO_RETURNS_NULL=auto]) 499 500AC_MSG_CHECKING([whether malloc(0) returns NULL]) 501if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 502 AC_RUN_IFELSE([ 503char *malloc(); 504char *realloc(); 505char *calloc(); 506main() { 507 char *m0, *r0, *c0, *p; 508 m0 = malloc(0); 509 p = malloc(10); 510 r0 = realloc(p,0); 511 c0 = calloc(0); 512 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 513}], 514 [MALLOC_ZERO_RETURNS_NULL=yes], 515 [MALLOC_ZERO_RETURNS_NULL=no]) 516fi 517AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 518 519if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 520 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 521 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 522 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 523else 524 MALLOC_ZERO_CFLAGS="" 525 XMALLOC_ZERO_CFLAGS="" 526 XTMALLOC_ZERO_CFLAGS="" 527fi 528 529AC_SUBST([MALLOC_ZERO_CFLAGS]) 530AC_SUBST([XMALLOC_ZERO_CFLAGS]) 531AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 532]) # XORG_CHECK_MALLOC_ZERO 533 534# XORG_WITH_LINT() 535# ---------------- 536# Minimum version: 1.1.0 537# 538# Sets up flags for source checkers such as lint and sparse if --with-lint 539# is specified. (Use --with-lint=sparse for sparse.) 540# Sets $LINT to name of source checker passed with --with-lint (default: lint) 541# Sets $LINT_FLAGS to flags to pass to source checker 542# Sets LINT automake conditional if enabled (default: disabled) 543# 544AC_DEFUN([XORG_WITH_LINT],[ 545 546# Allow checking code with lint, sparse, etc. 547AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 548 [Use a lint-style source code checker (default: disabled)])], 549 [use_lint=$withval], [use_lint=no]) 550if test "x$use_lint" = "xyes" ; then 551 LINT="lint" 552else 553 LINT="$use_lint" 554fi 555if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 556 case $LINT in 557 lint|*/lint) 558 case $host_os in 559 solaris*) 560 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 561 ;; 562 esac 563 ;; 564 esac 565fi 566 567AC_SUBST(LINT) 568AC_SUBST(LINT_FLAGS) 569AM_CONDITIONAL(LINT, [test x$LINT != xno]) 570 571]) # XORG_WITH_LINT 572 573# XORG_LINT_LIBRARY(LIBNAME) 574# -------------------------- 575# Minimum version: 1.1.0 576# 577# Sets up flags for building lint libraries for checking programs that call 578# functions in the library. 579# Disabled by default, enable with --enable-lint-library 580# Sets: 581# @LINTLIB@ - name of lint library file to make 582# MAKE_LINT_LIB - automake conditional 583# 584 585AC_DEFUN([XORG_LINT_LIBRARY],[ 586AC_REQUIRE([XORG_WITH_LINT]) 587# Build lint "library" for more indepth checks of programs calling this library 588AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 589 [Create lint library (default: disabled)])], 590 [make_lint_lib=$enableval], [make_lint_lib=no]) 591if test "x$make_lint_lib" != "xno" ; then 592 if test "x$LINT" = "xno" ; then 593 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 594 fi 595 if test "x$make_lint_lib" = "xyes" ; then 596 LINTLIB=llib-l$1.ln 597 else 598 LINTLIB=$make_lint_lib 599 fi 600fi 601AC_SUBST(LINTLIB) 602AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 603 604]) # XORG_LINT_LIBRARY 605 606dnl Copyright 2005 Red Hat, Inc 607dnl 608dnl Permission to use, copy, modify, distribute, and sell this software and its 609dnl documentation for any purpose is hereby granted without fee, provided that 610dnl the above copyright notice appear in all copies and that both that 611dnl copyright notice and this permission notice appear in supporting 612dnl documentation. 613dnl 614dnl The above copyright notice and this permission notice shall be included 615dnl in all copies or substantial portions of the Software. 616dnl 617dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 618dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 619dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 620dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 621dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 622dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 623dnl OTHER DEALINGS IN THE SOFTWARE. 624dnl 625dnl Except as contained in this notice, the name of the copyright holders shall 626dnl not be used in advertising or otherwise to promote the sale, use or 627dnl other dealings in this Software without prior written authorization 628dnl from the copyright holders. 629dnl 630 631# XORG_RELEASE_VERSION 632# -------------------- 633# Adds --with/without-release-string and changes the PACKAGE and 634# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 635# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 636# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 637 638AC_DEFUN([XORG_RELEASE_VERSION],[ 639 AC_ARG_WITH(release-version, 640 AC_HELP_STRING([--with-release-version=STRING], 641 [Use release version string in package name]), 642 [RELEASE_VERSION="$withval"], 643 [RELEASE_VERSION=""]) 644 if test "x$RELEASE_VERSION" != "x"; then 645 PACKAGE="$PACKAGE-$RELEASE_VERSION" 646 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 647 AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 648 fi 649 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 650 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 651 [Major version of this package]) 652 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 653 if test "x$PVM" = "x"; then 654 PVM="0" 655 fi 656 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 657 [$PVM], 658 [Minor version of this package]) 659 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 660 if test "x$PVP" = "x"; then 661 PVP="0" 662 fi 663 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 664 [$PVP], 665 [Patch version of this package]) 666]) 667 668# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. 669# 670# This file is free software; the Free Software Foundation 671# gives unlimited permission to copy and/or distribute it, 672# with or without modifications, as long as this notice is preserved. 673 674# AM_AUTOMAKE_VERSION(VERSION) 675# ---------------------------- 676# Automake X.Y traces this macro to ensure aclocal.m4 has been 677# generated from the m4 files accompanying Automake X.Y. 678# (This private macro should not be called outside this file.) 679AC_DEFUN([AM_AUTOMAKE_VERSION], 680[am__api_version='1.10' 681dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 682dnl require some minimum version. Point them to the right macro. 683m4_if([$1], [1.10.1], [], 684 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 685]) 686 687# _AM_AUTOCONF_VERSION(VERSION) 688# ----------------------------- 689# aclocal traces this macro to find the Autoconf version. 690# This is a private macro too. Using m4_define simplifies 691# the logic in aclocal, which can simply ignore this definition. 692m4_define([_AM_AUTOCONF_VERSION], []) 693 694# AM_SET_CURRENT_AUTOMAKE_VERSION 695# ------------------------------- 696# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 697# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 698AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 699[AM_AUTOMAKE_VERSION([1.10.1])dnl 700m4_ifndef([AC_AUTOCONF_VERSION], 701 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 702_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) 703 704# AM_AUX_DIR_EXPAND -*- Autoconf -*- 705 706# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 707# 708# This file is free software; the Free Software Foundation 709# gives unlimited permission to copy and/or distribute it, 710# with or without modifications, as long as this notice is preserved. 711 712# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 713# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 714# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 715# 716# Of course, Automake must honor this variable whenever it calls a 717# tool from the auxiliary directory. The problem is that $srcdir (and 718# therefore $ac_aux_dir as well) can be either absolute or relative, 719# depending on how configure is run. This is pretty annoying, since 720# it makes $ac_aux_dir quite unusable in subdirectories: in the top 721# source directory, any form will work fine, but in subdirectories a 722# relative path needs to be adjusted first. 723# 724# $ac_aux_dir/missing 725# fails when called from a subdirectory if $ac_aux_dir is relative 726# $top_srcdir/$ac_aux_dir/missing 727# fails if $ac_aux_dir is absolute, 728# fails when called from a subdirectory in a VPATH build with 729# a relative $ac_aux_dir 730# 731# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 732# are both prefixed by $srcdir. In an in-source build this is usually 733# harmless because $srcdir is `.', but things will broke when you 734# start a VPATH build or use an absolute $srcdir. 735# 736# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 737# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 738# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 739# and then we would define $MISSING as 740# MISSING="\${SHELL} $am_aux_dir/missing" 741# This will work as long as MISSING is not called from configure, because 742# unfortunately $(top_srcdir) has no meaning in configure. 743# However there are other variables, like CC, which are often used in 744# configure, and could therefore not use this "fixed" $ac_aux_dir. 745# 746# Another solution, used here, is to always expand $ac_aux_dir to an 747# absolute PATH. The drawback is that using absolute paths prevent a 748# configured tree to be moved without reconfiguration. 749 750AC_DEFUN([AM_AUX_DIR_EXPAND], 751[dnl Rely on autoconf to set up CDPATH properly. 752AC_PREREQ([2.50])dnl 753# expand $ac_aux_dir to an absolute path 754am_aux_dir=`cd $ac_aux_dir && pwd` 755]) 756 757# AM_CONDITIONAL -*- Autoconf -*- 758 759# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 760# Free Software Foundation, Inc. 761# 762# This file is free software; the Free Software Foundation 763# gives unlimited permission to copy and/or distribute it, 764# with or without modifications, as long as this notice is preserved. 765 766# serial 8 767 768# AM_CONDITIONAL(NAME, SHELL-CONDITION) 769# ------------------------------------- 770# Define a conditional. 771AC_DEFUN([AM_CONDITIONAL], 772[AC_PREREQ(2.52)dnl 773 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 774 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 775AC_SUBST([$1_TRUE])dnl 776AC_SUBST([$1_FALSE])dnl 777_AM_SUBST_NOTMAKE([$1_TRUE])dnl 778_AM_SUBST_NOTMAKE([$1_FALSE])dnl 779if $2; then 780 $1_TRUE= 781 $1_FALSE='#' 782else 783 $1_TRUE='#' 784 $1_FALSE= 785fi 786AC_CONFIG_COMMANDS_PRE( 787[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 788 AC_MSG_ERROR([[conditional "$1" was never defined. 789Usually this means the macro was only invoked conditionally.]]) 790fi])]) 791 792# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 793# Free Software Foundation, Inc. 794# 795# This file is free software; the Free Software Foundation 796# gives unlimited permission to copy and/or distribute it, 797# with or without modifications, as long as this notice is preserved. 798 799# serial 9 800 801# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 802# written in clear, in which case automake, when reading aclocal.m4, 803# will think it sees a *use*, and therefore will trigger all it's 804# C support machinery. Also note that it means that autoscan, seeing 805# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 806 807 808# _AM_DEPENDENCIES(NAME) 809# ---------------------- 810# See how the compiler implements dependency checking. 811# NAME is "CC", "CXX", "GCJ", or "OBJC". 812# We try a few techniques and use that to set a single cache variable. 813# 814# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 815# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 816# dependency, and given that the user is not expected to run this macro, 817# just rely on AC_PROG_CC. 818AC_DEFUN([_AM_DEPENDENCIES], 819[AC_REQUIRE([AM_SET_DEPDIR])dnl 820AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 821AC_REQUIRE([AM_MAKE_INCLUDE])dnl 822AC_REQUIRE([AM_DEP_TRACK])dnl 823 824ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 825 [$1], CXX, [depcc="$CXX" am_compiler_list=], 826 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 827 [$1], UPC, [depcc="$UPC" am_compiler_list=], 828 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 829 [depcc="$$1" am_compiler_list=]) 830 831AC_CACHE_CHECK([dependency style of $depcc], 832 [am_cv_$1_dependencies_compiler_type], 833[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 834 # We make a subdir and do the tests there. Otherwise we can end up 835 # making bogus files that we don't know about and never remove. For 836 # instance it was reported that on HP-UX the gcc test will end up 837 # making a dummy file named `D' -- because `-MD' means `put the output 838 # in D'. 839 mkdir conftest.dir 840 # Copy depcomp to subdir because otherwise we won't find it if we're 841 # using a relative directory. 842 cp "$am_depcomp" conftest.dir 843 cd conftest.dir 844 # We will build objects and dependencies in a subdirectory because 845 # it helps to detect inapplicable dependency modes. For instance 846 # both Tru64's cc and ICC support -MD to output dependencies as a 847 # side effect of compilation, but ICC will put the dependencies in 848 # the current directory while Tru64 will put them in the object 849 # directory. 850 mkdir sub 851 852 am_cv_$1_dependencies_compiler_type=none 853 if test "$am_compiler_list" = ""; then 854 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 855 fi 856 for depmode in $am_compiler_list; do 857 # Setup a source with many dependencies, because some compilers 858 # like to wrap large dependency lists on column 80 (with \), and 859 # we should not choose a depcomp mode which is confused by this. 860 # 861 # We need to recreate these files for each test, as the compiler may 862 # overwrite some of them when testing with obscure command lines. 863 # This happens at least with the AIX C compiler. 864 : > sub/conftest.c 865 for i in 1 2 3 4 5 6; do 866 echo '#include "conftst'$i'.h"' >> sub/conftest.c 867 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 868 # Solaris 8's {/usr,}/bin/sh. 869 touch sub/conftst$i.h 870 done 871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 872 873 case $depmode in 874 nosideeffect) 875 # after this tag, mechanisms are not by side-effect, so they'll 876 # only be used when explicitly requested 877 if test "x$enable_dependency_tracking" = xyes; then 878 continue 879 else 880 break 881 fi 882 ;; 883 none) break ;; 884 esac 885 # We check with `-c' and `-o' for the sake of the "dashmstdout" 886 # mode. It turns out that the SunPro C++ compiler does not properly 887 # handle `-M -o', and we need to detect this. 888 if depmode=$depmode \ 889 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 891 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 892 >/dev/null 2>conftest.err && 893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 895 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 897 # icc doesn't choke on unknown options, it will just issue warnings 898 # or remarks (even with -Werror). So we grep stderr for any message 899 # that says an option was ignored or not supported. 900 # When given -MP, icc 7.0 and 7.1 complain thusly: 901 # icc: Command line warning: ignoring option '-M'; no argument required 902 # The diagnosis changed in icc 8.0: 903 # icc: Command line remark: option '-MP' not supported 904 if (grep 'ignoring option' conftest.err || 905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 906 am_cv_$1_dependencies_compiler_type=$depmode 907 break 908 fi 909 fi 910 done 911 912 cd .. 913 rm -rf conftest.dir 914else 915 am_cv_$1_dependencies_compiler_type=none 916fi 917]) 918AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 919AM_CONDITIONAL([am__fastdep$1], [ 920 test "x$enable_dependency_tracking" != xno \ 921 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 922]) 923 924 925# AM_SET_DEPDIR 926# ------------- 927# Choose a directory name for dependency files. 928# This macro is AC_REQUIREd in _AM_DEPENDENCIES 929AC_DEFUN([AM_SET_DEPDIR], 930[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 931AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 932]) 933 934 935# AM_DEP_TRACK 936# ------------ 937AC_DEFUN([AM_DEP_TRACK], 938[AC_ARG_ENABLE(dependency-tracking, 939[ --disable-dependency-tracking speeds up one-time build 940 --enable-dependency-tracking do not reject slow dependency extractors]) 941if test "x$enable_dependency_tracking" != xno; then 942 am_depcomp="$ac_aux_dir/depcomp" 943 AMDEPBACKSLASH='\' 944fi 945AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 946AC_SUBST([AMDEPBACKSLASH])dnl 947_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 948]) 949 950# Generate code to set up dependency tracking. -*- Autoconf -*- 951 952# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 953# 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#serial 3 960 961# _AM_OUTPUT_DEPENDENCY_COMMANDS 962# ------------------------------ 963AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 964[for mf in $CONFIG_FILES; do 965 # Strip MF so we end up with the name of the file. 966 mf=`echo "$mf" | sed -e 's/:.*$//'` 967 # Check whether this is an Automake generated Makefile or not. 968 # We used to match only the files named `Makefile.in', but 969 # some people rename them; so instead we look at the file content. 970 # Grep'ing the first line is not enough: some people post-process 971 # each Makefile.in and add a new line on top of each file to say so. 972 # Grep'ing the whole file is not good either: AIX grep has a line 973 # limit of 2048, but all sed's we know have understand at least 4000. 974 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 975 dirpart=`AS_DIRNAME("$mf")` 976 else 977 continue 978 fi 979 # Extract the definition of DEPDIR, am__include, and am__quote 980 # from the Makefile without running `make'. 981 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 982 test -z "$DEPDIR" && continue 983 am__include=`sed -n 's/^am__include = //p' < "$mf"` 984 test -z "am__include" && continue 985 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 986 # When using ansi2knr, U may be empty or an underscore; expand it 987 U=`sed -n 's/^U = //p' < "$mf"` 988 # Find all dependency output files, they are included files with 989 # $(DEPDIR) in their names. We invoke sed twice because it is the 990 # simplest approach to changing $(DEPDIR) to its actual value in the 991 # expansion. 992 for file in `sed -n " 993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 995 # Make sure the directory exists. 996 test -f "$dirpart/$file" && continue 997 fdir=`AS_DIRNAME(["$file"])` 998 AS_MKDIR_P([$dirpart/$fdir]) 999 # echo "creating $dirpart/$file" 1000 echo '# dummy' > "$dirpart/$file" 1001 done 1002done 1003])# _AM_OUTPUT_DEPENDENCY_COMMANDS 1004 1005 1006# AM_OUTPUT_DEPENDENCY_COMMANDS 1007# ----------------------------- 1008# This macro should only be invoked once -- use via AC_REQUIRE. 1009# 1010# This code is only required when automatic dependency tracking 1011# is enabled. FIXME. This creates each `.P' file that we will 1012# need in order to bootstrap the dependency handling code. 1013AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 1014[AC_CONFIG_COMMANDS([depfiles], 1015 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 1016 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 1017]) 1018 1019# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 1020# Free Software Foundation, Inc. 1021# 1022# This file is free software; the Free Software Foundation 1023# gives unlimited permission to copy and/or distribute it, 1024# with or without modifications, as long as this notice is preserved. 1025 1026# serial 8 1027 1028# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 1029AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 1030 1031# Do all the work for Automake. -*- Autoconf -*- 1032 1033# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 1034# 2005, 2006, 2008 Free Software Foundation, Inc. 1035# 1036# This file is free software; the Free Software Foundation 1037# gives unlimited permission to copy and/or distribute it, 1038# with or without modifications, as long as this notice is preserved. 1039 1040# serial 13 1041 1042# This macro actually does too much. Some checks are only needed if 1043# your package does certain things. But this isn't really a big deal. 1044 1045# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 1046# AM_INIT_AUTOMAKE([OPTIONS]) 1047# ----------------------------------------------- 1048# The call with PACKAGE and VERSION arguments is the old style 1049# call (pre autoconf-2.50), which is being phased out. PACKAGE 1050# and VERSION should now be passed to AC_INIT and removed from 1051# the call to AM_INIT_AUTOMAKE. 1052# We support both call styles for the transition. After 1053# the next Automake release, Autoconf can make the AC_INIT 1054# arguments mandatory, and then we can depend on a new Autoconf 1055# release and drop the old call support. 1056AC_DEFUN([AM_INIT_AUTOMAKE], 1057[AC_PREREQ([2.60])dnl 1058dnl Autoconf wants to disallow AM_ names. We explicitly allow 1059dnl the ones we care about. 1060m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 1061AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 1062AC_REQUIRE([AC_PROG_INSTALL])dnl 1063if test "`cd $srcdir && pwd`" != "`pwd`"; then 1064 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 1065 # is not polluted with repeated "-I." 1066 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 1067 # test to see if srcdir already configured 1068 if test -f $srcdir/config.status; then 1069 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 1070 fi 1071fi 1072 1073# test whether we have cygpath 1074if test -z "$CYGPATH_W"; then 1075 if (cygpath --version) >/dev/null 2>/dev/null; then 1076 CYGPATH_W='cygpath -w' 1077 else 1078 CYGPATH_W=echo 1079 fi 1080fi 1081AC_SUBST([CYGPATH_W]) 1082 1083# Define the identity of the package. 1084dnl Distinguish between old-style and new-style calls. 1085m4_ifval([$2], 1086[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 1087 AC_SUBST([PACKAGE], [$1])dnl 1088 AC_SUBST([VERSION], [$2])], 1089[_AM_SET_OPTIONS([$1])dnl 1090dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 1091m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 1092 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 1093 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 1094 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 1095 1096_AM_IF_OPTION([no-define],, 1097[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 1098 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 1099 1100# Some tools Automake needs. 1101AC_REQUIRE([AM_SANITY_CHECK])dnl 1102AC_REQUIRE([AC_ARG_PROGRAM])dnl 1103AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 1104AM_MISSING_PROG(AUTOCONF, autoconf) 1105AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 1106AM_MISSING_PROG(AUTOHEADER, autoheader) 1107AM_MISSING_PROG(MAKEINFO, makeinfo) 1108AM_PROG_INSTALL_SH 1109AM_PROG_INSTALL_STRIP 1110AC_REQUIRE([AM_PROG_MKDIR_P])dnl 1111# We need awk for the "check" target. The system "awk" is bad on 1112# some platforms. 1113AC_REQUIRE([AC_PROG_AWK])dnl 1114AC_REQUIRE([AC_PROG_MAKE_SET])dnl 1115AC_REQUIRE([AM_SET_LEADING_DOT])dnl 1116_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 1117 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 1118 [_AM_PROG_TAR([v7])])]) 1119_AM_IF_OPTION([no-dependencies],, 1120[AC_PROVIDE_IFELSE([AC_PROG_CC], 1121 [_AM_DEPENDENCIES(CC)], 1122 [define([AC_PROG_CC], 1123 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 1124AC_PROVIDE_IFELSE([AC_PROG_CXX], 1125 [_AM_DEPENDENCIES(CXX)], 1126 [define([AC_PROG_CXX], 1127 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 1128AC_PROVIDE_IFELSE([AC_PROG_OBJC], 1129 [_AM_DEPENDENCIES(OBJC)], 1130 [define([AC_PROG_OBJC], 1131 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 1132]) 1133]) 1134 1135 1136# When config.status generates a header, we must update the stamp-h file. 1137# This file resides in the same directory as the config header 1138# that is generated. The stamp files are numbered to have different names. 1139 1140# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 1141# loop where config.status creates the headers, so we can generate 1142# our stamp files there. 1143AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 1144[# Compute $1's index in $config_headers. 1145_am_arg=$1 1146_am_stamp_count=1 1147for _am_header in $config_headers :; do 1148 case $_am_header in 1149 $_am_arg | $_am_arg:* ) 1150 break ;; 1151 * ) 1152 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1153 esac 1154done 1155echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 1156 1157# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 1158# 1159# This file is free software; the Free Software Foundation 1160# gives unlimited permission to copy and/or distribute it, 1161# with or without modifications, as long as this notice is preserved. 1162 1163# AM_PROG_INSTALL_SH 1164# ------------------ 1165# Define $install_sh. 1166AC_DEFUN([AM_PROG_INSTALL_SH], 1167[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1168install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 1169AC_SUBST(install_sh)]) 1170 1171# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 1172# 1173# This file is free software; the Free Software Foundation 1174# gives unlimited permission to copy and/or distribute it, 1175# with or without modifications, as long as this notice is preserved. 1176 1177# serial 2 1178 1179# Check whether the underlying file-system supports filenames 1180# with a leading dot. For instance MS-DOS doesn't. 1181AC_DEFUN([AM_SET_LEADING_DOT], 1182[rm -rf .tst 2>/dev/null 1183mkdir .tst 2>/dev/null 1184if test -d .tst; then 1185 am__leading_dot=. 1186else 1187 am__leading_dot=_ 1188fi 1189rmdir .tst 2>/dev/null 1190AC_SUBST([am__leading_dot])]) 1191 1192# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 1193# From Jim Meyering 1194 1195# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 1196# Free Software Foundation, Inc. 1197# 1198# This file is free software; the Free Software Foundation 1199# gives unlimited permission to copy and/or distribute it, 1200# with or without modifications, as long as this notice is preserved. 1201 1202# serial 4 1203 1204AC_DEFUN([AM_MAINTAINER_MODE], 1205[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 1206 dnl maintainer-mode is disabled by default 1207 AC_ARG_ENABLE(maintainer-mode, 1208[ --enable-maintainer-mode enable make rules and dependencies not useful 1209 (and sometimes confusing) to the casual installer], 1210 USE_MAINTAINER_MODE=$enableval, 1211 USE_MAINTAINER_MODE=no) 1212 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 1213 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 1214 MAINT=$MAINTAINER_MODE_TRUE 1215 AC_SUBST(MAINT)dnl 1216] 1217) 1218 1219AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 1220 1221# Check to see how 'make' treats includes. -*- Autoconf -*- 1222 1223# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 1224# 1225# This file is free software; the Free Software Foundation 1226# gives unlimited permission to copy and/or distribute it, 1227# with or without modifications, as long as this notice is preserved. 1228 1229# serial 3 1230 1231# AM_MAKE_INCLUDE() 1232# ----------------- 1233# Check to see how make treats includes. 1234AC_DEFUN([AM_MAKE_INCLUDE], 1235[am_make=${MAKE-make} 1236cat > confinc << 'END' 1237am__doit: 1238 @echo done 1239.PHONY: am__doit 1240END 1241# If we don't find an include directive, just comment out the code. 1242AC_MSG_CHECKING([for style of include used by $am_make]) 1243am__include="#" 1244am__quote= 1245_am_result=none 1246# First try GNU make style include. 1247echo "include confinc" > confmf 1248# We grep out `Entering directory' and `Leaving directory' 1249# messages which can occur if `w' ends up in MAKEFLAGS. 1250# In particular we don't look at `^make:' because GNU make might 1251# be invoked under some other name (usually "gmake"), in which 1252# case it prints its new name instead of `make'. 1253if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 1254 am__include=include 1255 am__quote= 1256 _am_result=GNU 1257fi 1258# Now try BSD make style include. 1259if test "$am__include" = "#"; then 1260 echo '.include "confinc"' > confmf 1261 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1262 am__include=.include 1263 am__quote="\"" 1264 _am_result=BSD 1265 fi 1266fi 1267AC_SUBST([am__include]) 1268AC_SUBST([am__quote]) 1269AC_MSG_RESULT([$_am_result]) 1270rm -f confinc confmf 1271]) 1272 1273# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 1274 1275# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 1276# Free Software Foundation, Inc. 1277# 1278# This file is free software; the Free Software Foundation 1279# gives unlimited permission to copy and/or distribute it, 1280# with or without modifications, as long as this notice is preserved. 1281 1282# serial 5 1283 1284# AM_MISSING_PROG(NAME, PROGRAM) 1285# ------------------------------ 1286AC_DEFUN([AM_MISSING_PROG], 1287[AC_REQUIRE([AM_MISSING_HAS_RUN]) 1288$1=${$1-"${am_missing_run}$2"} 1289AC_SUBST($1)]) 1290 1291 1292# AM_MISSING_HAS_RUN 1293# ------------------ 1294# Define MISSING if not defined so far and test if it supports --run. 1295# If it does, set am_missing_run to use it, otherwise, to nothing. 1296AC_DEFUN([AM_MISSING_HAS_RUN], 1297[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 1298AC_REQUIRE_AUX_FILE([missing])dnl 1299test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1300# Use eval to expand $SHELL 1301if eval "$MISSING --run true"; then 1302 am_missing_run="$MISSING --run " 1303else 1304 am_missing_run= 1305 AC_MSG_WARN([`missing' script is too old or missing]) 1306fi 1307]) 1308 1309# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1310# 1311# This file is free software; the Free Software Foundation 1312# gives unlimited permission to copy and/or distribute it, 1313# with or without modifications, as long as this notice is preserved. 1314 1315# AM_PROG_MKDIR_P 1316# --------------- 1317# Check for `mkdir -p'. 1318AC_DEFUN([AM_PROG_MKDIR_P], 1319[AC_PREREQ([2.60])dnl 1320AC_REQUIRE([AC_PROG_MKDIR_P])dnl 1321dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 1322dnl while keeping a definition of mkdir_p for backward compatibility. 1323dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 1324dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 1325dnl Makefile.ins that do not define MKDIR_P, so we do our own 1326dnl adjustment using top_builddir (which is defined more often than 1327dnl MKDIR_P). 1328AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 1329case $mkdir_p in 1330 [[\\/$]]* | ?:[[\\/]]*) ;; 1331 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 1332esac 1333]) 1334 1335# Helper functions for option handling. -*- Autoconf -*- 1336 1337# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 1338# 1339# This file is free software; the Free Software Foundation 1340# gives unlimited permission to copy and/or distribute it, 1341# with or without modifications, as long as this notice is preserved. 1342 1343# serial 3 1344 1345# _AM_MANGLE_OPTION(NAME) 1346# ----------------------- 1347AC_DEFUN([_AM_MANGLE_OPTION], 1348[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 1349 1350# _AM_SET_OPTION(NAME) 1351# ------------------------------ 1352# Set option NAME. Presently that only means defining a flag for this option. 1353AC_DEFUN([_AM_SET_OPTION], 1354[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 1355 1356# _AM_SET_OPTIONS(OPTIONS) 1357# ---------------------------------- 1358# OPTIONS is a space-separated list of Automake options. 1359AC_DEFUN([_AM_SET_OPTIONS], 1360[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 1361 1362# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 1363# ------------------------------------------- 1364# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 1365AC_DEFUN([_AM_IF_OPTION], 1366[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 1367 1368# Check to make sure that the build environment is sane. -*- Autoconf -*- 1369 1370# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 1371# Free Software Foundation, Inc. 1372# 1373# This file is free software; the Free Software Foundation 1374# gives unlimited permission to copy and/or distribute it, 1375# with or without modifications, as long as this notice is preserved. 1376 1377# serial 4 1378 1379# AM_SANITY_CHECK 1380# --------------- 1381AC_DEFUN([AM_SANITY_CHECK], 1382[AC_MSG_CHECKING([whether build environment is sane]) 1383# Just in case 1384sleep 1 1385echo timestamp > conftest.file 1386# Do `set' in a subshell so we don't clobber the current shell's 1387# arguments. Must try -L first in case configure is actually a 1388# symlink; some systems play weird games with the mod time of symlinks 1389# (eg FreeBSD returns the mod time of the symlink's containing 1390# directory). 1391if ( 1392 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1393 if test "$[*]" = "X"; then 1394 # -L didn't work. 1395 set X `ls -t $srcdir/configure conftest.file` 1396 fi 1397 rm -f conftest.file 1398 if test "$[*]" != "X $srcdir/configure conftest.file" \ 1399 && test "$[*]" != "X conftest.file $srcdir/configure"; then 1400 1401 # If neither matched, then we have a broken ls. This can happen 1402 # if, for instance, CONFIG_SHELL is bash and it inherits a 1403 # broken ls alias from the environment. This has actually 1404 # happened. Such a system could not be considered "sane". 1405 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 1406alias in your environment]) 1407 fi 1408 1409 test "$[2]" = conftest.file 1410 ) 1411then 1412 # Ok. 1413 : 1414else 1415 AC_MSG_ERROR([newly created file is older than distributed files! 1416Check your system clock]) 1417fi 1418AC_MSG_RESULT(yes)]) 1419 1420# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 1421# 1422# This file is free software; the Free Software Foundation 1423# gives unlimited permission to copy and/or distribute it, 1424# with or without modifications, as long as this notice is preserved. 1425 1426# AM_PROG_INSTALL_STRIP 1427# --------------------- 1428# One issue with vendor `install' (even GNU) is that you can't 1429# specify the program used to strip binaries. This is especially 1430# annoying in cross-compiling environments, where the build's strip 1431# is unlikely to handle the host's binaries. 1432# Fortunately install-sh will honor a STRIPPROG variable, so we 1433# always use install-sh in `make install-strip', and initialize 1434# STRIPPROG with the value of the STRIP variable (set by the user). 1435AC_DEFUN([AM_PROG_INSTALL_STRIP], 1436[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1437# Installed binaries are usually stripped using `strip' when the user 1438# run `make install-strip'. However `strip' might not be the right 1439# tool to use in cross-compilation environments, therefore Automake 1440# will honor the `STRIP' environment variable to overrule this program. 1441dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1442if test "$cross_compiling" != no; then 1443 AC_CHECK_TOOL([STRIP], [strip], :) 1444fi 1445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1446AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1447 1448# Copyright (C) 2006 Free Software Foundation, Inc. 1449# 1450# This file is free software; the Free Software Foundation 1451# gives unlimited permission to copy and/or distribute it, 1452# with or without modifications, as long as this notice is preserved. 1453 1454# _AM_SUBST_NOTMAKE(VARIABLE) 1455# --------------------------- 1456# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1457# This macro is traced by Automake. 1458AC_DEFUN([_AM_SUBST_NOTMAKE]) 1459 1460# Check how to create a tarball. -*- Autoconf -*- 1461 1462# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 1463# 1464# This file is free software; the Free Software Foundation 1465# gives unlimited permission to copy and/or distribute it, 1466# with or without modifications, as long as this notice is preserved. 1467 1468# serial 2 1469 1470# _AM_PROG_TAR(FORMAT) 1471# -------------------- 1472# Check how to create a tarball in format FORMAT. 1473# FORMAT should be one of `v7', `ustar', or `pax'. 1474# 1475# Substitute a variable $(am__tar) that is a command 1476# writing to stdout a FORMAT-tarball containing the directory 1477# $tardir. 1478# tardir=directory && $(am__tar) > result.tar 1479# 1480# Substitute a variable $(am__untar) that extract such 1481# a tarball read from stdin. 1482# $(am__untar) < result.tar 1483AC_DEFUN([_AM_PROG_TAR], 1484[# Always define AMTAR for backward compatibility. 1485AM_MISSING_PROG([AMTAR], [tar]) 1486m4_if([$1], [v7], 1487 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 1488 [m4_case([$1], [ustar],, [pax],, 1489 [m4_fatal([Unknown tar format])]) 1490AC_MSG_CHECKING([how to create a $1 tar archive]) 1491# Loop over all known methods to create a tar archive until one works. 1492_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1493_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1494# Do not fold the above two line into one, because Tru64 sh and 1495# Solaris sh will not grok spaces in the rhs of `-'. 1496for _am_tool in $_am_tools 1497do 1498 case $_am_tool in 1499 gnutar) 1500 for _am_tar in tar gnutar gtar; 1501 do 1502 AM_RUN_LOG([$_am_tar --version]) && break 1503 done 1504 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1505 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1506 am__untar="$_am_tar -xf -" 1507 ;; 1508 plaintar) 1509 # Must skip GNU tar: if it does not support --format= it doesn't create 1510 # ustar tarball either. 1511 (tar --version) >/dev/null 2>&1 && continue 1512 am__tar='tar chf - "$$tardir"' 1513 am__tar_='tar chf - "$tardir"' 1514 am__untar='tar xf -' 1515 ;; 1516 pax) 1517 am__tar='pax -L -x $1 -w "$$tardir"' 1518 am__tar_='pax -L -x $1 -w "$tardir"' 1519 am__untar='pax -r' 1520 ;; 1521 cpio) 1522 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1523 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1524 am__untar='cpio -i -H $1 -d' 1525 ;; 1526 none) 1527 am__tar=false 1528 am__tar_=false 1529 am__untar=false 1530 ;; 1531 esac 1532 1533 # If the value was cached, stop now. We just wanted to have am__tar 1534 # and am__untar set. 1535 test -n "${am_cv_prog_tar_$1}" && break 1536 1537 # tar/untar a dummy directory, and stop if the command works 1538 rm -rf conftest.dir 1539 mkdir conftest.dir 1540 echo GrepMe > conftest.dir/file 1541 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1542 rm -rf conftest.dir 1543 if test -s conftest.tar; then 1544 AM_RUN_LOG([$am__untar <conftest.tar]) 1545 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1546 fi 1547done 1548rm -rf conftest.dir 1549 1550AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1551AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1552AC_SUBST([am__tar]) 1553AC_SUBST([am__untar]) 1554]) # _AM_PROG_TAR 1555 1556