Re: AC_INIT receiving PACKAGE_VERSION from outside

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> * Stepan Kasal <xnfny@xxxxxx> [2005-03-11 16:23:53 +0100]:
>
> On Fri, Mar 11, 2005 at 09:22:32AM -0500, Sam Steingold wrote:
>> Is there a chance this will be eventually fixed?
>
> No, it's a design decision.  The packed tarball contains sources of a
> certain fixed version.
>
> You are free to make patches to autoconf,

--- general.m4	23 Feb 2005 18:24:49 -0500	1.847
+++ general.m4	17 Mar 2005 12:42:22 -0500	
@@ -239,24 +239,21 @@
 # _AC_INIT_PACKAGE(PACKAGE-NAME, VERSION, BUG-REPORT, [TARNAME])
 # --------------------------------------------------------------
 m4_define([_AC_INIT_PACKAGE],
-[AS_LITERAL_IF([$1], [], [m4_warn([syntax], [AC_INIT: not a literal: $1])])
-AS_LITERAL_IF([$2], [],  [m4_warn([syntax], [AC_INIT: not a literal: $2])])
-AS_LITERAL_IF([$3], [],  [m4_warn([syntax], [AC_INIT: not a literal: $3])])
-m4_ifndef([AC_PACKAGE_NAME],
-	  [m4_define([AC_PACKAGE_NAME],     [$1])])
+[m4_ifndef([AC_PACKAGE_NAME],
+	   [m4_define([AC_PACKAGE_NAME],     $1)])
 m4_ifndef([AC_PACKAGE_TARNAME],
 	  [m4_define([AC_PACKAGE_TARNAME],
-		     m4_default([$4],
-				[m4_bpatsubst(m4_tolower(m4_bpatsubst([[[$1]]],
+		     m4_default($4,
+				[m4_bpatsubst(m4_tolower(m4_bpatsubst([[[AC_PACKAGE_NAME]]],
 								     [GNU ])),
 				 [[^_abcdefghijklmnopqrstuvwxyz0123456789]],
 				 [-])]))])
 m4_ifndef([AC_PACKAGE_VERSION],
-	  [m4_define([AC_PACKAGE_VERSION],   [$2])])
+	  [m4_define([AC_PACKAGE_VERSION],   $2)])
 m4_ifndef([AC_PACKAGE_STRING],
-	  [m4_define([AC_PACKAGE_STRING],    [$1 $2])])
+	  [m4_define([AC_PACKAGE_STRING],    AC_PACKAGE_NAME AC_PACKAGE_VERSION)])
 m4_ifndef([AC_PACKAGE_BUGREPORT],
-	  [m4_define([AC_PACKAGE_BUGREPORT], [$3])])
+	  [m4_define([AC_PACKAGE_BUGREPORT], $3)])
 ])
 
 


> and when you have something,

I am sure the above is not perfect, but I hope it is a good start...
please help me.

> you can try to convince the developers...

well, in this thread 4 persons (Eric, Bob, Bruno, Bruce) concurred with
me that AC_INIT should evaluate its arguments.

You are alone.
futility is resistive.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.honestreporting.com> <http://www.openvotingconsortium.org/>
<http://www.dhimmi.com/> <http://www.mideasttruth.com/> <http://www.camera.org>
Only adults have difficulty with child-proof caps.



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux