<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12283">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add m4 missing files to fix build<br><br>Same files are available in other osmocom projects, otherwise configure<br>fails with "Please install autoconf-archive; re-run 'autoreconf -fi' for<br>it to take effect.".<br><br>Change-Id: Iabe3207fff8f076a3f4ddc81720bb7fdc671a46c<br>---<br>M Makefile.am<br>A m4/README<br>A m4/ax_check_compile_flag.m4<br>3 files changed, 79 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.am b/Makefile.am</span><br><span>index 5eb1cfb..cdf67bf 100644</span><br><span>--- a/Makefile.am</span><br><span>+++ b/Makefile.am</span><br><span>@@ -1,5 +1,7 @@</span><br><span> SUBDIRS = doc</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ACLOCAL_AMFLAGS = -I m4</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> AM_CPPFLAGS = \</span><br><span>     $(all_includes) \</span><br><span>    -I$(top_srcdir) \</span><br><span>diff --git a/m4/README b/m4/README</span><br><span>new file mode 100644</span><br><span>index 0000000..92eb30b</span><br><span>--- /dev/null</span><br><span>+++ b/m4/README</span><br><span>@@ -0,0 +1,3 @@</span><br><span style="color: hsl(120, 100%, 40%);">+We want to avoid creating too many external build-time dependencies</span><br><span style="color: hsl(120, 100%, 40%);">+like this one to autoconf-archive.  This directory provides a local</span><br><span style="color: hsl(120, 100%, 40%);">+copy of required m4 rules.</span><br><span>diff --git a/m4/ax_check_compile_flag.m4 b/m4/ax_check_compile_flag.m4</span><br><span>new file mode 100644</span><br><span>index 0000000..ca36397</span><br><span>--- /dev/null</span><br><span>+++ b/m4/ax_check_compile_flag.m4</span><br><span>@@ -0,0 +1,74 @@</span><br><span style="color: hsl(120, 100%, 40%);">+# ===========================================================================</span><br><span style="color: hsl(120, 100%, 40%);">+#   http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html</span><br><span style="color: hsl(120, 100%, 40%);">+# ===========================================================================</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# SYNOPSIS</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# DESCRIPTION</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   Check whether the given FLAG works with the current language's compiler</span><br><span style="color: hsl(120, 100%, 40%);">+#   or gives an error.  (Warnings, however, are ignored)</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on</span><br><span style="color: hsl(120, 100%, 40%);">+#   success/failure.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   If EXTRA-FLAGS is defined, it is added to the current language's default</span><br><span style="color: hsl(120, 100%, 40%);">+#   flags (e.g. CFLAGS) when the check is done.  The check is thus made with</span><br><span style="color: hsl(120, 100%, 40%);">+#   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to</span><br><span style="color: hsl(120, 100%, 40%);">+#   force the compiler to issue an error when a bad flag is given.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   INPUT gives an alternative input source to AC_COMPILE_IFELSE.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this</span><br><span style="color: hsl(120, 100%, 40%);">+#   macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# LICENSE</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de></span><br><span style="color: hsl(120, 100%, 40%);">+#   Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com></span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   This program is free software: you can redistribute it and/or modify it</span><br><span style="color: hsl(120, 100%, 40%);">+#   under the terms of the GNU General Public License as published by the</span><br><span style="color: hsl(120, 100%, 40%);">+#   Free Software Foundation, either version 3 of the License, or (at your</span><br><span style="color: hsl(120, 100%, 40%);">+#   option) any later version.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   This program is distributed in the hope that it will be useful, but</span><br><span style="color: hsl(120, 100%, 40%);">+#   WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General</span><br><span style="color: hsl(120, 100%, 40%);">+#   Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   You should have received a copy of the GNU General Public License along</span><br><span style="color: hsl(120, 100%, 40%);">+#   with this program. If not, see <http://www.gnu.org/licenses/>.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   As a special exception, the respective Autoconf Macro's copyright owner</span><br><span style="color: hsl(120, 100%, 40%);">+#   gives unlimited permission to copy, distribute and modify the configure</span><br><span style="color: hsl(120, 100%, 40%);">+#   scripts that are the output of Autoconf when processing the Macro. You</span><br><span style="color: hsl(120, 100%, 40%);">+#   need not follow the terms of the GNU General Public License when using</span><br><span style="color: hsl(120, 100%, 40%);">+#   or distributing such scripts, even though portions of the text of the</span><br><span style="color: hsl(120, 100%, 40%);">+#   Macro appear in them. The GNU General Public License (GPL) does govern</span><br><span style="color: hsl(120, 100%, 40%);">+#   all other use of the material that constitutes the Autoconf Macro.</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+#   This special exception to the GPL applies to versions of the Autoconf</span><br><span style="color: hsl(120, 100%, 40%);">+#   Macro released by the Autoconf Archive. When you make and distribute a</span><br><span style="color: hsl(120, 100%, 40%);">+#   modified version of the Autoconf Macro, you may extend this special</span><br><span style="color: hsl(120, 100%, 40%);">+#   exception to the GPL to apply to your modified version as well.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+#serial 4</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+AC_DEFUN([AX_CHECK_COMPILE_FLAG],</span><br><span style="color: hsl(120, 100%, 40%);">+[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF</span><br><span style="color: hsl(120, 100%, 40%);">+AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl</span><br><span style="color: hsl(120, 100%, 40%);">+AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [</span><br><span style="color: hsl(120, 100%, 40%);">+  ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS</span><br><span style="color: hsl(120, 100%, 40%);">+  _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"</span><br><span style="color: hsl(120, 100%, 40%);">+  AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],</span><br><span style="color: hsl(120, 100%, 40%);">+    [AS_VAR_SET(CACHEVAR,[yes])],</span><br><span style="color: hsl(120, 100%, 40%);">+    [AS_VAR_SET(CACHEVAR,[no])])</span><br><span style="color: hsl(120, 100%, 40%);">+  _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])</span><br><span style="color: hsl(120, 100%, 40%);">+AS_VAR_IF(CACHEVAR,yes,</span><br><span style="color: hsl(120, 100%, 40%);">+  [m4_default([$2], :)],</span><br><span style="color: hsl(120, 100%, 40%);">+  [m4_default([$3], :)])</span><br><span style="color: hsl(120, 100%, 40%);">+AS_VAR_POPDEF([CACHEVAR])dnl</span><br><span style="color: hsl(120, 100%, 40%);">+])dnl AX_CHECK_COMPILE_FLAGS</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12283">change 12283</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12283"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sysmon </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Iabe3207fff8f076a3f4ddc81720bb7fdc671a46c </div>
<div style="display:none"> Gerrit-Change-Number: 12283 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>