1# aclocal.m4 generated automatically by aclocal 1.5 2 3# Copyright 1996, 1997, 1998, 1999, 2000, 2001 4# 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 14# Do all the work for Automake. This macro actually does too much -- 15# some checks are only needed if your package does certain things. 16# But this isn't really a big deal. 17 18# serial 5 19 20# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 21# written in clear, in which case automake, when reading aclocal.m4, 22# will think it sees a *use*, and therefore will trigger all it's 23# C support machinery. Also note that it means that autoscan, seeing 24# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 25 26 27# We require 2.13 because we rely on SHELL being computed by configure. 28AC_PREREQ([2.13]) 29 30# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 31# ----------------------------------------------------------- 32# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. 33# The purpose of this macro is to provide the user with a means to 34# check macros which are provided without letting her know how the 35# information is coded. 36# If this macro is not defined by Autoconf, define it here. 37ifdef([AC_PROVIDE_IFELSE], 38 [], 39 [define([AC_PROVIDE_IFELSE], 40 [ifdef([AC_PROVIDE_$1], 41 [$2], [$3])])]) 42 43 44# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) 45# ---------------------------------------------- 46AC_DEFUN([AM_INIT_AUTOMAKE], 47[AC_REQUIRE([AC_PROG_INSTALL])dnl 48# test to see if srcdir already configured 49if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 50 test -f $srcdir/config.status; then 51 AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first]) 52fi 53 54# Define the identity of the package. 55PACKAGE=$1 56AC_SUBST(PACKAGE)dnl 57VERSION=$2 58AC_SUBST(VERSION)dnl 59ifelse([$3],, 60[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 61AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) 62 63# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 64# the ones we care about. 65ifdef([m4_pattern_allow], 66 [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl 67 68# Autoconf 2.50 always computes EXEEXT. However we need to be 69# compatible with 2.13, for now. So we always define EXEEXT, but we 70# don't compute it. 71AC_SUBST(EXEEXT) 72# Similar for OBJEXT -- only we only use OBJEXT if the user actually 73# requests that it be used. This is a bit dumb. 74: ${OBJEXT=o} 75AC_SUBST(OBJEXT) 76 77# Some tools Automake needs. 78AC_REQUIRE([AM_SANITY_CHECK])dnl 79AC_REQUIRE([AC_ARG_PROGRAM])dnl 80AM_MISSING_PROG(ACLOCAL, aclocal) 81AM_MISSING_PROG(AUTOCONF, autoconf) 82AM_MISSING_PROG(AUTOMAKE, automake) 83AM_MISSING_PROG(AUTOHEADER, autoheader) 84AM_MISSING_PROG(MAKEINFO, makeinfo) 85AM_MISSING_PROG(AMTAR, tar) 86AM_PROG_INSTALL_SH 87AM_PROG_INSTALL_STRIP 88# We need awk for the "check" target. The system "awk" is bad on 89# some platforms. 90AC_REQUIRE([AC_PROG_AWK])dnl 91AC_REQUIRE([AC_PROG_MAKE_SET])dnl 92AC_REQUIRE([AM_DEP_TRACK])dnl 93AC_REQUIRE([AM_SET_DEPDIR])dnl 94AC_PROVIDE_IFELSE([AC_PROG_][CC], 95 [_AM_DEPENDENCIES(CC)], 96 [define([AC_PROG_][CC], 97 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 98AC_PROVIDE_IFELSE([AC_PROG_][CXX], 99 [_AM_DEPENDENCIES(CXX)], 100 [define([AC_PROG_][CXX], 101 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 102]) 103 104# 105# Check to make sure that the build environment is sane. 106# 107 108# serial 3 109 110# AM_SANITY_CHECK 111# --------------- 112AC_DEFUN([AM_SANITY_CHECK], 113[AC_MSG_CHECKING([whether build environment is sane]) 114# Just in case 115sleep 1 116echo timestamp > conftest.file 117# Do `set' in a subshell so we don't clobber the current shell's 118# arguments. Must try -L first in case configure is actually a 119# symlink; some systems play weird games with the mod time of symlinks 120# (eg FreeBSD returns the mod time of the symlink's containing 121# directory). 122if ( 123 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 124 if test "$[*]" = "X"; then 125 # -L didn't work. 126 set X `ls -t $srcdir/configure conftest.file` 127 fi 128 rm -f conftest.file 129 if test "$[*]" != "X $srcdir/configure conftest.file" \ 130 && test "$[*]" != "X conftest.file $srcdir/configure"; then 131 132 # If neither matched, then we have a broken ls. This can happen 133 # if, for instance, CONFIG_SHELL is bash and it inherits a 134 # broken ls alias from the environment. This has actually 135 # happened. Such a system could not be considered "sane". 136 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 137alias in your environment]) 138 fi 139 140 test "$[2]" = conftest.file 141 ) 142then 143 # Ok. 144 : 145else 146 AC_MSG_ERROR([newly created file is older than distributed files! 147Check your system clock]) 148fi 149AC_MSG_RESULT(yes)]) 150 151 152# serial 2 153 154# AM_MISSING_PROG(NAME, PROGRAM) 155# ------------------------------ 156AC_DEFUN([AM_MISSING_PROG], 157[AC_REQUIRE([AM_MISSING_HAS_RUN]) 158$1=${$1-"${am_missing_run}$2"} 159AC_SUBST($1)]) 160 161 162# AM_MISSING_HAS_RUN 163# ------------------ 164# Define MISSING if not defined so far and test if it supports --run. 165# If it does, set am_missing_run to use it, otherwise, to nothing. 166AC_DEFUN([AM_MISSING_HAS_RUN], 167[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 168test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 169# Use eval to expand $SHELL 170if eval "$MISSING --run true"; then 171 am_missing_run="$MISSING --run " 172else 173 am_missing_run= 174 am_backtick='`' 175 AC_MSG_WARN([${am_backtick}missing' script is too old or missing]) 176fi 177]) 178 179# AM_AUX_DIR_EXPAND 180 181# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 182# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 183# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 184# 185# Of course, Automake must honor this variable whenever it calls a 186# tool from the auxiliary directory. The problem is that $srcdir (and 187# therefore $ac_aux_dir as well) can be either absolute or relative, 188# depending on how configure is run. This is pretty annoying, since 189# it makes $ac_aux_dir quite unusable in subdirectories: in the top 190# source directory, any form will work fine, but in subdirectories a 191# relative path needs to be adjusted first. 192# 193# $ac_aux_dir/missing 194# fails when called from a subdirectory if $ac_aux_dir is relative 195# $top_srcdir/$ac_aux_dir/missing 196# fails if $ac_aux_dir is absolute, 197# fails when called from a subdirectory in a VPATH build with 198# a relative $ac_aux_dir 199# 200# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 201# are both prefixed by $srcdir. In an in-source build this is usually 202# harmless because $srcdir is `.', but things will broke when you 203# start a VPATH build or use an absolute $srcdir. 204# 205# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 206# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 207# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 208# and then we would define $MISSING as 209# MISSING="\${SHELL} $am_aux_dir/missing" 210# This will work as long as MISSING is not called from configure, because 211# unfortunately $(top_srcdir) has no meaning in configure. 212# However there are other variables, like CC, which are often used in 213# configure, and could therefore not use this "fixed" $ac_aux_dir. 214# 215# Another solution, used here, is to always expand $ac_aux_dir to an 216# absolute PATH. The drawback is that using absolute paths prevent a 217# configured tree to be moved without reconfiguration. 218 219AC_DEFUN([AM_AUX_DIR_EXPAND], [ 220# expand $ac_aux_dir to an absolute path 221if test "${CDPATH+set}" = set; then 222 CDPATH=${ZSH_VERSION+.}: # as recommended in autoconf.texi 223fi 224am_aux_dir=`cd $ac_aux_dir && pwd` 225]) 226 227# AM_PROG_INSTALL_SH 228# ------------------ 229# Define $install_sh. 230AC_DEFUN([AM_PROG_INSTALL_SH], 231[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 232install_sh=${install_sh-"$am_aux_dir/install-sh"} 233AC_SUBST(install_sh)]) 234 235# One issue with vendor `install' (even GNU) is that you can't 236# specify the program used to strip binaries. This is especially 237# annoying in cross-compiling environments, where the build's strip 238# is unlikely to handle the host's binaries. 239# Fortunately install-sh will honor a STRIPPROG variable, so we 240# always use install-sh in `make install-strip', and initialize 241# STRIPPROG with the value of the STRIP variable (set by the user). 242AC_DEFUN([AM_PROG_INSTALL_STRIP], 243[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 244INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 245AC_SUBST([INSTALL_STRIP_PROGRAM])]) 246 247# serial 4 -*- Autoconf -*- 248 249 250 251# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 252# written in clear, in which case automake, when reading aclocal.m4, 253# will think it sees a *use*, and therefore will trigger all it's 254# C support machinery. Also note that it means that autoscan, seeing 255# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 256 257 258 259# _AM_DEPENDENCIES(NAME) 260# --------------------- 261# See how the compiler implements dependency checking. 262# NAME is "CC", "CXX" or "OBJC". 263# We try a few techniques and use that to set a single cache variable. 264# 265# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 266# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 267# dependency, and given that the user is not expected to run this macro, 268# just rely on AC_PROG_CC. 269AC_DEFUN([_AM_DEPENDENCIES], 270[AC_REQUIRE([AM_SET_DEPDIR])dnl 271AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 272AC_REQUIRE([AM_MAKE_INCLUDE])dnl 273AC_REQUIRE([AM_DEP_TRACK])dnl 274 275ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 276 [$1], CXX, [depcc="$CXX" am_compiler_list=], 277 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'] 278 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 279 [depcc="$$1" am_compiler_list=]) 280 281AC_CACHE_CHECK([dependency style of $depcc], 282 [am_cv_$1_dependencies_compiler_type], 283[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 284 # We make a subdir and do the tests there. Otherwise we can end up 285 # making bogus files that we don't know about and never remove. For 286 # instance it was reported that on HP-UX the gcc test will end up 287 # making a dummy file named `D' -- because `-MD' means `put the output 288 # in D'. 289 mkdir conftest.dir 290 # Copy depcomp to subdir because otherwise we won't find it if we're 291 # using a relative directory. 292 cp "$am_depcomp" conftest.dir 293 cd conftest.dir 294 295 am_cv_$1_dependencies_compiler_type=none 296 if test "$am_compiler_list" = ""; then 297 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 298 fi 299 for depmode in $am_compiler_list; do 300 # We need to recreate these files for each test, as the compiler may 301 # overwrite some of them when testing with obscure command lines. 302 # This happens at least with the AIX C compiler. 303 echo '#include "conftest.h"' > conftest.c 304 echo 'int i;' > conftest.h 305 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 306 307 case $depmode in 308 nosideeffect) 309 # after this tag, mechanisms are not by side-effect, so they'll 310 # only be used when explicitly requested 311 if test "x$enable_dependency_tracking" = xyes; then 312 continue 313 else 314 break 315 fi 316 ;; 317 none) break ;; 318 esac 319 # We check with `-c' and `-o' for the sake of the "dashmstdout" 320 # mode. It turns out that the SunPro C++ compiler does not properly 321 # handle `-M -o', and we need to detect this. 322 if depmode=$depmode \ 323 source=conftest.c object=conftest.o \ 324 depfile=conftest.Po tmpdepfile=conftest.TPo \ 325 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 326 grep conftest.h conftest.Po > /dev/null 2>&1 && 327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 328 am_cv_$1_dependencies_compiler_type=$depmode 329 break 330 fi 331 done 332 333 cd .. 334 rm -rf conftest.dir 335else 336 am_cv_$1_dependencies_compiler_type=none 337fi 338]) 339$1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type" 340AC_SUBST([$1DEPMODE]) 341]) 342 343 344# AM_SET_DEPDIR 345# ------------- 346# Choose a directory name for dependency files. 347# This macro is AC_REQUIREd in _AM_DEPENDENCIES 348AC_DEFUN([AM_SET_DEPDIR], 349[rm -f .deps 2>/dev/null 350mkdir .deps 2>/dev/null 351if test -d .deps; then 352 DEPDIR=.deps 353else 354 # MS-DOS does not allow filenames that begin with a dot. 355 DEPDIR=_deps 356fi 357rmdir .deps 2>/dev/null 358AC_SUBST(DEPDIR) 359]) 360 361 362# AM_DEP_TRACK 363# ------------ 364AC_DEFUN([AM_DEP_TRACK], 365[AC_ARG_ENABLE(dependency-tracking, 366[ --disable-dependency-tracking Speeds up one-time builds 367 --enable-dependency-tracking Do not reject slow dependency extractors]) 368if test "x$enable_dependency_tracking" != xno; then 369 am_depcomp="$ac_aux_dir/depcomp" 370 AMDEPBACKSLASH='\' 371fi 372AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 373pushdef([subst], defn([AC_SUBST])) 374subst(AMDEPBACKSLASH) 375popdef([subst]) 376]) 377 378# Generate code to set up dependency tracking. 379# This macro should only be invoked once -- use via AC_REQUIRE. 380# Usage: 381# AM_OUTPUT_DEPENDENCY_COMMANDS 382 383# 384# This code is only required when automatic dependency tracking 385# is enabled. FIXME. This creates each `.P' file that we will 386# need in order to bootstrap the dependency handling code. 387AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[ 388AC_OUTPUT_COMMANDS([ 389test x"$AMDEP_TRUE" != x"" || 390for mf in $CONFIG_FILES; do 391 case "$mf" in 392 Makefile) dirpart=.;; 393 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 394 *) continue;; 395 esac 396 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 397 # Extract the definition of DEP_FILES from the Makefile without 398 # running `make'. 399 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 400 test -z "$DEPDIR" && continue 401 # When using ansi2knr, U may be empty or an underscore; expand it 402 U=`sed -n -e '/^U = / s///p' < "$mf"` 403 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 404 # We invoke sed twice because it is the simplest approach to 405 # changing $(DEPDIR) to its actual value in the expansion. 406 for file in `sed -n -e ' 407 /^DEP_FILES = .*\\\\$/ { 408 s/^DEP_FILES = // 409 :loop 410 s/\\\\$// 411 p 412 n 413 /\\\\$/ b loop 414 p 415 } 416 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 417 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 418 # Make sure the directory exists. 419 test -f "$dirpart/$file" && continue 420 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 421 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 422 # echo "creating $dirpart/$file" 423 echo '# dummy' > "$dirpart/$file" 424 done 425done 426], [AMDEP_TRUE="$AMDEP_TRUE" 427ac_aux_dir="$ac_aux_dir"])]) 428 429# AM_MAKE_INCLUDE() 430# ----------------- 431# Check to see how make treats includes. 432AC_DEFUN([AM_MAKE_INCLUDE], 433[am_make=${MAKE-make} 434cat > confinc << 'END' 435doit: 436 @echo done 437END 438# If we don't find an include directive, just comment out the code. 439AC_MSG_CHECKING([for style of include used by $am_make]) 440am__include='#' 441am__quote= 442_am_result=none 443# First try GNU make style include. 444echo "include confinc" > confmf 445# We grep out `Entering directory' and `Leaving directory' 446# messages which can occur if `w' ends up in MAKEFLAGS. 447# In particular we don't look at `^make:' because GNU make might 448# be invoked under some other name (usually "gmake"), in which 449# case it prints its new name instead of `make'. 450if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 451 am__include=include 452 am__quote= 453 _am_result=GNU 454fi 455# Now try BSD make style include. 456if test "$am__include" = "#"; then 457 echo '.include "confinc"' > confmf 458 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 459 am__include=.include 460 am__quote='"' 461 _am_result=BSD 462 fi 463fi 464AC_SUBST(am__include) 465AC_SUBST(am__quote) 466AC_MSG_RESULT($_am_result) 467rm -f confinc confmf 468]) 469 470# serial 3 471 472# AM_CONDITIONAL(NAME, SHELL-CONDITION) 473# ------------------------------------- 474# Define a conditional. 475# 476# FIXME: Once using 2.50, use this: 477# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl 478AC_DEFUN([AM_CONDITIONAL], 479[ifelse([$1], [TRUE], 480 [errprint(__file__:__line__: [$0: invalid condition: $1 481])dnl 482m4exit(1)])dnl 483ifelse([$1], [FALSE], 484 [errprint(__file__:__line__: [$0: invalid condition: $1 485])dnl 486m4exit(1)])dnl 487AC_SUBST([$1_TRUE]) 488AC_SUBST([$1_FALSE]) 489if $2; then 490 $1_TRUE= 491 $1_FALSE='#' 492else 493 $1_TRUE='#' 494 $1_FALSE= 495fi]) 496 497# Like AC_CONFIG_HEADER, but automatically create stamp file. 498 499# serial 3 500 501# When config.status generates a header, we must update the stamp-h file. 502# This file resides in the same directory as the config header 503# that is generated. We must strip everything past the first ":", 504# and everything past the last "/". 505 506AC_PREREQ([2.12]) 507 508AC_DEFUN([AM_CONFIG_HEADER], 509[ifdef([AC_FOREACH],dnl 510 [dnl init our file count if it isn't already 511 m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0])) 512 dnl prepare to store our destination file list for use in config.status 513 AC_FOREACH([_AM_File], [$1], 514 [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*])) 515 m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index)) 516 dnl and add it to the list of files AC keeps track of, along 517 dnl with our hook 518 AC_CONFIG_HEADERS(_AM_File, 519dnl COMMANDS, [, INIT-CMDS] 520[# update the timestamp 521echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index[" 522][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS 523 m4_popdef([_AM_Dest])])],dnl 524[AC_CONFIG_HEADER([$1]) 525 AC_OUTPUT_COMMANDS( 526 ifelse(patsubst([$1], [[^ ]], []), 527 [], 528 [test -z "$CONFIG_HEADERS" || echo timestamp >dnl 529 patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl 530[am_indx=1 531for am_file in $1; do 532 case " \$CONFIG_HEADERS " in 533 *" \$am_file "*) 534 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 535 if test -n "\$am_dir"; then 536 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 537 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 538 am_tmpdir=\$am_tmpdir\$am_subdir/ 539 if test ! -d \$am_tmpdir; then 540 mkdir \$am_tmpdir 541 fi 542 done 543 fi 544 echo timestamp > "\$am_dir"stamp-h\$am_indx 545 ;; 546 esac 547 am_indx=\`expr \$am_indx + 1\` 548done]) 549])]) # AM_CONFIG_HEADER 550 551# _AM_DIRNAME(PATH) 552# ----------------- 553# Like AS_DIRNAME, only do it during macro expansion 554AC_DEFUN([_AM_DIRNAME], 555 [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, 556 m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1, 557 m4_if(m4_regexp([$1], [^/.*]), -1, 558 [.], 559 m4_patsubst([$1], [^\(/\).*], [\1])), 560 m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), 561 m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl 562]) # _AM_DIRNAME 563 564# Add --enable-maintainer-mode option to configure. 565# From Jim Meyering 566 567# serial 1 568 569AC_DEFUN([AM_MAINTAINER_MODE], 570[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 571 dnl maintainer-mode is disabled by default 572 AC_ARG_ENABLE(maintainer-mode, 573[ --enable-maintainer-mode enable make rules and dependencies not useful 574 (and sometimes confusing) to the casual installer], 575 USE_MAINTAINER_MODE=$enableval, 576 USE_MAINTAINER_MODE=no) 577 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 578 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 579 MAINT=$MAINTAINER_MODE_TRUE 580 AC_SUBST(MAINT)dnl 581] 582) 583 584