m4-patches
[Top][All Lists]
Advanced

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

Re: changing compiler flags at configure time


From: Eric Blake
Subject: Re: changing compiler flags at configure time
Date: Thu, 15 Jun 2006 23:11:49 -0600
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 6/15/2006 9:50 PM:
>       * configure.ac: Likewise.
>       (M4_DEFAULT_PRELOAD): Use as a macro, not shell variable.

+AC_DEFUN([M4_DEFAULT_PRELOAD], [m4 traditional gnu])
 AC_MSG_CHECKING([for modules to preload])
- -  m4_pattern_allow([^m4_default_preload$])
- -  m4_default_preload="m4 traditional gnu"
   DLPREOPEN=

   AC_ARG_WITH([modules],
     [AS_HELP_STRING([--with-modules=MODULES],
- -                 [preload MODULES @<:@default: $m4_default_preload@:>@])],
+                   [preload MODULES @<:@default: ]M4_DEFAULT_PRELOAD[@:>@])],
     [use_modules="$withval"],
- -    [use_modules="$m4_default_preload"])
+    [use_modules="$M4_DEFAULT_PRELOAD"])

Oops - that expanded as
use_modules="$m4 traditional gnu"
which obviously doesn't work if m4 is an undefined shell variable. Obvious
fix checked in:

2006-06-15  Eric Blake  <address@hidden>

        * configure.ac (M4_DEFAULT_PRELOAD): Fix typo in last commit.

$ cvs diff configure.ac
Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.47
diff -u -p -r1.47 configure.ac
- --- configure.ac        16 Jun 2006 03:51:28 -0000      1.47
+++ configure.ac        16 Jun 2006 05:08:29 -0000
@@ -70,7 +70,7 @@ AC_MSG_CHECKING([for modules to preload]
     [AS_HELP_STRING([--with-modules=MODULES],
                    [preload MODULES @<:@default: ]M4_DEFAULT_PRELOAD[@:>@])],
     [use_modules="$withval"],
- -    [use_modules="$M4_DEFAULT_PRELOAD"])
+    [use_modules="M4_DEFAULT_PRELOAD"])

   PREOPEN_DEPENDENCIES=
   DLPREOPEN="-dlpreopen force"



- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEkj2V84KuGfSFAYARAufAAKCgnScwMFnLBBpCF2pHmyqe+WO2XACgxMoY
VGcU8l2ph2N2mhD/JYlEDQI=
=7174
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]