| 1 |
14 |
jlechner |
# generated automatically by aclocal 1.9.3 -*- Autoconf -*-
|
| 2 |
|
|
|
| 3 |
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
|
| 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 |
|
|
# AM_AUX_DIR_EXPAND
|
| 15 |
|
|
|
| 16 |
|
|
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
| 17 |
|
|
|
| 18 |
|
|
# This program is free software; you can redistribute it and/or modify
|
| 19 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 20 |
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
| 21 |
|
|
# any later version.
|
| 22 |
|
|
|
| 23 |
|
|
# This program is distributed in the hope that it will be useful,
|
| 24 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 25 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 26 |
|
|
# GNU General Public License for more details.
|
| 27 |
|
|
|
| 28 |
|
|
# You should have received a copy of the GNU General Public License
|
| 29 |
|
|
# along with this program; if not, write to the Free Software
|
| 30 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
| 31 |
|
|
# 02110-1301, USA.
|
| 32 |
|
|
|
| 33 |
|
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
| 34 |
|
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
| 35 |
|
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
| 36 |
|
|
#
|
| 37 |
|
|
# Of course, Automake must honor this variable whenever it calls a
|
| 38 |
|
|
# tool from the auxiliary directory. The problem is that $srcdir (and
|
| 39 |
|
|
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
| 40 |
|
|
# depending on how configure is run. This is pretty annoying, since
|
| 41 |
|
|
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
| 42 |
|
|
# source directory, any form will work fine, but in subdirectories a
|
| 43 |
|
|
# relative path needs to be adjusted first.
|
| 44 |
|
|
#
|
| 45 |
|
|
# $ac_aux_dir/missing
|
| 46 |
|
|
# fails when called from a subdirectory if $ac_aux_dir is relative
|
| 47 |
|
|
# $top_srcdir/$ac_aux_dir/missing
|
| 48 |
|
|
# fails if $ac_aux_dir is absolute,
|
| 49 |
|
|
# fails when called from a subdirectory in a VPATH build with
|
| 50 |
|
|
# a relative $ac_aux_dir
|
| 51 |
|
|
#
|
| 52 |
|
|
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
| 53 |
|
|
# are both prefixed by $srcdir. In an in-source build this is usually
|
| 54 |
|
|
# harmless because $srcdir is `.', but things will broke when you
|
| 55 |
|
|
# start a VPATH build or use an absolute $srcdir.
|
| 56 |
|
|
#
|
| 57 |
|
|
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
| 58 |
|
|
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
| 59 |
|
|
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
| 60 |
|
|
# and then we would define $MISSING as
|
| 61 |
|
|
# MISSING="\${SHELL} $am_aux_dir/missing"
|
| 62 |
|
|
# This will work as long as MISSING is not called from configure, because
|
| 63 |
|
|
# unfortunately $(top_srcdir) has no meaning in configure.
|
| 64 |
|
|
# However there are other variables, like CC, which are often used in
|
| 65 |
|
|
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
| 66 |
|
|
#
|
| 67 |
|
|
# Another solution, used here, is to always expand $ac_aux_dir to an
|
| 68 |
|
|
# absolute PATH. The drawback is that using absolute paths prevent a
|
| 69 |
|
|
# configured tree to be moved without reconfiguration.
|
| 70 |
|
|
|
| 71 |
|
|
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
| 72 |
|
|
[dnl Rely on autoconf to set up CDPATH properly.
|
| 73 |
|
|
AC_PREREQ([2.50])dnl
|
| 74 |
|
|
# expand $ac_aux_dir to an absolute path
|
| 75 |
|
|
am_aux_dir=`cd $ac_aux_dir && pwd`
|
| 76 |
|
|
])
|
| 77 |
|
|
|
| 78 |
|
|
# AM_CONDITIONAL -*- Autoconf -*-
|
| 79 |
|
|
|
| 80 |
|
|
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
|
| 81 |
|
|
|
| 82 |
|
|
# This program is free software; you can redistribute it and/or modify
|
| 83 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 84 |
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
| 85 |
|
|
# any later version.
|
| 86 |
|
|
|
| 87 |
|
|
# This program is distributed in the hope that it will be useful,
|
| 88 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 89 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 90 |
|
|
# GNU General Public License for more details.
|
| 91 |
|
|
|
| 92 |
|
|
# You should have received a copy of the GNU General Public License
|
| 93 |
|
|
# along with this program; if not, write to the Free Software
|
| 94 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
| 95 |
|
|
# 02110-1301, USA.
|
| 96 |
|
|
|
| 97 |
|
|
# serial 6
|
| 98 |
|
|
|
| 99 |
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
| 100 |
|
|
# -------------------------------------
|
| 101 |
|
|
# Define a conditional.
|
| 102 |
|
|
AC_DEFUN([AM_CONDITIONAL],
|
| 103 |
|
|
[AC_PREREQ(2.52)dnl
|
| 104 |
|
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
| 105 |
|
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
| 106 |
|
|
AC_SUBST([$1_TRUE])
|
| 107 |
|
|
AC_SUBST([$1_FALSE])
|
| 108 |
|
|
if $2; then
|
| 109 |
|
|
$1_TRUE=
|
| 110 |
|
|
$1_FALSE='#'
|
| 111 |
|
|
else
|
| 112 |
|
|
$1_TRUE='#'
|
| 113 |
|
|
$1_FALSE=
|
| 114 |
|
|
fi
|
| 115 |
|
|
AC_CONFIG_COMMANDS_PRE(
|
| 116 |
|
|
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
| 117 |
|
|
AC_MSG_ERROR([[conditional "$1" was never defined.
|
| 118 |
|
|
Usually this means the macro was only invoked conditionally.]])
|
| 119 |
|
|
fi])])
|
| 120 |
|
|
|
| 121 |
|
|
# Add --enable-maintainer-mode option to configure.
|
| 122 |
|
|
# From Jim Meyering
|
| 123 |
|
|
|
| 124 |
|
|
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
|
| 125 |
|
|
# Free Software Foundation, Inc.
|
| 126 |
|
|
|
| 127 |
|
|
# This program is free software; you can redistribute it and/or modify
|
| 128 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 129 |
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
| 130 |
|
|
# any later version.
|
| 131 |
|
|
|
| 132 |
|
|
# This program is distributed in the hope that it will be useful,
|
| 133 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 134 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 135 |
|
|
# GNU General Public License for more details.
|
| 136 |
|
|
|
| 137 |
|
|
# You should have received a copy of the GNU General Public License
|
| 138 |
|
|
# along with this program; if not, write to the Free Software
|
| 139 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
| 140 |
|
|
# 02110-1301, USA.
|
| 141 |
|
|
|
| 142 |
|
|
# serial 3
|
| 143 |
|
|
|
| 144 |
|
|
AC_DEFUN([AM_MAINTAINER_MODE],
|
| 145 |
|
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
| 146 |
|
|
dnl maintainer-mode is disabled by default
|
| 147 |
|
|
AC_ARG_ENABLE(maintainer-mode,
|
| 148 |
|
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
| 149 |
|
|
(and sometimes confusing) to the casual installer],
|
| 150 |
|
|
USE_MAINTAINER_MODE=$enableval,
|
| 151 |
|
|
USE_MAINTAINER_MODE=no)
|
| 152 |
|
|
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
| 153 |
|
|
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
| 154 |
|
|
MAINT=$MAINTAINER_MODE_TRUE
|
| 155 |
|
|
AC_SUBST(MAINT)dnl
|
| 156 |
|
|
]
|
| 157 |
|
|
)
|
| 158 |
|
|
|
| 159 |
|
|
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
| 160 |
|
|
|
| 161 |
|
|
# serial 2
|
| 162 |
|
|
|
| 163 |
|
|
# AM_PROG_CC_C_O
|
| 164 |
|
|
# --------------
|
| 165 |
|
|
# Like AC_PROG_CC_C_O, but changed for automake.
|
| 166 |
|
|
|
| 167 |
|
|
# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
| 168 |
|
|
|
| 169 |
|
|
# This program is free software; you can redistribute it and/or modify
|
| 170 |
|
|
# it under the terms of the GNU General Public License as published by
|
| 171 |
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
| 172 |
|
|
# any later version.
|
| 173 |
|
|
|
| 174 |
|
|
# This program is distributed in the hope that it will be useful,
|
| 175 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 176 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 177 |
|
|
# GNU General Public License for more details.
|
| 178 |
|
|
|
| 179 |
|
|
# You should have received a copy of the GNU General Public License
|
| 180 |
|
|
# along with this program; if not, write to the Free Software
|
| 181 |
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
| 182 |
|
|
# 02110-1301, USA.
|
| 183 |
|
|
|
| 184 |
|
|
AC_DEFUN([AM_PROG_CC_C_O],
|
| 185 |
|
|
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
| 186 |
|
|
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
| 187 |
|
|
# FIXME: we rely on the cache variable name because
|
| 188 |
|
|
# there is no other way.
|
| 189 |
|
|
set dummy $CC
|
| 190 |
|
|
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
|
| 191 |
|
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
|
| 192 |
|
|
# Losing compiler, so override with the script.
|
| 193 |
|
|
# FIXME: It is wrong to rewrite CC.
|
| 194 |
|
|
# But if we don't then we get into trouble of one sort or another.
|
| 195 |
|
|
# A longer-term fix would be to have automake use am__CC in this case,
|
| 196 |
|
|
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
| 197 |
|
|
CC="$am_aux_dir/compile $CC"
|
| 198 |
|
|
fi
|
| 199 |
|
|
])
|
| 200 |
|
|
|
| 201 |
|
|
m4_include([acinclude.m4])
|