<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2015 at 04:23, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":2yy" class="" style="overflow:hidden">+        for var in tocheck.split():<br>
+            if var.startswith(&#39;ac_cv_&#39;):<br>
+                varname = var.split(&#39;=&#39;)[0]<br>
+                cfgscript=d.expand(&quot;${S}/configure&quot;)<br>
+                if os.path.exists(cfgscript):<br>
+                    statement = &quot;grep -q -F %s  %s &gt; /dev/null&quot; % (varname, cfgscript)</div></blockquote></div><br>So your assumption that ac_cv_* variables are referenced in full in configure is bad.  This is what strace has for the giant AC_CHECK_HEADERS block:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">for ac_header in asm/cachectl.h asm/sysmips.h bluetooth/bluetooth.h elf.h inttypes.h ioctls.h linux/bsg.h linux/falloc.h linux/filter.h linux/hiddev.h linux/mmtimer.h linux/perf_event.h linux/seccomp.h linux/securebits.h linux/utsname.h mqueue.h netinet/sctp.h poll.h scsi/sg.h stropts.h sys/conf.h sys/epoll.h sys/fanotify.h sys/filio.h sys/ioctl.h sys/poll.h sys/reg.h sys/vfs.h sys/xattr.h</div><div class="gmail_extra">do :</div><div class="gmail_extra">  as_ac_Header=`$as_echo &quot;ac_cv_header_$ac_header&quot; | $as_tr_sh`</div><div class="gmail_extra">ac_fn_c_check_header_mongrel &quot;$LINENO&quot; &quot;$ac_header&quot; &quot;$as_ac_Header&quot; &quot;$ac_includes_default&quot;</div><div class="gmail_extra"><br></div><div class="gmail_extra">The variable name is constructed, so this test can&#39;t work.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>