{"id":2713,"date":"2012-08-07T19:58:00","date_gmt":"2012-08-07T17:58:00","guid":{"rendered":"http:\/\/glandium.org\/blog\/?p=2713"},"modified":"2019-09-03T15:30:34","modified_gmt":"2019-09-03T06:30:34","slug":"forget-about-autoconf-mk-in","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=2713","title":{"rendered":"Forget about autoconf.mk.in"},"content":{"rendered":"<p>When you add a flag somewhere in <code>configure.in<\/code> and need to use it in code or in the build system, you use <code>AC_SUBST<\/code> or <code>AC_DEFINE<\/code>. While using <code>AC_DEFINE<\/code> in <code>configure.in<\/code> is usually sufficient for its purpose, using <code>AC_SUBST<\/code> requires to add some boilerplate in <code>config\/autoconf.mk.in<\/code>, in the form:<\/p>\n<blockquote>\n<pre>VARIABLE_NAME = @VARIABLE_NAME@\r\n<\/pre>\n<\/blockquote>\n<p>Here's the news for you: these days are over. With <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=742795\">bug 742795<\/a>, now on mozilla-central, <code>autoconf.mk<\/code> is auto-generated. No need to touch <code>config\/autoconf.mk.in<\/code> anymore.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you add a flag somewhere in configure.in and need to use it in code or in the build system, you use AC_SUBST or AC_DEFINE. While using AC_DEFINE in configure.in is usually sufficient for its purpose, using AC_SUBST requires to add some boilerplate in config\/autoconf.mk.in, in the form: VARIABLE_NAME = @VARIABLE_NAME@ Here&#8217;s the news for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[23],"class_list":["post-2713","post","type-post","status-publish","format-standard","hentry","category-planet-mozilla","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2713"}],"version-history":[{"count":5,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2713\/revisions"}],"predecessor-version":[{"id":2718,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2713\/revisions\/2718"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}