<p>Jaco Kroon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15358">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">AC_HEADER_STDC causes a compile failure with autoconf 2.70<br><br>From https://www.mail-archive.com/bug-autoconf@gnu.org/msg04408.html<br><br>> ... the long-obsolete AC_HEADER_STDC, previously used internally by<br>> AC_INCLUDES_DEFAULT, used AC_EGREP_HEADER.  The AC_HEADER_STDC macro<br>> is now a no-op (and is not used at all within Autoconf anymore), so<br>> that change is likely what made the first use of AC_EGREP_HEADER the<br>> one inside the if condition, causing the observed results.<br><br>The implication is that the test does nothing anyway, and due to it<br>being a no-op from 2.70 onwards, results in the required not being set<br>to yes, resulting in ./configure to fail.<br><br>Change-Id: Ic1ff38d87f791fbf1f2a80512f81bb7110392460<br>Signed-off-by: Jaco Kroon <jaco@uls.co.za><br>---<br>M configure<br>M configure.ac<br>2 files changed, 0 insertions(+), 121 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/58/15358/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 9b96fde..586f612 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -13091,122 +13091,6 @@</span><br><span>   as_fn_error $? "*** Could not find dirent header that defines 'DIR'." "$LINENO" 5</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo_n "checking for ANSI C header files... " >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if ${ac_cv_header_stdc+:} false; then :</span><br><span style="color: hsl(0, 100%, 40%);">-  $as_echo_n "(cached) " >&6</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h.  */</span><br><span style="color: hsl(0, 100%, 40%);">-#include <stdlib.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <stdarg.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <string.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <float.h></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-int</span><br><span style="color: hsl(0, 100%, 40%);">-main ()</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-  ;</span><br><span style="color: hsl(0, 100%, 40%);">-  return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if ac_fn_c_try_compile "$LINENO"; then :</span><br><span style="color: hsl(0, 100%, 40%);">-  ac_cv_header_stdc=yes</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  ac_cv_header_stdc=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test $ac_cv_header_stdc = yes; then</span><br><span style="color: hsl(0, 100%, 40%);">-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.</span><br><span style="color: hsl(0, 100%, 40%);">-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h.  */</span><br><span style="color: hsl(0, 100%, 40%);">-#include <string.h></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |</span><br><span style="color: hsl(0, 100%, 40%);">-  $EGREP "memchr" >/dev/null 2>&1; then :</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  ac_cv_header_stdc=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f conftest*</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test $ac_cv_header_stdc = yes; then</span><br><span style="color: hsl(0, 100%, 40%);">-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.</span><br><span style="color: hsl(0, 100%, 40%);">-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h.  */</span><br><span style="color: hsl(0, 100%, 40%);">-#include <stdlib.h></span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |</span><br><span style="color: hsl(0, 100%, 40%);">-  $EGREP "free" >/dev/null 2>&1; then :</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  ac_cv_header_stdc=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f conftest*</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test $ac_cv_header_stdc = yes; then</span><br><span style="color: hsl(0, 100%, 40%);">-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.</span><br><span style="color: hsl(0, 100%, 40%);">-  if test "$cross_compiling" = yes; then :</span><br><span style="color: hsl(0, 100%, 40%);">-  :</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-/* end confdefs.h.  */</span><br><span style="color: hsl(0, 100%, 40%);">-#include <ctype.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <stdlib.h></span><br><span style="color: hsl(0, 100%, 40%);">-#if ((' ' & 0x0FF) == 0x020)</span><br><span style="color: hsl(0, 100%, 40%);">-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')</span><br><span style="color: hsl(0, 100%, 40%);">-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))</span><br><span style="color: hsl(0, 100%, 40%);">-#else</span><br><span style="color: hsl(0, 100%, 40%);">-# define ISLOWER(c) \</span><br><span style="color: hsl(0, 100%, 40%);">-                (('a' <= (c) && (c) <= 'i') \</span><br><span style="color: hsl(0, 100%, 40%);">-               || ('j' <= (c) && (c) <= 'r') \</span><br><span style="color: hsl(0, 100%, 40%);">-                   || ('s' <= (c) && (c) <= 'z'))</span><br><span style="color: hsl(0, 100%, 40%);">-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))</span><br><span style="color: hsl(0, 100%, 40%);">-int</span><br><span style="color: hsl(0, 100%, 40%);">-main ()</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">-  int i;</span><br><span style="color: hsl(0, 100%, 40%);">-  for (i = 0; i < 256; i++)</span><br><span style="color: hsl(0, 100%, 40%);">-    if (XOR (islower (i), ISLOWER (i))</span><br><span style="color: hsl(0, 100%, 40%);">-   || toupper (i) != TOUPPER (i))</span><br><span style="color: hsl(0, 100%, 40%);">-      return 2;</span><br><span style="color: hsl(0, 100%, 40%);">-  return 0;</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-_ACEOF</span><br><span style="color: hsl(0, 100%, 40%);">-if ac_fn_c_try_run "$LINENO"; then :</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-else</span><br><span style="color: hsl(0, 100%, 40%);">-  ac_cv_header_stdc=no</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \</span><br><span style="color: hsl(0, 100%, 40%);">-  conftest.$ac_objext conftest.beam conftest.$ac_ext</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "$ac_cv_header_stdc" >&6; }</span><br><span style="color: hsl(0, 100%, 40%);">-if test $ac_cv_header_stdc = yes; then</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-$as_echo "#define STDC_HEADERS 1" >>confdefs.h</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-if test "$ac_cv_header_stdc" != "yes"; then</span><br><span style="color: hsl(0, 100%, 40%);">-  as_fn_error $? "*** ANSI C header files not found." "$LINENO" 5</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5</span><br><span> $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }</span><br><span> if ${ac_cv_header_sys_wait_h+:} false; then :</span><br><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 03e141d..44c23c7 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -614,11 +614,6 @@</span><br><span>   AC_MSG_ERROR([*** Could not find dirent header that defines 'DIR'.])</span><br><span> fi</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-AC_HEADER_STDC</span><br><span style="color: hsl(0, 100%, 40%);">-if test "$ac_cv_header_stdc" != "yes"; then</span><br><span style="color: hsl(0, 100%, 40%);">-  AC_MSG_ERROR([*** ANSI C header files not found.])</span><br><span style="color: hsl(0, 100%, 40%);">-fi</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> AC_HEADER_SYS_WAIT</span><br><span> if test "$ac_cv_header_sys_wait_h" != "yes"; then</span><br><span>   AC_MSG_ERROR([*** POSIX.1 compatible sys/wait.h is required.])</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15358">change 15358</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/c/asterisk/+/15358"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ic1ff38d87f791fbf1f2a80512f81bb7110392460 </div>
<div style="display:none"> Gerrit-Change-Number: 15358 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>