aclocal.m4 revision 8d4c0f7b
18d4c0f7bSmrg# generated automatically by aclocal 1.10 -*- Autoconf -*- 273143b9aSmrg 373143b9aSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 48d4c0f7bSmrg# 2005, 2006 Free Software Foundation, Inc. 573143b9aSmrg# This file is free software; the Free Software Foundation 673143b9aSmrg# gives unlimited permission to copy and/or distribute it, 773143b9aSmrg# with or without modifications, as long as this notice is preserved. 873143b9aSmrg 973143b9aSmrg# This program is distributed in the hope that it will be useful, 1073143b9aSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1173143b9aSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1273143b9aSmrg# PARTICULAR PURPOSE. 1373143b9aSmrg 148d4c0f7bSmrgm4_if(m4_PACKAGE_VERSION, [2.61],, 158d4c0f7bSmrg[m4_fatal([this file was generated for autoconf 2.61. 168d4c0f7bSmrgYou have another version of autoconf. If you want to use that, 178d4c0f7bSmrgyou should regenerate the build system entirely.], [63])]) 1873143b9aSmrg 198d4c0f7bSmrg# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 2073143b9aSmrg# 2173143b9aSmrg# This file is free software; the Free Software Foundation 2273143b9aSmrg# gives unlimited permission to copy and/or distribute it, 2373143b9aSmrg# with or without modifications, as long as this notice is preserved. 2473143b9aSmrg 2573143b9aSmrg# AM_AUTOMAKE_VERSION(VERSION) 2673143b9aSmrg# ---------------------------- 2773143b9aSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 2873143b9aSmrg# generated from the m4 files accompanying Automake X.Y. 2973143b9aSmrg# (This private macro should not be called outside this file.) 3073143b9aSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 3173143b9aSmrg[am__api_version='1.10' 3273143b9aSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 3373143b9aSmrgdnl require some minimum version. Point them to the right macro. 348d4c0f7bSmrgm4_if([$1], [1.10], [], 3573143b9aSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 3673143b9aSmrg]) 3773143b9aSmrg 3873143b9aSmrg# _AM_AUTOCONF_VERSION(VERSION) 3973143b9aSmrg# ----------------------------- 4073143b9aSmrg# aclocal traces this macro to find the Autoconf version. 4173143b9aSmrg# This is a private macro too. Using m4_define simplifies 4273143b9aSmrg# the logic in aclocal, which can simply ignore this definition. 4373143b9aSmrgm4_define([_AM_AUTOCONF_VERSION], []) 4473143b9aSmrg 4573143b9aSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 4673143b9aSmrg# ------------------------------- 4773143b9aSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 4873143b9aSmrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 4973143b9aSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 508d4c0f7bSmrg[AM_AUTOMAKE_VERSION([1.10])dnl 518d4c0f7bSmrg_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) 5273143b9aSmrg 5373143b9aSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 5473143b9aSmrg 5573143b9aSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 5673143b9aSmrg# 5773143b9aSmrg# This file is free software; the Free Software Foundation 5873143b9aSmrg# gives unlimited permission to copy and/or distribute it, 5973143b9aSmrg# with or without modifications, as long as this notice is preserved. 6073143b9aSmrg 6173143b9aSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 6273143b9aSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 6373143b9aSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 6473143b9aSmrg# 6573143b9aSmrg# Of course, Automake must honor this variable whenever it calls a 6673143b9aSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 6773143b9aSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 6873143b9aSmrg# depending on how configure is run. This is pretty annoying, since 6973143b9aSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 7073143b9aSmrg# source directory, any form will work fine, but in subdirectories a 7173143b9aSmrg# relative path needs to be adjusted first. 7273143b9aSmrg# 7373143b9aSmrg# $ac_aux_dir/missing 7473143b9aSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 7573143b9aSmrg# $top_srcdir/$ac_aux_dir/missing 7673143b9aSmrg# fails if $ac_aux_dir is absolute, 7773143b9aSmrg# fails when called from a subdirectory in a VPATH build with 7873143b9aSmrg# a relative $ac_aux_dir 7973143b9aSmrg# 8073143b9aSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 8173143b9aSmrg# are both prefixed by $srcdir. In an in-source build this is usually 8273143b9aSmrg# harmless because $srcdir is `.', but things will broke when you 8373143b9aSmrg# start a VPATH build or use an absolute $srcdir. 8473143b9aSmrg# 8573143b9aSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 8673143b9aSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 8773143b9aSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 8873143b9aSmrg# and then we would define $MISSING as 8973143b9aSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 9073143b9aSmrg# This will work as long as MISSING is not called from configure, because 9173143b9aSmrg# unfortunately $(top_srcdir) has no meaning in configure. 9273143b9aSmrg# However there are other variables, like CC, which are often used in 9373143b9aSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 9473143b9aSmrg# 9573143b9aSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 9673143b9aSmrg# absolute PATH. The drawback is that using absolute paths prevent a 9773143b9aSmrg# configured tree to be moved without reconfiguration. 9873143b9aSmrg 9973143b9aSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 10073143b9aSmrg[dnl Rely on autoconf to set up CDPATH properly. 10173143b9aSmrgAC_PREREQ([2.50])dnl 10273143b9aSmrg# expand $ac_aux_dir to an absolute path 10373143b9aSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 10473143b9aSmrg]) 10573143b9aSmrg 10673143b9aSmrg# AM_CONDITIONAL -*- Autoconf -*- 10773143b9aSmrg 10873143b9aSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 10973143b9aSmrg# Free Software Foundation, Inc. 11073143b9aSmrg# 11173143b9aSmrg# This file is free software; the Free Software Foundation 11273143b9aSmrg# gives unlimited permission to copy and/or distribute it, 11373143b9aSmrg# with or without modifications, as long as this notice is preserved. 11473143b9aSmrg 11573143b9aSmrg# serial 8 11673143b9aSmrg 11773143b9aSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 11873143b9aSmrg# ------------------------------------- 11973143b9aSmrg# Define a conditional. 12073143b9aSmrgAC_DEFUN([AM_CONDITIONAL], 12173143b9aSmrg[AC_PREREQ(2.52)dnl 12273143b9aSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 12373143b9aSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 12473143b9aSmrgAC_SUBST([$1_TRUE])dnl 12573143b9aSmrgAC_SUBST([$1_FALSE])dnl 12673143b9aSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 12773143b9aSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 12873143b9aSmrgif $2; then 12973143b9aSmrg $1_TRUE= 13073143b9aSmrg $1_FALSE='#' 13173143b9aSmrgelse 13273143b9aSmrg $1_TRUE='#' 13373143b9aSmrg $1_FALSE= 13473143b9aSmrgfi 13573143b9aSmrgAC_CONFIG_COMMANDS_PRE( 13673143b9aSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 13773143b9aSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 13873143b9aSmrgUsually this means the macro was only invoked conditionally.]]) 13973143b9aSmrgfi])]) 14073143b9aSmrg 14173143b9aSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 14273143b9aSmrg# Free Software Foundation, Inc. 14373143b9aSmrg# 14473143b9aSmrg# This file is free software; the Free Software Foundation 14573143b9aSmrg# gives unlimited permission to copy and/or distribute it, 14673143b9aSmrg# with or without modifications, as long as this notice is preserved. 14773143b9aSmrg 14873143b9aSmrg# serial 9 14973143b9aSmrg 15073143b9aSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 15173143b9aSmrg# written in clear, in which case automake, when reading aclocal.m4, 15273143b9aSmrg# will think it sees a *use*, and therefore will trigger all it's 15373143b9aSmrg# C support machinery. Also note that it means that autoscan, seeing 15473143b9aSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 15573143b9aSmrg 15673143b9aSmrg 15773143b9aSmrg# _AM_DEPENDENCIES(NAME) 15873143b9aSmrg# ---------------------- 15973143b9aSmrg# See how the compiler implements dependency checking. 16073143b9aSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 16173143b9aSmrg# We try a few techniques and use that to set a single cache variable. 16273143b9aSmrg# 16373143b9aSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 16473143b9aSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 16573143b9aSmrg# dependency, and given that the user is not expected to run this macro, 16673143b9aSmrg# just rely on AC_PROG_CC. 16773143b9aSmrgAC_DEFUN([_AM_DEPENDENCIES], 16873143b9aSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 16973143b9aSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 17073143b9aSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 17173143b9aSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 17273143b9aSmrg 17373143b9aSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 17473143b9aSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 17573143b9aSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 17673143b9aSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 17773143b9aSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 17873143b9aSmrg [depcc="$$1" am_compiler_list=]) 17973143b9aSmrg 18073143b9aSmrgAC_CACHE_CHECK([dependency style of $depcc], 18173143b9aSmrg [am_cv_$1_dependencies_compiler_type], 18273143b9aSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 18373143b9aSmrg # We make a subdir and do the tests there. Otherwise we can end up 18473143b9aSmrg # making bogus files that we don't know about and never remove. For 18573143b9aSmrg # instance it was reported that on HP-UX the gcc test will end up 18673143b9aSmrg # making a dummy file named `D' -- because `-MD' means `put the output 18773143b9aSmrg # in D'. 18873143b9aSmrg mkdir conftest.dir 18973143b9aSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 19073143b9aSmrg # using a relative directory. 19173143b9aSmrg cp "$am_depcomp" conftest.dir 19273143b9aSmrg cd conftest.dir 19373143b9aSmrg # We will build objects and dependencies in a subdirectory because 19473143b9aSmrg # it helps to detect inapplicable dependency modes. For instance 19573143b9aSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 19673143b9aSmrg # side effect of compilation, but ICC will put the dependencies in 19773143b9aSmrg # the current directory while Tru64 will put them in the object 19873143b9aSmrg # directory. 19973143b9aSmrg mkdir sub 20073143b9aSmrg 20173143b9aSmrg am_cv_$1_dependencies_compiler_type=none 20273143b9aSmrg if test "$am_compiler_list" = ""; then 20373143b9aSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 20473143b9aSmrg fi 20573143b9aSmrg for depmode in $am_compiler_list; do 20673143b9aSmrg # Setup a source with many dependencies, because some compilers 20773143b9aSmrg # like to wrap large dependency lists on column 80 (with \), and 20873143b9aSmrg # we should not choose a depcomp mode which is confused by this. 20973143b9aSmrg # 21073143b9aSmrg # We need to recreate these files for each test, as the compiler may 21173143b9aSmrg # overwrite some of them when testing with obscure command lines. 21273143b9aSmrg # This happens at least with the AIX C compiler. 21373143b9aSmrg : > sub/conftest.c 21473143b9aSmrg for i in 1 2 3 4 5 6; do 21573143b9aSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 21673143b9aSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 21773143b9aSmrg # Solaris 8's {/usr,}/bin/sh. 21873143b9aSmrg touch sub/conftst$i.h 21973143b9aSmrg done 22073143b9aSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 22173143b9aSmrg 22273143b9aSmrg case $depmode in 22373143b9aSmrg nosideeffect) 22473143b9aSmrg # after this tag, mechanisms are not by side-effect, so they'll 22573143b9aSmrg # only be used when explicitly requested 22673143b9aSmrg if test "x$enable_dependency_tracking" = xyes; then 22773143b9aSmrg continue 22873143b9aSmrg else 22973143b9aSmrg break 23073143b9aSmrg fi 23173143b9aSmrg ;; 23273143b9aSmrg none) break ;; 23373143b9aSmrg esac 23473143b9aSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 23573143b9aSmrg # mode. It turns out that the SunPro C++ compiler does not properly 23673143b9aSmrg # handle `-M -o', and we need to detect this. 23773143b9aSmrg if depmode=$depmode \ 23873143b9aSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 23973143b9aSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 24073143b9aSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 24173143b9aSmrg >/dev/null 2>conftest.err && 24273143b9aSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 24373143b9aSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 24473143b9aSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 24573143b9aSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 24673143b9aSmrg # icc doesn't choke on unknown options, it will just issue warnings 24773143b9aSmrg # or remarks (even with -Werror). So we grep stderr for any message 24873143b9aSmrg # that says an option was ignored or not supported. 24973143b9aSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 25073143b9aSmrg # icc: Command line warning: ignoring option '-M'; no argument required 25173143b9aSmrg # The diagnosis changed in icc 8.0: 25273143b9aSmrg # icc: Command line remark: option '-MP' not supported 25373143b9aSmrg if (grep 'ignoring option' conftest.err || 25473143b9aSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 25573143b9aSmrg am_cv_$1_dependencies_compiler_type=$depmode 25673143b9aSmrg break 25773143b9aSmrg fi 25873143b9aSmrg fi 25973143b9aSmrg done 26073143b9aSmrg 26173143b9aSmrg cd .. 26273143b9aSmrg rm -rf conftest.dir 26373143b9aSmrgelse 26473143b9aSmrg am_cv_$1_dependencies_compiler_type=none 26573143b9aSmrgfi 26673143b9aSmrg]) 26773143b9aSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 26873143b9aSmrgAM_CONDITIONAL([am__fastdep$1], [ 26973143b9aSmrg test "x$enable_dependency_tracking" != xno \ 27073143b9aSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 27173143b9aSmrg]) 27273143b9aSmrg 27373143b9aSmrg 27473143b9aSmrg# AM_SET_DEPDIR 27573143b9aSmrg# ------------- 27673143b9aSmrg# Choose a directory name for dependency files. 27773143b9aSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 27873143b9aSmrgAC_DEFUN([AM_SET_DEPDIR], 27973143b9aSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 28073143b9aSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 28173143b9aSmrg]) 28273143b9aSmrg 28373143b9aSmrg 28473143b9aSmrg# AM_DEP_TRACK 28573143b9aSmrg# ------------ 28673143b9aSmrgAC_DEFUN([AM_DEP_TRACK], 28773143b9aSmrg[AC_ARG_ENABLE(dependency-tracking, 28873143b9aSmrg[ --disable-dependency-tracking speeds up one-time build 28973143b9aSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 29073143b9aSmrgif test "x$enable_dependency_tracking" != xno; then 29173143b9aSmrg am_depcomp="$ac_aux_dir/depcomp" 29273143b9aSmrg AMDEPBACKSLASH='\' 29373143b9aSmrgfi 29473143b9aSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 29573143b9aSmrgAC_SUBST([AMDEPBACKSLASH])dnl 29673143b9aSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 29773143b9aSmrg]) 29873143b9aSmrg 29973143b9aSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 30073143b9aSmrg 30173143b9aSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 30273143b9aSmrg# Free Software Foundation, Inc. 30373143b9aSmrg# 30473143b9aSmrg# This file is free software; the Free Software Foundation 30573143b9aSmrg# gives unlimited permission to copy and/or distribute it, 30673143b9aSmrg# with or without modifications, as long as this notice is preserved. 30773143b9aSmrg 30873143b9aSmrg#serial 3 30973143b9aSmrg 31073143b9aSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 31173143b9aSmrg# ------------------------------ 31273143b9aSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 31373143b9aSmrg[for mf in $CONFIG_FILES; do 31473143b9aSmrg # Strip MF so we end up with the name of the file. 31573143b9aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 31673143b9aSmrg # Check whether this is an Automake generated Makefile or not. 31773143b9aSmrg # We used to match only the files named `Makefile.in', but 31873143b9aSmrg # some people rename them; so instead we look at the file content. 31973143b9aSmrg # Grep'ing the first line is not enough: some people post-process 32073143b9aSmrg # each Makefile.in and add a new line on top of each file to say so. 32173143b9aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 32273143b9aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 3238d4c0f7bSmrg if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 32473143b9aSmrg dirpart=`AS_DIRNAME("$mf")` 32573143b9aSmrg else 32673143b9aSmrg continue 32773143b9aSmrg fi 32873143b9aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 32973143b9aSmrg # from the Makefile without running `make'. 33073143b9aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 33173143b9aSmrg test -z "$DEPDIR" && continue 33273143b9aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 33373143b9aSmrg test -z "am__include" && continue 33473143b9aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 33573143b9aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 33673143b9aSmrg U=`sed -n 's/^U = //p' < "$mf"` 33773143b9aSmrg # Find all dependency output files, they are included files with 33873143b9aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 33973143b9aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 34073143b9aSmrg # expansion. 34173143b9aSmrg for file in `sed -n " 34273143b9aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 34373143b9aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 34473143b9aSmrg # Make sure the directory exists. 34573143b9aSmrg test -f "$dirpart/$file" && continue 34673143b9aSmrg fdir=`AS_DIRNAME(["$file"])` 34773143b9aSmrg AS_MKDIR_P([$dirpart/$fdir]) 34873143b9aSmrg # echo "creating $dirpart/$file" 34973143b9aSmrg echo '# dummy' > "$dirpart/$file" 35073143b9aSmrg done 35173143b9aSmrgdone 35273143b9aSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 35373143b9aSmrg 35473143b9aSmrg 35573143b9aSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 35673143b9aSmrg# ----------------------------- 35773143b9aSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 35873143b9aSmrg# 35973143b9aSmrg# This code is only required when automatic dependency tracking 36073143b9aSmrg# is enabled. FIXME. This creates each `.P' file that we will 36173143b9aSmrg# need in order to bootstrap the dependency handling code. 36273143b9aSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 36373143b9aSmrg[AC_CONFIG_COMMANDS([depfiles], 36473143b9aSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 36573143b9aSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 36673143b9aSmrg]) 36773143b9aSmrg 36873143b9aSmrg# Do all the work for Automake. -*- Autoconf -*- 36973143b9aSmrg 37073143b9aSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3718d4c0f7bSmrg# 2005, 2006 Free Software Foundation, Inc. 37273143b9aSmrg# 37373143b9aSmrg# This file is free software; the Free Software Foundation 37473143b9aSmrg# gives unlimited permission to copy and/or distribute it, 37573143b9aSmrg# with or without modifications, as long as this notice is preserved. 37673143b9aSmrg 3778d4c0f7bSmrg# serial 12 37873143b9aSmrg 37973143b9aSmrg# This macro actually does too much. Some checks are only needed if 38073143b9aSmrg# your package does certain things. But this isn't really a big deal. 38173143b9aSmrg 38273143b9aSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 38373143b9aSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 38473143b9aSmrg# ----------------------------------------------- 38573143b9aSmrg# The call with PACKAGE and VERSION arguments is the old style 38673143b9aSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 38773143b9aSmrg# and VERSION should now be passed to AC_INIT and removed from 38873143b9aSmrg# the call to AM_INIT_AUTOMAKE. 38973143b9aSmrg# We support both call styles for the transition. After 39073143b9aSmrg# the next Automake release, Autoconf can make the AC_INIT 39173143b9aSmrg# arguments mandatory, and then we can depend on a new Autoconf 39273143b9aSmrg# release and drop the old call support. 39373143b9aSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 39473143b9aSmrg[AC_PREREQ([2.60])dnl 39573143b9aSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 39673143b9aSmrgdnl the ones we care about. 39773143b9aSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 39873143b9aSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 39973143b9aSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 40073143b9aSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 40173143b9aSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 40273143b9aSmrg # is not polluted with repeated "-I." 40373143b9aSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 40473143b9aSmrg # test to see if srcdir already configured 40573143b9aSmrg if test -f $srcdir/config.status; then 40673143b9aSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 40773143b9aSmrg fi 40873143b9aSmrgfi 40973143b9aSmrg 41073143b9aSmrg# test whether we have cygpath 41173143b9aSmrgif test -z "$CYGPATH_W"; then 41273143b9aSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 41373143b9aSmrg CYGPATH_W='cygpath -w' 41473143b9aSmrg else 41573143b9aSmrg CYGPATH_W=echo 41673143b9aSmrg fi 41773143b9aSmrgfi 41873143b9aSmrgAC_SUBST([CYGPATH_W]) 41973143b9aSmrg 42073143b9aSmrg# Define the identity of the package. 42173143b9aSmrgdnl Distinguish between old-style and new-style calls. 42273143b9aSmrgm4_ifval([$2], 42373143b9aSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 42473143b9aSmrg AC_SUBST([PACKAGE], [$1])dnl 42573143b9aSmrg AC_SUBST([VERSION], [$2])], 42673143b9aSmrg[_AM_SET_OPTIONS([$1])dnl 42773143b9aSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 42873143b9aSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 42973143b9aSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 43073143b9aSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 43173143b9aSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 43273143b9aSmrg 43373143b9aSmrg_AM_IF_OPTION([no-define],, 43473143b9aSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 43573143b9aSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 43673143b9aSmrg 43773143b9aSmrg# Some tools Automake needs. 43873143b9aSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 43973143b9aSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 44073143b9aSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 44173143b9aSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 44273143b9aSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 44373143b9aSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 44473143b9aSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 44573143b9aSmrgAM_PROG_INSTALL_SH 44673143b9aSmrgAM_PROG_INSTALL_STRIP 44773143b9aSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 44873143b9aSmrg# We need awk for the "check" target. The system "awk" is bad on 44973143b9aSmrg# some platforms. 45073143b9aSmrgAC_REQUIRE([AC_PROG_AWK])dnl 45173143b9aSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 45273143b9aSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 45373143b9aSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 45473143b9aSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 45573143b9aSmrg [_AM_PROG_TAR([v7])])]) 45673143b9aSmrg_AM_IF_OPTION([no-dependencies],, 45773143b9aSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 45873143b9aSmrg [_AM_DEPENDENCIES(CC)], 45973143b9aSmrg [define([AC_PROG_CC], 46073143b9aSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 46173143b9aSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 46273143b9aSmrg [_AM_DEPENDENCIES(CXX)], 46373143b9aSmrg [define([AC_PROG_CXX], 46473143b9aSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 46573143b9aSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 46673143b9aSmrg [_AM_DEPENDENCIES(OBJC)], 46773143b9aSmrg [define([AC_PROG_OBJC], 46873143b9aSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 46973143b9aSmrg]) 47073143b9aSmrg]) 47173143b9aSmrg 47273143b9aSmrg 47373143b9aSmrg# When config.status generates a header, we must update the stamp-h file. 47473143b9aSmrg# This file resides in the same directory as the config header 47573143b9aSmrg# that is generated. The stamp files are numbered to have different names. 47673143b9aSmrg 47773143b9aSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 47873143b9aSmrg# loop where config.status creates the headers, so we can generate 47973143b9aSmrg# our stamp files there. 48073143b9aSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 48173143b9aSmrg[# Compute $1's index in $config_headers. 48273143b9aSmrg_am_stamp_count=1 48373143b9aSmrgfor _am_header in $config_headers :; do 48473143b9aSmrg case $_am_header in 4858d4c0f7bSmrg $1 | $1:* ) 48673143b9aSmrg break ;; 48773143b9aSmrg * ) 48873143b9aSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 48973143b9aSmrg esac 49073143b9aSmrgdone 4918d4c0f7bSmrgecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 49273143b9aSmrg 49373143b9aSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 49473143b9aSmrg# 49573143b9aSmrg# This file is free software; the Free Software Foundation 49673143b9aSmrg# gives unlimited permission to copy and/or distribute it, 49773143b9aSmrg# with or without modifications, as long as this notice is preserved. 49873143b9aSmrg 49973143b9aSmrg# AM_PROG_INSTALL_SH 50073143b9aSmrg# ------------------ 50173143b9aSmrg# Define $install_sh. 50273143b9aSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 50373143b9aSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 50473143b9aSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 50573143b9aSmrgAC_SUBST(install_sh)]) 50673143b9aSmrg 50773143b9aSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 50873143b9aSmrg# 50973143b9aSmrg# This file is free software; the Free Software Foundation 51073143b9aSmrg# gives unlimited permission to copy and/or distribute it, 51173143b9aSmrg# with or without modifications, as long as this notice is preserved. 51273143b9aSmrg 51373143b9aSmrg# serial 2 51473143b9aSmrg 51573143b9aSmrg# Check whether the underlying file-system supports filenames 51673143b9aSmrg# with a leading dot. For instance MS-DOS doesn't. 51773143b9aSmrgAC_DEFUN([AM_SET_LEADING_DOT], 51873143b9aSmrg[rm -rf .tst 2>/dev/null 51973143b9aSmrgmkdir .tst 2>/dev/null 52073143b9aSmrgif test -d .tst; then 52173143b9aSmrg am__leading_dot=. 52273143b9aSmrgelse 52373143b9aSmrg am__leading_dot=_ 52473143b9aSmrgfi 52573143b9aSmrgrmdir .tst 2>/dev/null 52673143b9aSmrgAC_SUBST([am__leading_dot])]) 52773143b9aSmrg 52873143b9aSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 52973143b9aSmrg# From Jim Meyering 53073143b9aSmrg 53173143b9aSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 53273143b9aSmrg# Free Software Foundation, Inc. 53373143b9aSmrg# 53473143b9aSmrg# This file is free software; the Free Software Foundation 53573143b9aSmrg# gives unlimited permission to copy and/or distribute it, 53673143b9aSmrg# with or without modifications, as long as this notice is preserved. 53773143b9aSmrg 53873143b9aSmrg# serial 4 53973143b9aSmrg 54073143b9aSmrgAC_DEFUN([AM_MAINTAINER_MODE], 54173143b9aSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 54273143b9aSmrg dnl maintainer-mode is disabled by default 54373143b9aSmrg AC_ARG_ENABLE(maintainer-mode, 54473143b9aSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 54573143b9aSmrg (and sometimes confusing) to the casual installer], 54673143b9aSmrg USE_MAINTAINER_MODE=$enableval, 54773143b9aSmrg USE_MAINTAINER_MODE=no) 54873143b9aSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 54973143b9aSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 55073143b9aSmrg MAINT=$MAINTAINER_MODE_TRUE 55173143b9aSmrg AC_SUBST(MAINT)dnl 55273143b9aSmrg] 55373143b9aSmrg) 55473143b9aSmrg 55573143b9aSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 55673143b9aSmrg 55773143b9aSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 55873143b9aSmrg 55973143b9aSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 56073143b9aSmrg# 56173143b9aSmrg# This file is free software; the Free Software Foundation 56273143b9aSmrg# gives unlimited permission to copy and/or distribute it, 56373143b9aSmrg# with or without modifications, as long as this notice is preserved. 56473143b9aSmrg 56573143b9aSmrg# serial 3 56673143b9aSmrg 56773143b9aSmrg# AM_MAKE_INCLUDE() 56873143b9aSmrg# ----------------- 56973143b9aSmrg# Check to see how make treats includes. 57073143b9aSmrgAC_DEFUN([AM_MAKE_INCLUDE], 57173143b9aSmrg[am_make=${MAKE-make} 57273143b9aSmrgcat > confinc << 'END' 57373143b9aSmrgam__doit: 57473143b9aSmrg @echo done 57573143b9aSmrg.PHONY: am__doit 57673143b9aSmrgEND 57773143b9aSmrg# If we don't find an include directive, just comment out the code. 57873143b9aSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 57973143b9aSmrgam__include="#" 58073143b9aSmrgam__quote= 58173143b9aSmrg_am_result=none 58273143b9aSmrg# First try GNU make style include. 58373143b9aSmrgecho "include confinc" > confmf 58473143b9aSmrg# We grep out `Entering directory' and `Leaving directory' 58573143b9aSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 58673143b9aSmrg# In particular we don't look at `^make:' because GNU make might 58773143b9aSmrg# be invoked under some other name (usually "gmake"), in which 58873143b9aSmrg# case it prints its new name instead of `make'. 58973143b9aSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 59073143b9aSmrg am__include=include 59173143b9aSmrg am__quote= 59273143b9aSmrg _am_result=GNU 59373143b9aSmrgfi 59473143b9aSmrg# Now try BSD make style include. 59573143b9aSmrgif test "$am__include" = "#"; then 59673143b9aSmrg echo '.include "confinc"' > confmf 59773143b9aSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 59873143b9aSmrg am__include=.include 59973143b9aSmrg am__quote="\"" 60073143b9aSmrg _am_result=BSD 60173143b9aSmrg fi 60273143b9aSmrgfi 60373143b9aSmrgAC_SUBST([am__include]) 60473143b9aSmrgAC_SUBST([am__quote]) 60573143b9aSmrgAC_MSG_RESULT([$_am_result]) 60673143b9aSmrgrm -f confinc confmf 60773143b9aSmrg]) 60873143b9aSmrg 60973143b9aSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 61073143b9aSmrg 61173143b9aSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 61273143b9aSmrg# Free Software Foundation, Inc. 61373143b9aSmrg# 61473143b9aSmrg# This file is free software; the Free Software Foundation 61573143b9aSmrg# gives unlimited permission to copy and/or distribute it, 61673143b9aSmrg# with or without modifications, as long as this notice is preserved. 61773143b9aSmrg 61873143b9aSmrg# serial 5 61973143b9aSmrg 62073143b9aSmrg# AM_MISSING_PROG(NAME, PROGRAM) 62173143b9aSmrg# ------------------------------ 62273143b9aSmrgAC_DEFUN([AM_MISSING_PROG], 62373143b9aSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 62473143b9aSmrg$1=${$1-"${am_missing_run}$2"} 62573143b9aSmrgAC_SUBST($1)]) 62673143b9aSmrg 62773143b9aSmrg 62873143b9aSmrg# AM_MISSING_HAS_RUN 62973143b9aSmrg# ------------------ 63073143b9aSmrg# Define MISSING if not defined so far and test if it supports --run. 63173143b9aSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 63273143b9aSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 63373143b9aSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 63473143b9aSmrgAC_REQUIRE_AUX_FILE([missing])dnl 63573143b9aSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 63673143b9aSmrg# Use eval to expand $SHELL 63773143b9aSmrgif eval "$MISSING --run true"; then 63873143b9aSmrg am_missing_run="$MISSING --run " 63973143b9aSmrgelse 64073143b9aSmrg am_missing_run= 64173143b9aSmrg AC_MSG_WARN([`missing' script is too old or missing]) 64273143b9aSmrgfi 64373143b9aSmrg]) 64473143b9aSmrg 64573143b9aSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 64673143b9aSmrg# 64773143b9aSmrg# This file is free software; the Free Software Foundation 64873143b9aSmrg# gives unlimited permission to copy and/or distribute it, 64973143b9aSmrg# with or without modifications, as long as this notice is preserved. 65073143b9aSmrg 65173143b9aSmrg# AM_PROG_MKDIR_P 65273143b9aSmrg# --------------- 65373143b9aSmrg# Check for `mkdir -p'. 65473143b9aSmrgAC_DEFUN([AM_PROG_MKDIR_P], 65573143b9aSmrg[AC_PREREQ([2.60])dnl 65673143b9aSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 65773143b9aSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 65873143b9aSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 65973143b9aSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 66073143b9aSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 66173143b9aSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 66273143b9aSmrgdnl adjustment using top_builddir (which is defined more often than 66373143b9aSmrgdnl MKDIR_P). 66473143b9aSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 66573143b9aSmrgcase $mkdir_p in 66673143b9aSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 66773143b9aSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 66873143b9aSmrgesac 66973143b9aSmrg]) 67073143b9aSmrg 67173143b9aSmrg# Helper functions for option handling. -*- Autoconf -*- 67273143b9aSmrg 67373143b9aSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 67473143b9aSmrg# 67573143b9aSmrg# This file is free software; the Free Software Foundation 67673143b9aSmrg# gives unlimited permission to copy and/or distribute it, 67773143b9aSmrg# with or without modifications, as long as this notice is preserved. 67873143b9aSmrg 67973143b9aSmrg# serial 3 68073143b9aSmrg 68173143b9aSmrg# _AM_MANGLE_OPTION(NAME) 68273143b9aSmrg# ----------------------- 68373143b9aSmrgAC_DEFUN([_AM_MANGLE_OPTION], 68473143b9aSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 68573143b9aSmrg 68673143b9aSmrg# _AM_SET_OPTION(NAME) 68773143b9aSmrg# ------------------------------ 68873143b9aSmrg# Set option NAME. Presently that only means defining a flag for this option. 68973143b9aSmrgAC_DEFUN([_AM_SET_OPTION], 69073143b9aSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 69173143b9aSmrg 69273143b9aSmrg# _AM_SET_OPTIONS(OPTIONS) 69373143b9aSmrg# ---------------------------------- 69473143b9aSmrg# OPTIONS is a space-separated list of Automake options. 69573143b9aSmrgAC_DEFUN([_AM_SET_OPTIONS], 69673143b9aSmrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 69773143b9aSmrg 69873143b9aSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 69973143b9aSmrg# ------------------------------------------- 70073143b9aSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 70173143b9aSmrgAC_DEFUN([_AM_IF_OPTION], 70273143b9aSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 70373143b9aSmrg 70473143b9aSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 70573143b9aSmrg 70673143b9aSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 70773143b9aSmrg# Free Software Foundation, Inc. 70873143b9aSmrg# 70973143b9aSmrg# This file is free software; the Free Software Foundation 71073143b9aSmrg# gives unlimited permission to copy and/or distribute it, 71173143b9aSmrg# with or without modifications, as long as this notice is preserved. 71273143b9aSmrg 71373143b9aSmrg# serial 4 71473143b9aSmrg 71573143b9aSmrg# AM_SANITY_CHECK 71673143b9aSmrg# --------------- 71773143b9aSmrgAC_DEFUN([AM_SANITY_CHECK], 71873143b9aSmrg[AC_MSG_CHECKING([whether build environment is sane]) 71973143b9aSmrg# Just in case 72073143b9aSmrgsleep 1 72173143b9aSmrgecho timestamp > conftest.file 72273143b9aSmrg# Do `set' in a subshell so we don't clobber the current shell's 72373143b9aSmrg# arguments. Must try -L first in case configure is actually a 72473143b9aSmrg# symlink; some systems play weird games with the mod time of symlinks 72573143b9aSmrg# (eg FreeBSD returns the mod time of the symlink's containing 72673143b9aSmrg# directory). 72773143b9aSmrgif ( 72873143b9aSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 72973143b9aSmrg if test "$[*]" = "X"; then 73073143b9aSmrg # -L didn't work. 73173143b9aSmrg set X `ls -t $srcdir/configure conftest.file` 73273143b9aSmrg fi 73373143b9aSmrg rm -f conftest.file 73473143b9aSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 73573143b9aSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 73673143b9aSmrg 73773143b9aSmrg # If neither matched, then we have a broken ls. This can happen 73873143b9aSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 73973143b9aSmrg # broken ls alias from the environment. This has actually 74073143b9aSmrg # happened. Such a system could not be considered "sane". 74173143b9aSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 74273143b9aSmrgalias in your environment]) 74373143b9aSmrg fi 74473143b9aSmrg 74573143b9aSmrg test "$[2]" = conftest.file 74673143b9aSmrg ) 74773143b9aSmrgthen 74873143b9aSmrg # Ok. 74973143b9aSmrg : 75073143b9aSmrgelse 75173143b9aSmrg AC_MSG_ERROR([newly created file is older than distributed files! 75273143b9aSmrgCheck your system clock]) 75373143b9aSmrgfi 75473143b9aSmrgAC_MSG_RESULT(yes)]) 75573143b9aSmrg 75673143b9aSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 75773143b9aSmrg# 75873143b9aSmrg# This file is free software; the Free Software Foundation 75973143b9aSmrg# gives unlimited permission to copy and/or distribute it, 76073143b9aSmrg# with or without modifications, as long as this notice is preserved. 76173143b9aSmrg 76273143b9aSmrg# AM_PROG_INSTALL_STRIP 76373143b9aSmrg# --------------------- 76473143b9aSmrg# One issue with vendor `install' (even GNU) is that you can't 76573143b9aSmrg# specify the program used to strip binaries. This is especially 76673143b9aSmrg# annoying in cross-compiling environments, where the build's strip 76773143b9aSmrg# is unlikely to handle the host's binaries. 76873143b9aSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 76973143b9aSmrg# always use install-sh in `make install-strip', and initialize 77073143b9aSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 77173143b9aSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 77273143b9aSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 77373143b9aSmrg# Installed binaries are usually stripped using `strip' when the user 77473143b9aSmrg# run `make install-strip'. However `strip' might not be the right 77573143b9aSmrg# tool to use in cross-compilation environments, therefore Automake 77673143b9aSmrg# will honor the `STRIP' environment variable to overrule this program. 77773143b9aSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 77873143b9aSmrgif test "$cross_compiling" != no; then 77973143b9aSmrg AC_CHECK_TOOL([STRIP], [strip], :) 78073143b9aSmrgfi 78173143b9aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 78273143b9aSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 78373143b9aSmrg 78473143b9aSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 78573143b9aSmrg# 78673143b9aSmrg# This file is free software; the Free Software Foundation 78773143b9aSmrg# gives unlimited permission to copy and/or distribute it, 78873143b9aSmrg# with or without modifications, as long as this notice is preserved. 78973143b9aSmrg 79073143b9aSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 79173143b9aSmrg# --------------------------- 7928d4c0f7bSmrg# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. 79373143b9aSmrg# This macro is traced by Automake. 79473143b9aSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 79573143b9aSmrg 79673143b9aSmrg# Check how to create a tarball. -*- Autoconf -*- 79773143b9aSmrg 79873143b9aSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 79973143b9aSmrg# 80073143b9aSmrg# This file is free software; the Free Software Foundation 80173143b9aSmrg# gives unlimited permission to copy and/or distribute it, 80273143b9aSmrg# with or without modifications, as long as this notice is preserved. 80373143b9aSmrg 80473143b9aSmrg# serial 2 80573143b9aSmrg 80673143b9aSmrg# _AM_PROG_TAR(FORMAT) 80773143b9aSmrg# -------------------- 80873143b9aSmrg# Check how to create a tarball in format FORMAT. 80973143b9aSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 81073143b9aSmrg# 81173143b9aSmrg# Substitute a variable $(am__tar) that is a command 81273143b9aSmrg# writing to stdout a FORMAT-tarball containing the directory 81373143b9aSmrg# $tardir. 81473143b9aSmrg# tardir=directory && $(am__tar) > result.tar 81573143b9aSmrg# 81673143b9aSmrg# Substitute a variable $(am__untar) that extract such 81773143b9aSmrg# a tarball read from stdin. 81873143b9aSmrg# $(am__untar) < result.tar 81973143b9aSmrgAC_DEFUN([_AM_PROG_TAR], 82073143b9aSmrg[# Always define AMTAR for backward compatibility. 82173143b9aSmrgAM_MISSING_PROG([AMTAR], [tar]) 82273143b9aSmrgm4_if([$1], [v7], 82373143b9aSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 82473143b9aSmrg [m4_case([$1], [ustar],, [pax],, 82573143b9aSmrg [m4_fatal([Unknown tar format])]) 82673143b9aSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 82773143b9aSmrg# Loop over all known methods to create a tar archive until one works. 82873143b9aSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 82973143b9aSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 83073143b9aSmrg# Do not fold the above two line into one, because Tru64 sh and 83173143b9aSmrg# Solaris sh will not grok spaces in the rhs of `-'. 83273143b9aSmrgfor _am_tool in $_am_tools 83373143b9aSmrgdo 83473143b9aSmrg case $_am_tool in 83573143b9aSmrg gnutar) 83673143b9aSmrg for _am_tar in tar gnutar gtar; 83773143b9aSmrg do 83873143b9aSmrg AM_RUN_LOG([$_am_tar --version]) && break 83973143b9aSmrg done 84073143b9aSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 84173143b9aSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 84273143b9aSmrg am__untar="$_am_tar -xf -" 84373143b9aSmrg ;; 84473143b9aSmrg plaintar) 84573143b9aSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 84673143b9aSmrg # ustar tarball either. 84773143b9aSmrg (tar --version) >/dev/null 2>&1 && continue 84873143b9aSmrg am__tar='tar chf - "$$tardir"' 84973143b9aSmrg am__tar_='tar chf - "$tardir"' 85073143b9aSmrg am__untar='tar xf -' 85173143b9aSmrg ;; 85273143b9aSmrg pax) 85373143b9aSmrg am__tar='pax -L -x $1 -w "$$tardir"' 85473143b9aSmrg am__tar_='pax -L -x $1 -w "$tardir"' 85573143b9aSmrg am__untar='pax -r' 85673143b9aSmrg ;; 85773143b9aSmrg cpio) 85873143b9aSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 85973143b9aSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 86073143b9aSmrg am__untar='cpio -i -H $1 -d' 86173143b9aSmrg ;; 86273143b9aSmrg none) 86373143b9aSmrg am__tar=false 86473143b9aSmrg am__tar_=false 86573143b9aSmrg am__untar=false 86673143b9aSmrg ;; 86773143b9aSmrg esac 86873143b9aSmrg 86973143b9aSmrg # If the value was cached, stop now. We just wanted to have am__tar 87073143b9aSmrg # and am__untar set. 87173143b9aSmrg test -n "${am_cv_prog_tar_$1}" && break 87273143b9aSmrg 87373143b9aSmrg # tar/untar a dummy directory, and stop if the command works 87473143b9aSmrg rm -rf conftest.dir 87573143b9aSmrg mkdir conftest.dir 87673143b9aSmrg echo GrepMe > conftest.dir/file 87773143b9aSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 87873143b9aSmrg rm -rf conftest.dir 87973143b9aSmrg if test -s conftest.tar; then 88073143b9aSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 88173143b9aSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 88273143b9aSmrg fi 88373143b9aSmrgdone 88473143b9aSmrgrm -rf conftest.dir 88573143b9aSmrg 88673143b9aSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 88773143b9aSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 88873143b9aSmrgAC_SUBST([am__tar]) 88973143b9aSmrgAC_SUBST([am__untar]) 89073143b9aSmrg]) # _AM_PROG_TAR 89173143b9aSmrg 8928d4c0f7bSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 8938d4c0f7bSmrgdnl 8948d4c0f7bSmrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 8958d4c0f7bSmrgdnl 8968d4c0f7bSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 8978d4c0f7bSmrgdnl copy of this software and associated documentation files (the 8988d4c0f7bSmrgdnl "Software"), to deal in the Software without restriction, including 8998d4c0f7bSmrgdnl without limitation the rights to use, copy, modify, merge, publish, 9008d4c0f7bSmrgdnl distribute, and/or sell copies of the Software, and to permit persons 9018d4c0f7bSmrgdnl to whom the Software is furnished to do so, provided that the above 9028d4c0f7bSmrgdnl copyright notice(s) and this permission notice appear in all copies of 9038d4c0f7bSmrgdnl the Software and that both the above copyright notice(s) and this 9048d4c0f7bSmrgdnl permission notice appear in supporting documentation. 9058d4c0f7bSmrgdnl 9068d4c0f7bSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 9078d4c0f7bSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 9088d4c0f7bSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 9098d4c0f7bSmrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 9108d4c0f7bSmrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 9118d4c0f7bSmrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 9128d4c0f7bSmrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 9138d4c0f7bSmrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 9148d4c0f7bSmrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 9158d4c0f7bSmrgdnl 9168d4c0f7bSmrgdnl Except as contained in this notice, the name of a copyright holder 9178d4c0f7bSmrgdnl shall not be used in advertising or otherwise to promote the sale, use 9188d4c0f7bSmrgdnl or other dealings in this Software without prior written authorization 9198d4c0f7bSmrgdnl of the copyright holder. 9208d4c0f7bSmrg 9218d4c0f7bSmrg# XORG_MACROS_VERSION(required-version) 9228d4c0f7bSmrg# ------------------------------------- 9238d4c0f7bSmrg# Minimum version: 1.1.0 9248d4c0f7bSmrg# 9258d4c0f7bSmrg# If you're using a macro added in Version 1.1 or newer, include this in 9268d4c0f7bSmrg# your configure.ac with the minimum required version, such as: 9278d4c0f7bSmrg# XORG_MACROS_VERSION(1.1) 9288d4c0f7bSmrg# 9298d4c0f7bSmrg# To force at least a version with this macro defined, also add: 9308d4c0f7bSmrg# m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 9318d4c0f7bSmrg# 9328d4c0f7bSmrg# 9338d4c0f7bSmrg# See the "minimum version" comment for each macro you use to see what 9348d4c0f7bSmrg# version you require. 9358d4c0f7bSmrgAC_DEFUN([XORG_MACROS_VERSION],[ 9368d4c0f7bSmrg [XORG_MACROS_needed_version=$1 9378d4c0f7bSmrg XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 9388d4c0f7bSmrg XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 9398d4c0f7bSmrg AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 9408d4c0f7bSmrg [XORG_MACROS_version=1.2.1 9418d4c0f7bSmrg XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 9428d4c0f7bSmrg XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 9438d4c0f7bSmrg if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 9448d4c0f7bSmrg AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 9458d4c0f7bSmrg fi 9468d4c0f7bSmrg if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 9478d4c0f7bSmrg 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]) 9488d4c0f7bSmrg fi 9498d4c0f7bSmrg AC_MSG_RESULT([yes, $XORG_MACROS_version]) 9508d4c0f7bSmrg]) # XORG_MACROS_VERSION 9518d4c0f7bSmrg 9528d4c0f7bSmrg# XORG_PROG_RAWCPP() 9538d4c0f7bSmrg# ------------------ 9548d4c0f7bSmrg# Minimum version: 1.0.0 9558d4c0f7bSmrg# 9568d4c0f7bSmrg# Find cpp program and necessary flags for use in pre-processing text files 9578d4c0f7bSmrg# such as man pages and config files 9588d4c0f7bSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 9598d4c0f7bSmrgAC_REQUIRE([AC_PROG_CPP]) 9608d4c0f7bSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 9618d4c0f7bSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 9628d4c0f7bSmrg 9638d4c0f7bSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 9648d4c0f7bSmrg# which is not the best choice for supporting other OS'es, but covers most 9658d4c0f7bSmrg# of the ones we need for now. 9668d4c0f7bSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 9678d4c0f7bSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 9688d4c0f7bSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 9698d4c0f7bSmrg AC_MSG_RESULT([no]) 9708d4c0f7bSmrgelse 9718d4c0f7bSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 9728d4c0f7bSmrg RAWCPPFLAGS=-undef 9738d4c0f7bSmrg AC_MSG_RESULT([yes]) 9748d4c0f7bSmrg # under Cygwin unix is still defined even with -undef 9758d4c0f7bSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 9768d4c0f7bSmrg RAWCPPFLAGS="-undef -ansi" 9778d4c0f7bSmrg AC_MSG_RESULT([yes, with -ansi]) 9788d4c0f7bSmrg else 9798d4c0f7bSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 9808d4c0f7bSmrg fi 9818d4c0f7bSmrgfi 9828d4c0f7bSmrgrm -f conftest.$ac_ext 9838d4c0f7bSmrg 9848d4c0f7bSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 9858d4c0f7bSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 9868d4c0f7bSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 9878d4c0f7bSmrg AC_MSG_RESULT([no]) 9888d4c0f7bSmrgelse 9898d4c0f7bSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 9908d4c0f7bSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 9918d4c0f7bSmrg AC_MSG_RESULT([yes]) 9928d4c0f7bSmrg else 9938d4c0f7bSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 9948d4c0f7bSmrg fi 9958d4c0f7bSmrgfi 9968d4c0f7bSmrgrm -f conftest.$ac_ext 9978d4c0f7bSmrgAC_SUBST(RAWCPPFLAGS) 9988d4c0f7bSmrg]) # XORG_PROG_RAWCPP 9998d4c0f7bSmrg 10008d4c0f7bSmrg# XORG_MANPAGE_SECTIONS() 10018d4c0f7bSmrg# ----------------------- 10028d4c0f7bSmrg# Minimum version: 1.0.0 10038d4c0f7bSmrg# 10048d4c0f7bSmrg# Determine which sections man pages go in for the different man page types 10058d4c0f7bSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 10068d4c0f7bSmrg# Not sure if there's any better way than just hardcoding by OS name. 10078d4c0f7bSmrg# Override default settings by setting environment variables 10088d4c0f7bSmrg 10098d4c0f7bSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 10108d4c0f7bSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 10118d4c0f7bSmrg 10128d4c0f7bSmrgif test x$APP_MAN_SUFFIX = x ; then 10138d4c0f7bSmrg APP_MAN_SUFFIX=1 10148d4c0f7bSmrgfi 10158d4c0f7bSmrgif test x$APP_MAN_DIR = x ; then 10168d4c0f7bSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10178d4c0f7bSmrgfi 10188d4c0f7bSmrg 10198d4c0f7bSmrgif test x$LIB_MAN_SUFFIX = x ; then 10208d4c0f7bSmrg LIB_MAN_SUFFIX=3 10218d4c0f7bSmrgfi 10228d4c0f7bSmrgif test x$LIB_MAN_DIR = x ; then 10238d4c0f7bSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10248d4c0f7bSmrgfi 10258d4c0f7bSmrg 10268d4c0f7bSmrgif test x$FILE_MAN_SUFFIX = x ; then 10278d4c0f7bSmrg case $host_os in 10288d4c0f7bSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 10298d4c0f7bSmrg *) FILE_MAN_SUFFIX=5 ;; 10308d4c0f7bSmrg esac 10318d4c0f7bSmrgfi 10328d4c0f7bSmrgif test x$FILE_MAN_DIR = x ; then 10338d4c0f7bSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10348d4c0f7bSmrgfi 10358d4c0f7bSmrg 10368d4c0f7bSmrgif test x$MISC_MAN_SUFFIX = x ; then 10378d4c0f7bSmrg case $host_os in 10388d4c0f7bSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 10398d4c0f7bSmrg *) MISC_MAN_SUFFIX=7 ;; 10408d4c0f7bSmrg esac 10418d4c0f7bSmrgfi 10428d4c0f7bSmrgif test x$MISC_MAN_DIR = x ; then 10438d4c0f7bSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10448d4c0f7bSmrgfi 10458d4c0f7bSmrg 10468d4c0f7bSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 10478d4c0f7bSmrg case $host_os in 10488d4c0f7bSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 10498d4c0f7bSmrg *) DRIVER_MAN_SUFFIX=4 ;; 10508d4c0f7bSmrg esac 10518d4c0f7bSmrgfi 10528d4c0f7bSmrgif test x$DRIVER_MAN_DIR = x ; then 10538d4c0f7bSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10548d4c0f7bSmrgfi 10558d4c0f7bSmrg 10568d4c0f7bSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 10578d4c0f7bSmrg case $host_os in 10588d4c0f7bSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 10598d4c0f7bSmrg *) ADMIN_MAN_SUFFIX=8 ;; 10608d4c0f7bSmrg esac 10618d4c0f7bSmrgfi 10628d4c0f7bSmrgif test x$ADMIN_MAN_DIR = x ; then 10638d4c0f7bSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10648d4c0f7bSmrgfi 10658d4c0f7bSmrg 10668d4c0f7bSmrg 10678d4c0f7bSmrgAC_SUBST([APP_MAN_SUFFIX]) 10688d4c0f7bSmrgAC_SUBST([LIB_MAN_SUFFIX]) 10698d4c0f7bSmrgAC_SUBST([FILE_MAN_SUFFIX]) 10708d4c0f7bSmrgAC_SUBST([MISC_MAN_SUFFIX]) 10718d4c0f7bSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 10728d4c0f7bSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 10738d4c0f7bSmrgAC_SUBST([APP_MAN_DIR]) 10748d4c0f7bSmrgAC_SUBST([LIB_MAN_DIR]) 10758d4c0f7bSmrgAC_SUBST([FILE_MAN_DIR]) 10768d4c0f7bSmrgAC_SUBST([MISC_MAN_DIR]) 10778d4c0f7bSmrgAC_SUBST([DRIVER_MAN_DIR]) 10788d4c0f7bSmrgAC_SUBST([ADMIN_MAN_DIR]) 10798d4c0f7bSmrg]) # XORG_MANPAGE_SECTIONS 10808d4c0f7bSmrg 10818d4c0f7bSmrg# XORG_CHECK_LINUXDOC 10828d4c0f7bSmrg# ------------------- 10838d4c0f7bSmrg# Minimum version: 1.0.0 10848d4c0f7bSmrg# 10858d4c0f7bSmrg# Defines the variable MAKE_TEXT if the necessary tools and 10868d4c0f7bSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 10878d4c0f7bSmrg# Whether or not the necessary tools and files are found can be checked 10888d4c0f7bSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 10898d4c0f7bSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 10908d4c0f7bSmrgif test x$XORG_SGML_PATH = x ; then 10918d4c0f7bSmrg XORG_SGML_PATH=$prefix/share/sgml 10928d4c0f7bSmrgfi 10938d4c0f7bSmrgHAVE_DEFS_ENT= 10948d4c0f7bSmrg 10958d4c0f7bSmrgif test x"$cross_compiling" = x"yes" ; then 10968d4c0f7bSmrg HAVE_DEFS_ENT=no 10978d4c0f7bSmrgelse 10988d4c0f7bSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 10998d4c0f7bSmrgfi 11008d4c0f7bSmrg 11018d4c0f7bSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 11028d4c0f7bSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 11038d4c0f7bSmrg 11048d4c0f7bSmrgAC_MSG_CHECKING([Whether to build documentation]) 11058d4c0f7bSmrg 11068d4c0f7bSmrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 11078d4c0f7bSmrg BUILDDOC=yes 11088d4c0f7bSmrgelse 11098d4c0f7bSmrg BUILDDOC=no 11108d4c0f7bSmrgfi 11118d4c0f7bSmrg 11128d4c0f7bSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 11138d4c0f7bSmrg 11148d4c0f7bSmrgAC_MSG_RESULT([$BUILDDOC]) 11158d4c0f7bSmrg 11168d4c0f7bSmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 11178d4c0f7bSmrg 11188d4c0f7bSmrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 11198d4c0f7bSmrg BUILDPDFDOC=yes 11208d4c0f7bSmrgelse 11218d4c0f7bSmrg BUILDPDFDOC=no 11228d4c0f7bSmrgfi 11238d4c0f7bSmrg 11248d4c0f7bSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 11258d4c0f7bSmrg 11268d4c0f7bSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 11278d4c0f7bSmrg 11288d4c0f7bSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 11298d4c0f7bSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 11308d4c0f7bSmrgMAKE_PDF="$PS2PDF" 11318d4c0f7bSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 11328d4c0f7bSmrg 11338d4c0f7bSmrgAC_SUBST(MAKE_TEXT) 11348d4c0f7bSmrgAC_SUBST(MAKE_PS) 11358d4c0f7bSmrgAC_SUBST(MAKE_PDF) 11368d4c0f7bSmrgAC_SUBST(MAKE_HTML) 11378d4c0f7bSmrg]) # XORG_CHECK_LINUXDOC 11388d4c0f7bSmrg 11398d4c0f7bSmrg# XORG_CHECK_DOCBOOK 11408d4c0f7bSmrg# ------------------- 11418d4c0f7bSmrg# Minimum version: 1.0.0 11428d4c0f7bSmrg# 11438d4c0f7bSmrg# Checks for the ability to build output formats from SGML DocBook source. 11448d4c0f7bSmrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 11458d4c0f7bSmrg# indicates whether the necessary tools and files are found and, if set, 11468d4c0f7bSmrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 11478d4c0f7bSmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 11488d4c0f7bSmrgif test x$XORG_SGML_PATH = x ; then 11498d4c0f7bSmrg XORG_SGML_PATH=$prefix/share/sgml 11508d4c0f7bSmrgfi 11518d4c0f7bSmrgHAVE_DEFS_ENT= 11528d4c0f7bSmrgBUILDTXTDOC=no 11538d4c0f7bSmrgBUILDPDFDOC=no 11548d4c0f7bSmrgBUILDPSDOC=no 11558d4c0f7bSmrgBUILDHTMLDOC=no 11568d4c0f7bSmrg 11578d4c0f7bSmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 11588d4c0f7bSmrg 11598d4c0f7bSmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 11608d4c0f7bSmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 11618d4c0f7bSmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 11628d4c0f7bSmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 11638d4c0f7bSmrg 11648d4c0f7bSmrgAC_MSG_CHECKING([Whether to build text documentation]) 11658d4c0f7bSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 11668d4c0f7bSmrg test x$BUILD_TXTDOC != xno; then 11678d4c0f7bSmrg BUILDTXTDOC=yes 11688d4c0f7bSmrgfi 11698d4c0f7bSmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 11708d4c0f7bSmrgAC_MSG_RESULT([$BUILDTXTDOC]) 11718d4c0f7bSmrg 11728d4c0f7bSmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 11738d4c0f7bSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 11748d4c0f7bSmrg test x$BUILD_PDFDOC != xno; then 11758d4c0f7bSmrg BUILDPDFDOC=yes 11768d4c0f7bSmrgfi 11778d4c0f7bSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 11788d4c0f7bSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 11798d4c0f7bSmrg 11808d4c0f7bSmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 11818d4c0f7bSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 11828d4c0f7bSmrg test x$BUILD_PSDOC != xno; then 11838d4c0f7bSmrg BUILDPSDOC=yes 11848d4c0f7bSmrgfi 11858d4c0f7bSmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 11868d4c0f7bSmrgAC_MSG_RESULT([$BUILDPSDOC]) 11878d4c0f7bSmrg 11888d4c0f7bSmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 11898d4c0f7bSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 11908d4c0f7bSmrg test x$BUILD_HTMLDOC != xno; then 11918d4c0f7bSmrg BUILDHTMLDOC=yes 11928d4c0f7bSmrgfi 11938d4c0f7bSmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 11948d4c0f7bSmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 11958d4c0f7bSmrg 11968d4c0f7bSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 11978d4c0f7bSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 11988d4c0f7bSmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 11998d4c0f7bSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 12008d4c0f7bSmrg 12018d4c0f7bSmrgAC_SUBST(MAKE_TEXT) 12028d4c0f7bSmrgAC_SUBST(MAKE_PS) 12038d4c0f7bSmrgAC_SUBST(MAKE_PDF) 12048d4c0f7bSmrgAC_SUBST(MAKE_HTML) 12058d4c0f7bSmrg]) # XORG_CHECK_DOCBOOK 12068d4c0f7bSmrg 12078d4c0f7bSmrg# XORG_CHECK_MALLOC_ZERO 12088d4c0f7bSmrg# ---------------------- 12098d4c0f7bSmrg# Minimum version: 1.0.0 12108d4c0f7bSmrg# 12118d4c0f7bSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 12128d4c0f7bSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 12138d4c0f7bSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 12148d4c0f7bSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 12158d4c0f7bSmrgAC_ARG_ENABLE(malloc0returnsnull, 12168d4c0f7bSmrg AC_HELP_STRING([--enable-malloc0returnsnull], 12178d4c0f7bSmrg [malloc(0) returns NULL (default: auto)]), 12188d4c0f7bSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 12198d4c0f7bSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 12208d4c0f7bSmrg 12218d4c0f7bSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 12228d4c0f7bSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 12238d4c0f7bSmrg AC_RUN_IFELSE([ 12248d4c0f7bSmrgchar *malloc(); 12258d4c0f7bSmrgchar *realloc(); 12268d4c0f7bSmrgchar *calloc(); 12278d4c0f7bSmrgmain() { 12288d4c0f7bSmrg char *m0, *r0, *c0, *p; 12298d4c0f7bSmrg m0 = malloc(0); 12308d4c0f7bSmrg p = malloc(10); 12318d4c0f7bSmrg r0 = realloc(p,0); 12328d4c0f7bSmrg c0 = calloc(0); 12338d4c0f7bSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 12348d4c0f7bSmrg}], 12358d4c0f7bSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 12368d4c0f7bSmrg [MALLOC_ZERO_RETURNS_NULL=no]) 12378d4c0f7bSmrgfi 12388d4c0f7bSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 12398d4c0f7bSmrg 12408d4c0f7bSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 12418d4c0f7bSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 12428d4c0f7bSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 12438d4c0f7bSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 12448d4c0f7bSmrgelse 12458d4c0f7bSmrg MALLOC_ZERO_CFLAGS="" 12468d4c0f7bSmrg XMALLOC_ZERO_CFLAGS="" 12478d4c0f7bSmrg XTMALLOC_ZERO_CFLAGS="" 12488d4c0f7bSmrgfi 12498d4c0f7bSmrg 12508d4c0f7bSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 12518d4c0f7bSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 12528d4c0f7bSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 12538d4c0f7bSmrg]) # XORG_CHECK_MALLOC_ZERO 12548d4c0f7bSmrg 12558d4c0f7bSmrg# XORG_WITH_LINT() 12568d4c0f7bSmrg# ---------------- 12578d4c0f7bSmrg# Minimum version: 1.1.0 12588d4c0f7bSmrg# 12598d4c0f7bSmrg# Sets up flags for source checkers such as lint and sparse if --with-lint 12608d4c0f7bSmrg# is specified. (Use --with-lint=sparse for sparse.) 12618d4c0f7bSmrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 12628d4c0f7bSmrg# Sets $LINT_FLAGS to flags to pass to source checker 12638d4c0f7bSmrg# Sets LINT automake conditional if enabled (default: disabled) 12648d4c0f7bSmrg# 12658d4c0f7bSmrgAC_DEFUN([XORG_WITH_LINT],[ 12668d4c0f7bSmrg 12678d4c0f7bSmrg# Allow checking code with lint, sparse, etc. 12688d4c0f7bSmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 12698d4c0f7bSmrg [Use a lint-style source code checker (default: disabled)])], 12708d4c0f7bSmrg [use_lint=$withval], [use_lint=no]) 12718d4c0f7bSmrgif test "x$use_lint" = "xyes" ; then 12728d4c0f7bSmrg LINT="lint" 12738d4c0f7bSmrgelse 12748d4c0f7bSmrg LINT="$use_lint" 12758d4c0f7bSmrgfi 12768d4c0f7bSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 12778d4c0f7bSmrg case $LINT in 12788d4c0f7bSmrg lint|*/lint) 12798d4c0f7bSmrg case $host_os in 12808d4c0f7bSmrg solaris*) 12818d4c0f7bSmrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12828d4c0f7bSmrg ;; 12838d4c0f7bSmrg esac 12848d4c0f7bSmrg ;; 12858d4c0f7bSmrg esac 12868d4c0f7bSmrgfi 12878d4c0f7bSmrg 12888d4c0f7bSmrgAC_SUBST(LINT) 12898d4c0f7bSmrgAC_SUBST(LINT_FLAGS) 12908d4c0f7bSmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 12918d4c0f7bSmrg 12928d4c0f7bSmrg]) # XORG_WITH_LINT 12938d4c0f7bSmrg 12948d4c0f7bSmrg# XORG_LINT_LIBRARY(LIBNAME) 12958d4c0f7bSmrg# -------------------------- 12968d4c0f7bSmrg# Minimum version: 1.1.0 12978d4c0f7bSmrg# 12988d4c0f7bSmrg# Sets up flags for building lint libraries for checking programs that call 12998d4c0f7bSmrg# functions in the library. 13008d4c0f7bSmrg# Disabled by default, enable with --enable-lint-library 13018d4c0f7bSmrg# Sets: 13028d4c0f7bSmrg# @LINTLIB@ - name of lint library file to make 13038d4c0f7bSmrg# MAKE_LINT_LIB - automake conditional 13048d4c0f7bSmrg# 13058d4c0f7bSmrg 13068d4c0f7bSmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 13078d4c0f7bSmrgAC_REQUIRE([XORG_WITH_LINT]) 13088d4c0f7bSmrg# Build lint "library" for more indepth checks of programs calling this library 13098d4c0f7bSmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 13108d4c0f7bSmrg [Create lint library (default: disabled)])], 13118d4c0f7bSmrg [make_lint_lib=$enableval], [make_lint_lib=no]) 13128d4c0f7bSmrgif test "x$make_lint_lib" != "xno" ; then 13138d4c0f7bSmrg if test "x$LINT" = "xno" ; then 13148d4c0f7bSmrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 13158d4c0f7bSmrg fi 13168d4c0f7bSmrg if test "x$make_lint_lib" = "xyes" ; then 13178d4c0f7bSmrg LINTLIB=llib-l$1.ln 13188d4c0f7bSmrg else 13198d4c0f7bSmrg LINTLIB=$make_lint_lib 13208d4c0f7bSmrg fi 13218d4c0f7bSmrgfi 13228d4c0f7bSmrgAC_SUBST(LINTLIB) 13238d4c0f7bSmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 13248d4c0f7bSmrg 13258d4c0f7bSmrg]) # XORG_LINT_LIBRARY 13268d4c0f7bSmrg 13278d4c0f7bSmrg# XORG_CWARNFLAGS 13288d4c0f7bSmrg# --------------- 13298d4c0f7bSmrg# Minimum version: 1.2.0 13308d4c0f7bSmrg# 13318d4c0f7bSmrg# Defines CWARNFLAGS to enable C compiler warnings. 13328d4c0f7bSmrg# 13338d4c0f7bSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 13348d4c0f7bSmrgAC_REQUIRE([AC_PROG_CC]) 13358d4c0f7bSmrgif test "x$GCC" = xyes ; then 13368d4c0f7bSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 13378d4c0f7bSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 13388d4c0f7bSmrg-Wbad-function-cast" 13398d4c0f7bSmrg case `gcc -dumpversion` in 13408d4c0f7bSmrg 3.4.* | 4.*) 13418d4c0f7bSmrg CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement" 13428d4c0f7bSmrg ;; 13438d4c0f7bSmrg esac 13448d4c0f7bSmrgelse 13458d4c0f7bSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 13468d4c0f7bSmrg if test "x$SUNCC" = "xyes"; then 13478d4c0f7bSmrg CWARNFLAGS="-v" 13488d4c0f7bSmrg fi 13498d4c0f7bSmrgfi 13508d4c0f7bSmrgAC_SUBST(CWARNFLAGS) 13518d4c0f7bSmrg]) # XORG_CWARNFLAGS 13528d4c0f7bSmrgdnl Copyright 2005 Red Hat, Inc 13538d4c0f7bSmrgdnl 13548d4c0f7bSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 13558d4c0f7bSmrgdnl documentation for any purpose is hereby granted without fee, provided that 13568d4c0f7bSmrgdnl the above copyright notice appear in all copies and that both that 13578d4c0f7bSmrgdnl copyright notice and this permission notice appear in supporting 13588d4c0f7bSmrgdnl documentation. 13598d4c0f7bSmrgdnl 13608d4c0f7bSmrgdnl The above copyright notice and this permission notice shall be included 13618d4c0f7bSmrgdnl in all copies or substantial portions of the Software. 13628d4c0f7bSmrgdnl 13638d4c0f7bSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 13648d4c0f7bSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 13658d4c0f7bSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 13668d4c0f7bSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 13678d4c0f7bSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 13688d4c0f7bSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 13698d4c0f7bSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 13708d4c0f7bSmrgdnl 13718d4c0f7bSmrgdnl Except as contained in this notice, the name of the copyright holders shall 13728d4c0f7bSmrgdnl not be used in advertising or otherwise to promote the sale, use or 13738d4c0f7bSmrgdnl other dealings in this Software without prior written authorization 13748d4c0f7bSmrgdnl from the copyright holders. 13758d4c0f7bSmrgdnl 13768d4c0f7bSmrg 13778d4c0f7bSmrg# XORG_RELEASE_VERSION 13788d4c0f7bSmrg# -------------------- 13798d4c0f7bSmrg# Adds --with/without-release-string and changes the PACKAGE and 13808d4c0f7bSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 13818d4c0f7bSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 13828d4c0f7bSmrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 13838d4c0f7bSmrg 13848d4c0f7bSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 13858d4c0f7bSmrg AC_ARG_WITH(release-version, 13868d4c0f7bSmrg AC_HELP_STRING([--with-release-version=STRING], 13878d4c0f7bSmrg [Use release version string in package name]), 13888d4c0f7bSmrg [RELEASE_VERSION="$withval"], 13898d4c0f7bSmrg [RELEASE_VERSION=""]) 13908d4c0f7bSmrg if test "x$RELEASE_VERSION" != "x"; then 13918d4c0f7bSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 13928d4c0f7bSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 13938d4c0f7bSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 13948d4c0f7bSmrg fi 13958d4c0f7bSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 13968d4c0f7bSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 13978d4c0f7bSmrg [Major version of this package]) 13988d4c0f7bSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 13998d4c0f7bSmrg if test "x$PVM" = "x"; then 14008d4c0f7bSmrg PVM="0" 14018d4c0f7bSmrg fi 14028d4c0f7bSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 14038d4c0f7bSmrg [$PVM], 14048d4c0f7bSmrg [Minor version of this package]) 14058d4c0f7bSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 14068d4c0f7bSmrg if test "x$PVP" = "x"; then 14078d4c0f7bSmrg PVP="0" 14088d4c0f7bSmrg fi 14098d4c0f7bSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 14108d4c0f7bSmrg [$PVP], 14118d4c0f7bSmrg [Patch version of this package]) 14128d4c0f7bSmrg]) 14138d4c0f7bSmrg 14148d4c0f7bSmrg# XORG_CHANGELOG() 14158d4c0f7bSmrg# ---------------- 14168d4c0f7bSmrg# Minimum version: 1.2.0 14178d4c0f7bSmrg# 14188d4c0f7bSmrg# Defines the variable CHANGELOG_CMD as the command to generate 14198d4c0f7bSmrg# ChangeLog from git. 14208d4c0f7bSmrg# 14218d4c0f7bSmrg# Arrange that distcleancheck ignores ChangeLog left over by distclean. 14228d4c0f7bSmrg# 14238d4c0f7bSmrgAC_DEFUN([XORG_CHANGELOG], [ 14248d4c0f7bSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 14258d4c0f7bSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 14268d4c0f7bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 14278d4c0f7bSmrgAC_SUBST([CHANGELOG_CMD]) 14288d4c0f7bSmrgAC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print']) 14298d4c0f7bSmrg]) # XORG_CHANGELOG 14308d4c0f7bSmrg 1431