<html><head></head><body><div class="ydp72f877aayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Hi,</div><div dir="ltr" data-setdir="false">Thanks, by commenting out those lines in configure.ac, I was able to build successfully.</div><div dir="ltr" data-setdir="false">As you asked, the version for <span>m4 is 1.4.18 on my system.</span></div><div dir="ltr" data-setdir="false">-Anesh</div><div><br></div><div class="ydp72f877aasignature"><div style="font-family:Helvetica, Arial, sans-serif;font-size:16px;"><br></div></div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_6427480482" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, December 11, 2019, 03:36:53 AM EST, Aleksander Morgado <aleksander@aleksander.es> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Hey<div class="yqt4431122535" id="yqtfd28361"><br clear="none"><br clear="none">> I cloned libqmi source code from this link <a shape="rect" href="https://github.com/freedesktop/libqmi.git" target="_blank">https://github.com/freedesktop/libqmi.git</a><br clear="none">> when I run ./autogen.sh I get the following error.<br clear="none">><br clear="none">> .<br clear="none">> autoreconf: running: aclocal --force -I m4<br clear="none">> /usr/bin/m4:configure.ac:66: recursion limit of 1024 exceeded, use -L<N> to change it<br clear="none">> autom4te: /usr/bin/m4 failed with exit status: 1<br clear="none">> aclocal: error: echo failed with exit status: 1<br clear="none">> autoreconf: aclocal failed with exit status: 1<br clear="none">> ./autogen.sh: 21: ./autogen.sh: ./configure: not found<br clear="none">><br clear="none">> Can somebody please help me with how to get rid of this error?</div><br clear="none"><br clear="none">Looks like you're hitting the same issue as in the ChromeOS builds:<br clear="none"><a shape="rect" href="https://gitlab.freedesktop.org/mobile-broadband/libqmi/issues/22" target="_blank">https://gitlab.freedesktop.org/mobile-broadband/libqmi/issues/22</a><br clear="none">That seems to be some issue with an old m4 in your system, could you<br clear="none">let us know which version of m4 are you using?<br clear="none"><br clear="none">If you want to get rid of the issue and keep the build on, just remove<br clear="none">all the AX_ macros:<br clear="none"><br clear="none">diff --git a/configure.ac b/configure.ac<br clear="none">index e82aa43..b6f4a08 100644<br clear="none">--- a/configure.ac<br clear="none">+++ b/configure.ac<br clear="none">@@ -43,28 +43,6 @@ dnl Initialize libtool<br clear="none"> LT_PREREQ([2.2])<br clear="none"> LT_INIT<br clear="none"><br clear="none">-dnl-----------------------------------------------------------------------------<br clear="none">-dnl Compiler warnings<br clear="none">-dnl<br clear="none">-<br clear="none">-dnl Make sure autoconf-archive is available<br clear="none">-m4_pattern_forbid([^AX_(COMPILER_FLAGS|COMPILER_FLAGS_(CFLAGS|GIR|LDFLAGS))\b],<br clear="none">-  [Unexpanded AX_ macro found. Please install GNU autoconf-archive])<br clear="none">-<br clear="none">-dnl Detect git or release builds<br clear="none">-AX_IS_RELEASE([git-directory])<br clear="none">-<br clear="none">-dnl Function type cast disabled: used throughout the code especially to<br clear="none">-dnl cast GAsyncReadyCallbacks with the real object type instead of GObject<br clear="none">-DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-cast-function-type"<br clear="none">-<br clear="none">-dnl All message protocol structs are packed, never complain about it<br clear="none">-DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-packed"<br clear="none">-<br clear="none">-dnl Setup compiler checks<br clear="none">-AX_COMPILER_FLAGS()<br clear="none">-AX_COMPILER_FLAGS_CFLAGS(,,,[${DISABLED_WARNINGS}])<br clear="none">-<br clear="none"> dnl Specify gnu89 mode<br clear="none"> if test "$GCC" = "yes"; then<br clear="none">    CFLAGS="$CFLAGS -std=gnu89"<br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">Aleksander<br clear="none"><a shape="rect" href="https://aleksander.es" target="_blank">https://aleksander.es</a><div class="yqt4431122535" id="yqtfd80922"><br clear="none"></div></div></div>
            </div>
        </div></body></html>