Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 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 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
| 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, |
| 17 | [m4_warning([this file was generated for autoconf 2.63. |
| 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
| 19 | If you have problems, you may need to regenerate the build system entirely. |
| 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 21 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 22 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
| 23 | # |
| 24 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. |
| 25 | # Written by Scott James Remnant, 2004. |
| 26 | # |
| 27 | # This file is free software; the Free Software Foundation gives |
| 28 | # unlimited permission to copy and/or distribute it, with or without |
| 29 | # modifications, as long as this notice is preserved. |
| 30 | |
| 31 | # serial 5 lt~obsolete.m4 |
| 32 | |
| 33 | # These exist entirely to fool aclocal when bootstrapping libtool. |
| 34 | # |
| 35 | # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) |
| 36 | # which have later been changed to m4_define as they aren't part of the |
| 37 | # exported API, or moved to Autoconf or Automake where they belong. |
| 38 | # |
| 39 | # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN |
| 40 | # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us |
| 41 | # using a macro with the same name in our local m4/libtool.m4 it'll |
| 42 | # pull the old libtool.m4 in (it doesn't see our shiny new m4_define |
| 43 | # and doesn't know about Autoconf macros at all.) |
| 44 | # |
| 45 | # So we provide this file, which has a silly filename so it's always |
| 46 | # included after everything else. This provides aclocal with the |
| 47 | # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything |
| 48 | # because those macros already exist, or will be overwritten later. |
| 49 | # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. |
| 50 | # |
| 51 | # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. |
| 52 | # Yes, that means every name once taken will need to remain here until |
| 53 | # we give up compatibility with versions before 1.7, at which point |
| 54 | # we need to keep only those names which we still refer to. |
| 55 | |
| 56 | # This is to help aclocal find these macros, as it can't see m4_define. |
| 57 | AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) |
| 58 | |
| 59 | m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) |
| 60 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) |
| 61 | m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) |
| 62 | m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) |
| 63 | m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) |
| 64 | m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) |
| 65 | m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) |
| 66 | m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) |
| 67 | m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) |
| 68 | m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) |
| 69 | m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) |
| 70 | m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) |
| 71 | m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) |
| 72 | m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) |
| 73 | m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) |
| 74 | m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) |
| 75 | m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) |
| 76 | m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) |
| 77 | m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) |
| 78 | m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) |
| 79 | m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) |
| 80 | m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) |
| 81 | m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) |
| 82 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) |
| 83 | m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) |
| 84 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) |
| 85 | m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) |
| 86 | m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) |
| 87 | m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) |
| 88 | m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) |
| 89 | m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) |
| 90 | m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) |
| 91 | m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) |
| 92 | m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) |
| 93 | m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) |
| 94 | m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) |
| 95 | m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) |
| 96 | m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) |
| 97 | m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) |
| 98 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
| 99 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
| 100 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
| 101 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
| 102 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
| 103 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
| 104 | m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) |
| 105 | m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) |
| 106 | m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) |
| 107 | m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) |
| 108 | m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) |
| 109 | m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) |
| 110 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
| 111 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
| 112 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |
| 113 | m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) |
| 114 | m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) |
| 115 | m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) |
| 116 | m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) |
| 117 | m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) |
| 118 | m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) |
| 119 | m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) |
| 120 | |
| 121 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 122 | # |
| 123 | # This file is free software; the Free Software Foundation |
| 124 | # gives unlimited permission to copy and/or distribute it, |
| 125 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 126 | |
| 127 | # AM_AUTOMAKE_VERSION(VERSION) |
| 128 | # ---------------------------- |
| 129 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
| 130 | # generated from the m4 files accompanying Automake X.Y. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 131 | # (This private macro should not be called outside this file.) |
| 132 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 133 | [am__api_version='1.11' |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 134 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 135 | dnl require some minimum version. Point them to the right macro. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 136 | m4_if([$1], [1.11.1], [], |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 137 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 138 | ]) |
| 139 | |
| 140 | # _AM_AUTOCONF_VERSION(VERSION) |
| 141 | # ----------------------------- |
| 142 | # aclocal traces this macro to find the Autoconf version. |
| 143 | # This is a private macro too. Using m4_define simplifies |
| 144 | # the logic in aclocal, which can simply ignore this definition. |
| 145 | m4_define([_AM_AUTOCONF_VERSION], []) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 146 | |
| 147 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
| 148 | # ------------------------------- |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 149 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 150 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 151 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 152 | [AM_AUTOMAKE_VERSION([1.11.1])dnl |
| 153 | m4_ifndef([AC_AUTOCONF_VERSION], |
| 154 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 155 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 156 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 157 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 158 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 159 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 160 | # |
| 161 | # This file is free software; the Free Software Foundation |
| 162 | # gives unlimited permission to copy and/or distribute it, |
| 163 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 164 | |
| 165 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 166 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 167 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 168 | # |
| 169 | # Of course, Automake must honor this variable whenever it calls a |
| 170 | # tool from the auxiliary directory. The problem is that $srcdir (and |
| 171 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
| 172 | # depending on how configure is run. This is pretty annoying, since |
| 173 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
| 174 | # source directory, any form will work fine, but in subdirectories a |
| 175 | # relative path needs to be adjusted first. |
| 176 | # |
| 177 | # $ac_aux_dir/missing |
| 178 | # fails when called from a subdirectory if $ac_aux_dir is relative |
| 179 | # $top_srcdir/$ac_aux_dir/missing |
| 180 | # fails if $ac_aux_dir is absolute, |
| 181 | # fails when called from a subdirectory in a VPATH build with |
| 182 | # a relative $ac_aux_dir |
| 183 | # |
| 184 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 185 | # are both prefixed by $srcdir. In an in-source build this is usually |
| 186 | # harmless because $srcdir is `.', but things will broke when you |
| 187 | # start a VPATH build or use an absolute $srcdir. |
| 188 | # |
| 189 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 190 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
| 191 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
| 192 | # and then we would define $MISSING as |
| 193 | # MISSING="\${SHELL} $am_aux_dir/missing" |
| 194 | # This will work as long as MISSING is not called from configure, because |
| 195 | # unfortunately $(top_srcdir) has no meaning in configure. |
| 196 | # However there are other variables, like CC, which are often used in |
| 197 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
| 198 | # |
| 199 | # Another solution, used here, is to always expand $ac_aux_dir to an |
| 200 | # absolute PATH. The drawback is that using absolute paths prevent a |
| 201 | # configured tree to be moved without reconfiguration. |
| 202 | |
| 203 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
| 204 | [dnl Rely on autoconf to set up CDPATH properly. |
| 205 | AC_PREREQ([2.50])dnl |
| 206 | # expand $ac_aux_dir to an absolute path |
| 207 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 208 | ]) |
| 209 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 210 | # AM_CONDITIONAL -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 211 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 212 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 213 | # Free Software Foundation, Inc. |
| 214 | # |
| 215 | # This file is free software; the Free Software Foundation |
| 216 | # gives unlimited permission to copy and/or distribute it, |
| 217 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 218 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 219 | # serial 9 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 220 | |
| 221 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 222 | # ------------------------------------- |
| 223 | # Define a conditional. |
| 224 | AC_DEFUN([AM_CONDITIONAL], |
| 225 | [AC_PREREQ(2.52)dnl |
| 226 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 227 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 228 | AC_SUBST([$1_TRUE])dnl |
| 229 | AC_SUBST([$1_FALSE])dnl |
| 230 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| 231 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 232 | m4_define([_AM_COND_VALUE_$1], [$2])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 233 | if $2; then |
| 234 | $1_TRUE= |
| 235 | $1_FALSE='#' |
| 236 | else |
| 237 | $1_TRUE='#' |
| 238 | $1_FALSE= |
| 239 | fi |
| 240 | AC_CONFIG_COMMANDS_PRE( |
| 241 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 242 | AC_MSG_ERROR([[conditional "$1" was never defined. |
| 243 | Usually this means the macro was only invoked conditionally.]]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 244 | fi])]) |
| 245 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 246 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 247 | # Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 248 | # |
| 249 | # This file is free software; the Free Software Foundation |
| 250 | # gives unlimited permission to copy and/or distribute it, |
| 251 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 252 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 253 | # serial 10 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 254 | |
| 255 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 256 | # written in clear, in which case automake, when reading aclocal.m4, |
| 257 | # will think it sees a *use*, and therefore will trigger all it's |
| 258 | # C support machinery. Also note that it means that autoscan, seeing |
| 259 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
| 260 | |
| 261 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 262 | # _AM_DEPENDENCIES(NAME) |
| 263 | # ---------------------- |
| 264 | # See how the compiler implements dependency checking. |
| 265 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 266 | # We try a few techniques and use that to set a single cache variable. |
| 267 | # |
| 268 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 269 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
| 270 | # dependency, and given that the user is not expected to run this macro, |
| 271 | # just rely on AC_PROG_CC. |
| 272 | AC_DEFUN([_AM_DEPENDENCIES], |
| 273 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
| 274 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
| 275 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 276 | AC_REQUIRE([AM_DEP_TRACK])dnl |
| 277 | |
| 278 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 279 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 280 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 281 | [$1], UPC, [depcc="$UPC" am_compiler_list=], |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 282 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 283 | [depcc="$$1" am_compiler_list=]) |
| 284 | |
| 285 | AC_CACHE_CHECK([dependency style of $depcc], |
| 286 | [am_cv_$1_dependencies_compiler_type], |
| 287 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 288 | # We make a subdir and do the tests there. Otherwise we can end up |
| 289 | # making bogus files that we don't know about and never remove. For |
| 290 | # instance it was reported that on HP-UX the gcc test will end up |
| 291 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 292 | # in D'. |
| 293 | mkdir conftest.dir |
| 294 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 295 | # using a relative directory. |
| 296 | cp "$am_depcomp" conftest.dir |
| 297 | cd conftest.dir |
| 298 | # We will build objects and dependencies in a subdirectory because |
| 299 | # it helps to detect inapplicable dependency modes. For instance |
| 300 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 301 | # side effect of compilation, but ICC will put the dependencies in |
| 302 | # the current directory while Tru64 will put them in the object |
| 303 | # directory. |
| 304 | mkdir sub |
| 305 | |
| 306 | am_cv_$1_dependencies_compiler_type=none |
| 307 | if test "$am_compiler_list" = ""; then |
| 308 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
| 309 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 310 | am__universal=false |
| 311 | m4_case([$1], [CC], |
| 312 | [case " $depcc " in #( |
| 313 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 314 | esac], |
| 315 | [CXX], |
| 316 | [case " $depcc " in #( |
| 317 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 318 | esac]) |
| 319 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 320 | for depmode in $am_compiler_list; do |
| 321 | # Setup a source with many dependencies, because some compilers |
| 322 | # like to wrap large dependency lists on column 80 (with \), and |
| 323 | # we should not choose a depcomp mode which is confused by this. |
| 324 | # |
| 325 | # We need to recreate these files for each test, as the compiler may |
| 326 | # overwrite some of them when testing with obscure command lines. |
| 327 | # This happens at least with the AIX C compiler. |
| 328 | : > sub/conftest.c |
| 329 | for i in 1 2 3 4 5 6; do |
| 330 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 331 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 332 | # Solaris 8's {/usr,}/bin/sh. |
| 333 | touch sub/conftst$i.h |
| 334 | done |
| 335 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 336 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 337 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 338 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 339 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 340 | # versions had trouble with output in subdirs |
| 341 | am__obj=sub/conftest.${OBJEXT-o} |
| 342 | am__minus_obj="-o $am__obj" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 343 | case $depmode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 344 | gcc) |
| 345 | # This depmode causes a compiler race in universal mode. |
| 346 | test "$am__universal" = false || continue |
| 347 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 348 | nosideeffect) |
| 349 | # after this tag, mechanisms are not by side-effect, so they'll |
| 350 | # only be used when explicitly requested |
| 351 | if test "x$enable_dependency_tracking" = xyes; then |
| 352 | continue |
| 353 | else |
| 354 | break |
| 355 | fi |
| 356 | ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 357 | msvisualcpp | msvcmsys) |
| 358 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 359 | # not run yet. These depmodes are late enough in the game, and |
| 360 | # so weak that their functioning should not be impacted. |
| 361 | am__obj=conftest.${OBJEXT-o} |
| 362 | am__minus_obj= |
| 363 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 364 | none) break ;; |
| 365 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 366 | if depmode=$depmode \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 367 | source=sub/conftest.c object=$am__obj \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 368 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 369 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 370 | >/dev/null 2>conftest.err && |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 371 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 372 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 373 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 374 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 375 | # icc doesn't choke on unknown options, it will just issue warnings |
| 376 | # or remarks (even with -Werror). So we grep stderr for any message |
| 377 | # that says an option was ignored or not supported. |
| 378 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 379 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 380 | # The diagnosis changed in icc 8.0: |
| 381 | # icc: Command line remark: option '-MP' not supported |
| 382 | if (grep 'ignoring option' conftest.err || |
| 383 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 384 | am_cv_$1_dependencies_compiler_type=$depmode |
| 385 | break |
| 386 | fi |
| 387 | fi |
| 388 | done |
| 389 | |
| 390 | cd .. |
| 391 | rm -rf conftest.dir |
| 392 | else |
| 393 | am_cv_$1_dependencies_compiler_type=none |
| 394 | fi |
| 395 | ]) |
| 396 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
| 397 | AM_CONDITIONAL([am__fastdep$1], [ |
| 398 | test "x$enable_dependency_tracking" != xno \ |
| 399 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
| 400 | ]) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 401 | |
| 402 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 403 | # AM_SET_DEPDIR |
| 404 | # ------------- |
| 405 | # Choose a directory name for dependency files. |
| 406 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 407 | AC_DEFUN([AM_SET_DEPDIR], |
| 408 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 409 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 410 | ]) |
| 411 | |
| 412 | |
| 413 | # AM_DEP_TRACK |
| 414 | # ------------ |
| 415 | AC_DEFUN([AM_DEP_TRACK], |
| 416 | [AC_ARG_ENABLE(dependency-tracking, |
| 417 | [ --disable-dependency-tracking speeds up one-time build |
| 418 | --enable-dependency-tracking do not reject slow dependency extractors]) |
| 419 | if test "x$enable_dependency_tracking" != xno; then |
| 420 | am_depcomp="$ac_aux_dir/depcomp" |
| 421 | AMDEPBACKSLASH='\' |
| 422 | fi |
| 423 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 424 | AC_SUBST([AMDEPBACKSLASH])dnl |
| 425 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 426 | ]) |
| 427 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 428 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 429 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 430 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 431 | # Free Software Foundation, Inc. |
| 432 | # |
| 433 | # This file is free software; the Free Software Foundation |
| 434 | # gives unlimited permission to copy and/or distribute it, |
| 435 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 436 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 437 | #serial 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 438 | |
| 439 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 440 | # ------------------------------ |
| 441 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 442 | [{ |
| 443 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 444 | # are listed without --file. Let's play safe and only enable the eval |
| 445 | # if we detect the quoting. |
| 446 | case $CONFIG_FILES in |
| 447 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 448 | *) set x $CONFIG_FILES ;; |
| 449 | esac |
| 450 | shift |
| 451 | for mf |
| 452 | do |
| 453 | # Strip MF so we end up with the name of the file. |
| 454 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 455 | # Check whether this is an Automake generated Makefile or not. |
| 456 | # We used to match only the files named `Makefile.in', but |
| 457 | # some people rename them; so instead we look at the file content. |
| 458 | # Grep'ing the first line is not enough: some people post-process |
| 459 | # each Makefile.in and add a new line on top of each file to say so. |
| 460 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 461 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 462 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 463 | dirpart=`AS_DIRNAME("$mf")` |
| 464 | else |
| 465 | continue |
| 466 | fi |
| 467 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 468 | # from the Makefile without running `make'. |
| 469 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 470 | test -z "$DEPDIR" && continue |
| 471 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 472 | test -z "am__include" && continue |
| 473 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 474 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 475 | U=`sed -n 's/^U = //p' < "$mf"` |
| 476 | # Find all dependency output files, they are included files with |
| 477 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 478 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 479 | # expansion. |
| 480 | for file in `sed -n " |
| 481 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 482 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 483 | # Make sure the directory exists. |
| 484 | test -f "$dirpart/$file" && continue |
| 485 | fdir=`AS_DIRNAME(["$file"])` |
| 486 | AS_MKDIR_P([$dirpart/$fdir]) |
| 487 | # echo "creating $dirpart/$file" |
| 488 | echo '# dummy' > "$dirpart/$file" |
| 489 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 490 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 491 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 492 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 493 | |
| 494 | |
| 495 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
| 496 | # ----------------------------- |
| 497 | # This macro should only be invoked once -- use via AC_REQUIRE. |
| 498 | # |
| 499 | # This code is only required when automatic dependency tracking |
| 500 | # is enabled. FIXME. This creates each `.P' file that we will |
| 501 | # need in order to bootstrap the dependency handling code. |
| 502 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 503 | [AC_CONFIG_COMMANDS([depfiles], |
| 504 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 505 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| 506 | ]) |
| 507 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 508 | # Do all the work for Automake. -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 509 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 510 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 511 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 512 | # |
| 513 | # This file is free software; the Free Software Foundation |
| 514 | # gives unlimited permission to copy and/or distribute it, |
| 515 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 516 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 517 | # serial 16 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 518 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 519 | # This macro actually does too much. Some checks are only needed if |
| 520 | # your package does certain things. But this isn't really a big deal. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 521 | |
| 522 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| 523 | # AM_INIT_AUTOMAKE([OPTIONS]) |
| 524 | # ----------------------------------------------- |
| 525 | # The call with PACKAGE and VERSION arguments is the old style |
| 526 | # call (pre autoconf-2.50), which is being phased out. PACKAGE |
| 527 | # and VERSION should now be passed to AC_INIT and removed from |
| 528 | # the call to AM_INIT_AUTOMAKE. |
| 529 | # We support both call styles for the transition. After |
| 530 | # the next Automake release, Autoconf can make the AC_INIT |
| 531 | # arguments mandatory, and then we can depend on a new Autoconf |
| 532 | # release and drop the old call support. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 533 | AC_DEFUN([AM_INIT_AUTOMAKE], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 534 | [AC_PREREQ([2.62])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 535 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| 536 | dnl the ones we care about. |
| 537 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 538 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| 539 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 540 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 541 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 542 | # is not polluted with repeated "-I." |
| 543 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
| 544 | # test to see if srcdir already configured |
| 545 | if test -f $srcdir/config.status; then |
| 546 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 547 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 548 | fi |
| 549 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 550 | # test whether we have cygpath |
| 551 | if test -z "$CYGPATH_W"; then |
| 552 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 553 | CYGPATH_W='cygpath -w' |
| 554 | else |
| 555 | CYGPATH_W=echo |
| 556 | fi |
| 557 | fi |
| 558 | AC_SUBST([CYGPATH_W]) |
| 559 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 560 | # Define the identity of the package. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 561 | dnl Distinguish between old-style and new-style calls. |
| 562 | m4_ifval([$2], |
| 563 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 564 | AC_SUBST([PACKAGE], [$1])dnl |
| 565 | AC_SUBST([VERSION], [$2])], |
| 566 | [_AM_SET_OPTIONS([$1])dnl |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 567 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 568 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| 569 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 570 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 571 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 572 | |
| 573 | _AM_IF_OPTION([no-define],, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 574 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 575 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 576 | |
| 577 | # Some tools Automake needs. |
| 578 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 579 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 580 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 581 | AM_MISSING_PROG(AUTOCONF, autoconf) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 582 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 583 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 584 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 585 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 586 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 587 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 588 | # We need awk for the "check" target. The system "awk" is bad on |
| 589 | # some platforms. |
| 590 | AC_REQUIRE([AC_PROG_AWK])dnl |
| 591 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 592 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 593 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 594 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
| 595 | [_AM_PROG_TAR([v7])])]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 596 | _AM_IF_OPTION([no-dependencies],, |
| 597 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 598 | [_AM_DEPENDENCIES(CC)], |
| 599 | [define([AC_PROG_CC], |
| 600 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 601 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 602 | [_AM_DEPENDENCIES(CXX)], |
| 603 | [define([AC_PROG_CXX], |
| 604 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 605 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 606 | [_AM_DEPENDENCIES(OBJC)], |
| 607 | [define([AC_PROG_OBJC], |
| 608 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 609 | ]) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 610 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl |
| 611 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
| 612 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
| 613 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. |
| 614 | AC_CONFIG_COMMANDS_PRE(dnl |
| 615 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
| 616 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 617 | ]) |
| 618 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 619 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| 620 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
| 621 | dnl mangled by Autoconf and run in a shell conditional statement. |
| 622 | m4_define([_AC_COMPILER_EXEEXT], |
| 623 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
| 624 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 625 | |
| 626 | # When config.status generates a header, we must update the stamp-h file. |
| 627 | # This file resides in the same directory as the config header |
| 628 | # that is generated. The stamp files are numbered to have different names. |
| 629 | |
| 630 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
| 631 | # loop where config.status creates the headers, so we can generate |
| 632 | # our stamp files there. |
| 633 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| 634 | [# Compute $1's index in $config_headers. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 635 | _am_arg=$1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 636 | _am_stamp_count=1 |
| 637 | for _am_header in $config_headers :; do |
| 638 | case $_am_header in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 639 | $_am_arg | $_am_arg:* ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 640 | break ;; |
| 641 | * ) |
| 642 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 643 | esac |
| 644 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 645 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 646 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 647 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 648 | # |
| 649 | # This file is free software; the Free Software Foundation |
| 650 | # gives unlimited permission to copy and/or distribute it, |
| 651 | # with or without modifications, as long as this notice is preserved. |
| 652 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 653 | # AM_PROG_INSTALL_SH |
| 654 | # ------------------ |
| 655 | # Define $install_sh. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 656 | AC_DEFUN([AM_PROG_INSTALL_SH], |
| 657 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 658 | if test x"${install_sh}" != xset; then |
| 659 | case $am_aux_dir in |
| 660 | *\ * | *\ *) |
| 661 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 662 | *) |
| 663 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 664 | esac |
| 665 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 666 | AC_SUBST(install_sh)]) |
| 667 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 668 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
| 669 | # |
| 670 | # This file is free software; the Free Software Foundation |
| 671 | # gives unlimited permission to copy and/or distribute it, |
| 672 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 673 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 674 | # serial 2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 675 | |
| 676 | # Check whether the underlying file-system supports filenames |
| 677 | # with a leading dot. For instance MS-DOS doesn't. |
| 678 | AC_DEFUN([AM_SET_LEADING_DOT], |
| 679 | [rm -rf .tst 2>/dev/null |
| 680 | mkdir .tst 2>/dev/null |
| 681 | if test -d .tst; then |
| 682 | am__leading_dot=. |
| 683 | else |
| 684 | am__leading_dot=_ |
| 685 | fi |
| 686 | rmdir .tst 2>/dev/null |
| 687 | AC_SUBST([am__leading_dot])]) |
| 688 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 689 | # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 690 | # Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 691 | # |
| 692 | # This file is free software; the Free Software Foundation |
| 693 | # gives unlimited permission to copy and/or distribute it, |
| 694 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 695 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 696 | # serial 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 697 | |
| 698 | # AM_PROG_LEX |
| 699 | # ----------- |
| 700 | # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a |
| 701 | # "missing" invocation, for better error output. |
| 702 | AC_DEFUN([AM_PROG_LEX], |
| 703 | [AC_PREREQ(2.50)dnl |
| 704 | AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
| 705 | AC_REQUIRE([AC_PROG_LEX])dnl |
| 706 | if test "$LEX" = :; then |
| 707 | LEX=${am_missing_run}flex |
| 708 | fi]) |
| 709 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 710 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 711 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 712 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 713 | # |
| 714 | # This file is free software; the Free Software Foundation |
| 715 | # gives unlimited permission to copy and/or distribute it, |
| 716 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 717 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 718 | # serial 4 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 719 | |
| 720 | # AM_MAKE_INCLUDE() |
| 721 | # ----------------- |
| 722 | # Check to see how make treats includes. |
| 723 | AC_DEFUN([AM_MAKE_INCLUDE], |
| 724 | [am_make=${MAKE-make} |
| 725 | cat > confinc << 'END' |
| 726 | am__doit: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 727 | @echo this is the am__doit target |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 728 | .PHONY: am__doit |
| 729 | END |
| 730 | # If we don't find an include directive, just comment out the code. |
| 731 | AC_MSG_CHECKING([for style of include used by $am_make]) |
| 732 | am__include="#" |
| 733 | am__quote= |
| 734 | _am_result=none |
| 735 | # First try GNU make style include. |
| 736 | echo "include confinc" > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 737 | # Ignore all kinds of additional output from `make'. |
| 738 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 739 | *the\ am__doit\ target*) |
| 740 | am__include=include |
| 741 | am__quote= |
| 742 | _am_result=GNU |
| 743 | ;; |
| 744 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 745 | # Now try BSD make style include. |
| 746 | if test "$am__include" = "#"; then |
| 747 | echo '.include "confinc"' > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 748 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 749 | *the\ am__doit\ target*) |
| 750 | am__include=.include |
| 751 | am__quote="\"" |
| 752 | _am_result=BSD |
| 753 | ;; |
| 754 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 755 | fi |
| 756 | AC_SUBST([am__include]) |
| 757 | AC_SUBST([am__quote]) |
| 758 | AC_MSG_RESULT([$_am_result]) |
| 759 | rm -f confinc confmf |
| 760 | ]) |
| 761 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 762 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 763 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 764 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 765 | # Free Software Foundation, Inc. |
| 766 | # |
| 767 | # This file is free software; the Free Software Foundation |
| 768 | # gives unlimited permission to copy and/or distribute it, |
| 769 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 770 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 771 | # serial 6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 772 | |
| 773 | # AM_MISSING_PROG(NAME, PROGRAM) |
| 774 | # ------------------------------ |
| 775 | AC_DEFUN([AM_MISSING_PROG], |
| 776 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
| 777 | $1=${$1-"${am_missing_run}$2"} |
| 778 | AC_SUBST($1)]) |
| 779 | |
| 780 | |
| 781 | # AM_MISSING_HAS_RUN |
| 782 | # ------------------ |
| 783 | # Define MISSING if not defined so far and test if it supports --run. |
| 784 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
| 785 | AC_DEFUN([AM_MISSING_HAS_RUN], |
| 786 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 787 | AC_REQUIRE_AUX_FILE([missing])dnl |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 788 | if test x"${MISSING+set}" != xset; then |
| 789 | case $am_aux_dir in |
| 790 | *\ * | *\ *) |
| 791 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 792 | *) |
| 793 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 794 | esac |
| 795 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 796 | # Use eval to expand $SHELL |
| 797 | if eval "$MISSING --run true"; then |
| 798 | am_missing_run="$MISSING --run " |
| 799 | else |
| 800 | am_missing_run= |
| 801 | AC_MSG_WARN([`missing' script is too old or missing]) |
| 802 | fi |
| 803 | ]) |
| 804 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 805 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 806 | # |
| 807 | # This file is free software; the Free Software Foundation |
| 808 | # gives unlimited permission to copy and/or distribute it, |
| 809 | # with or without modifications, as long as this notice is preserved. |
| 810 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 811 | # AM_PROG_MKDIR_P |
| 812 | # --------------- |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 813 | # Check for `mkdir -p'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 814 | AC_DEFUN([AM_PROG_MKDIR_P], |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 815 | [AC_PREREQ([2.60])dnl |
| 816 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 817 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| 818 | dnl while keeping a definition of mkdir_p for backward compatibility. |
| 819 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| 820 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| 821 | dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| 822 | dnl adjustment using top_builddir (which is defined more often than |
| 823 | dnl MKDIR_P). |
| 824 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| 825 | case $mkdir_p in |
| 826 | [[\\/$]]* | ?:[[\\/]]*) ;; |
| 827 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 828 | esac |
| 829 | ]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 830 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 831 | # Helper functions for option handling. -*- Autoconf -*- |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 832 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 833 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 834 | # |
| 835 | # This file is free software; the Free Software Foundation |
| 836 | # gives unlimited permission to copy and/or distribute it, |
| 837 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 838 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 839 | # serial 4 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 840 | |
| 841 | # _AM_MANGLE_OPTION(NAME) |
| 842 | # ----------------------- |
| 843 | AC_DEFUN([_AM_MANGLE_OPTION], |
| 844 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 845 | |
| 846 | # _AM_SET_OPTION(NAME) |
| 847 | # ------------------------------ |
| 848 | # Set option NAME. Presently that only means defining a flag for this option. |
| 849 | AC_DEFUN([_AM_SET_OPTION], |
| 850 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 851 | |
| 852 | # _AM_SET_OPTIONS(OPTIONS) |
| 853 | # ---------------------------------- |
| 854 | # OPTIONS is a space-separated list of Automake options. |
| 855 | AC_DEFUN([_AM_SET_OPTIONS], |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 856 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 857 | |
| 858 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 859 | # ------------------------------------------- |
| 860 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 861 | AC_DEFUN([_AM_IF_OPTION], |
| 862 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 863 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 864 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 865 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 866 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 867 | # Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 868 | # |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 869 | # This file is free software; the Free Software Foundation |
| 870 | # gives unlimited permission to copy and/or distribute it, |
| 871 | # with or without modifications, as long as this notice is preserved. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 872 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 873 | # serial 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 874 | |
| 875 | # AM_SANITY_CHECK |
| 876 | # --------------- |
| 877 | AC_DEFUN([AM_SANITY_CHECK], |
| 878 | [AC_MSG_CHECKING([whether build environment is sane]) |
| 879 | # Just in case |
| 880 | sleep 1 |
| 881 | echo timestamp > conftest.file |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 882 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 883 | # name. Accept space and tab only in the latter. |
| 884 | am_lf=' |
| 885 | ' |
| 886 | case `pwd` in |
| 887 | *[[\\\"\#\$\&\'\`$am_lf]]*) |
| 888 | AC_MSG_ERROR([unsafe absolute working directory name]);; |
| 889 | esac |
| 890 | case $srcdir in |
| 891 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
| 892 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
| 893 | esac |
| 894 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 895 | # Do `set' in a subshell so we don't clobber the current shell's |
| 896 | # arguments. Must try -L first in case configure is actually a |
| 897 | # symlink; some systems play weird games with the mod time of symlinks |
| 898 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 899 | # directory). |
| 900 | if ( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 901 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 902 | if test "$[*]" = "X"; then |
| 903 | # -L didn't work. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 904 | set X `ls -t "$srcdir/configure" conftest.file` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 905 | fi |
| 906 | rm -f conftest.file |
| 907 | if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 908 | && test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 909 | |
| 910 | # If neither matched, then we have a broken ls. This can happen |
| 911 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 912 | # broken ls alias from the environment. This has actually |
| 913 | # happened. Such a system could not be considered "sane". |
| 914 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 915 | alias in your environment]) |
| 916 | fi |
| 917 | |
| 918 | test "$[2]" = conftest.file |
| 919 | ) |
| 920 | then |
| 921 | # Ok. |
| 922 | : |
| 923 | else |
| 924 | AC_MSG_ERROR([newly created file is older than distributed files! |
| 925 | Check your system clock]) |
| 926 | fi |
| 927 | AC_MSG_RESULT(yes)]) |
| 928 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 929 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 930 | # |
| 931 | # This file is free software; the Free Software Foundation |
| 932 | # gives unlimited permission to copy and/or distribute it, |
| 933 | # with or without modifications, as long as this notice is preserved. |
| 934 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 935 | # AM_PROG_INSTALL_STRIP |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 936 | # --------------------- |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 937 | # One issue with vendor `install' (even GNU) is that you can't |
| 938 | # specify the program used to strip binaries. This is especially |
| 939 | # annoying in cross-compiling environments, where the build's strip |
| 940 | # is unlikely to handle the host's binaries. |
| 941 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
| 942 | # always use install-sh in `make install-strip', and initialize |
| 943 | # STRIPPROG with the value of the STRIP variable (set by the user). |
| 944 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 945 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 946 | # Installed binaries are usually stripped using `strip' when the user |
| 947 | # run `make install-strip'. However `strip' might not be the right |
| 948 | # tool to use in cross-compilation environments, therefore Automake |
| 949 | # will honor the `STRIP' environment variable to overrule this program. |
| 950 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
| 951 | if test "$cross_compiling" != no; then |
| 952 | AC_CHECK_TOOL([STRIP], [strip], :) |
| 953 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 954 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 955 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 956 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 957 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 958 | # |
| 959 | # This file is free software; the Free Software Foundation |
| 960 | # gives unlimited permission to copy and/or distribute it, |
| 961 | # with or without modifications, as long as this notice is preserved. |
| 962 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 963 | # serial 2 |
| 964 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 965 | # _AM_SUBST_NOTMAKE(VARIABLE) |
| 966 | # --------------------------- |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 967 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 968 | # This macro is traced by Automake. |
| 969 | AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| 970 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 971 | # AM_SUBST_NOTMAKE(VARIABLE) |
| 972 | # --------------------------- |
| 973 | # Public sister of _AM_SUBST_NOTMAKE. |
| 974 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
| 975 | |
Lev Walkin | 5af1a69 | 2006-08-18 01:54:27 +0000 | [diff] [blame] | 976 | # Check how to create a tarball. -*- Autoconf -*- |
| 977 | |
| 978 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
| 979 | # |
| 980 | # This file is free software; the Free Software Foundation |
| 981 | # gives unlimited permission to copy and/or distribute it, |
| 982 | # with or without modifications, as long as this notice is preserved. |
| 983 | |
| 984 | # serial 2 |
| 985 | |
| 986 | # _AM_PROG_TAR(FORMAT) |
| 987 | # -------------------- |
| 988 | # Check how to create a tarball in format FORMAT. |
| 989 | # FORMAT should be one of `v7', `ustar', or `pax'. |
| 990 | # |
| 991 | # Substitute a variable $(am__tar) that is a command |
| 992 | # writing to stdout a FORMAT-tarball containing the directory |
| 993 | # $tardir. |
| 994 | # tardir=directory && $(am__tar) > result.tar |
| 995 | # |
| 996 | # Substitute a variable $(am__untar) that extract such |
| 997 | # a tarball read from stdin. |
| 998 | # $(am__untar) < result.tar |
| 999 | AC_DEFUN([_AM_PROG_TAR], |
| 1000 | [# Always define AMTAR for backward compatibility. |
| 1001 | AM_MISSING_PROG([AMTAR], [tar]) |
| 1002 | m4_if([$1], [v7], |
| 1003 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
| 1004 | [m4_case([$1], [ustar],, [pax],, |
| 1005 | [m4_fatal([Unknown tar format])]) |
| 1006 | AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 1007 | # Loop over all known methods to create a tar archive until one works. |
| 1008 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
| 1009 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 1010 | # Do not fold the above two line into one, because Tru64 sh and |
| 1011 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 1012 | for _am_tool in $_am_tools |
| 1013 | do |
| 1014 | case $_am_tool in |
| 1015 | gnutar) |
| 1016 | for _am_tar in tar gnutar gtar; |
| 1017 | do |
| 1018 | AM_RUN_LOG([$_am_tar --version]) && break |
| 1019 | done |
| 1020 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
| 1021 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
| 1022 | am__untar="$_am_tar -xf -" |
| 1023 | ;; |
| 1024 | plaintar) |
| 1025 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 1026 | # ustar tarball either. |
| 1027 | (tar --version) >/dev/null 2>&1 && continue |
| 1028 | am__tar='tar chf - "$$tardir"' |
| 1029 | am__tar_='tar chf - "$tardir"' |
| 1030 | am__untar='tar xf -' |
| 1031 | ;; |
| 1032 | pax) |
| 1033 | am__tar='pax -L -x $1 -w "$$tardir"' |
| 1034 | am__tar_='pax -L -x $1 -w "$tardir"' |
| 1035 | am__untar='pax -r' |
| 1036 | ;; |
| 1037 | cpio) |
| 1038 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 1039 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 1040 | am__untar='cpio -i -H $1 -d' |
| 1041 | ;; |
| 1042 | none) |
| 1043 | am__tar=false |
| 1044 | am__tar_=false |
| 1045 | am__untar=false |
| 1046 | ;; |
| 1047 | esac |
| 1048 | |
| 1049 | # If the value was cached, stop now. We just wanted to have am__tar |
| 1050 | # and am__untar set. |
| 1051 | test -n "${am_cv_prog_tar_$1}" && break |
| 1052 | |
| 1053 | # tar/untar a dummy directory, and stop if the command works |
| 1054 | rm -rf conftest.dir |
| 1055 | mkdir conftest.dir |
| 1056 | echo GrepMe > conftest.dir/file |
| 1057 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 1058 | rm -rf conftest.dir |
| 1059 | if test -s conftest.tar; then |
| 1060 | AM_RUN_LOG([$am__untar <conftest.tar]) |
| 1061 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 1062 | fi |
| 1063 | done |
| 1064 | rm -rf conftest.dir |
| 1065 | |
| 1066 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
| 1067 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
| 1068 | AC_SUBST([am__tar]) |
| 1069 | AC_SUBST([am__untar]) |
| 1070 | ]) # _AM_PROG_TAR |
| 1071 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1072 | m4_include([m4/libtool.m4]) |
| 1073 | m4_include([m4/ltoptions.m4]) |
| 1074 | m4_include([m4/ltsugar.m4]) |
| 1075 | m4_include([m4/ltversion.m4]) |
| 1076 | m4_include([m4/lt~obsolete.m4]) |