autoconf-patches
[Top][All Lists]
Advanced

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

Re: compiler version checks


From: Eric Blake
Subject: Re: compiler version checks
Date: Mon, 27 Apr 2009 18:12:18 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

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

According to Ralf Wildenhues on 4/27/2009 2:05 PM:
> Thanks.  This finally gave me enough incentive to do something about
> this long-standing issue.
> 
> OK to push this Autoconf patch and add Christian and John to THANKS?

In general, I'm happy with the idea.  But let's answer this question first:

> +# Limit stderr logging to avoid copying full manpages.
> +_AC_DO_LIMIT([$ac_compiler --version >&AS_MESSAGE_LOG_FD])
> +_AC_DO_LIMIT([$ac_compiler -v >&AS_MESSAGE_LOG_FD])
> +_AC_DO_LIMIT([$ac_compiler -V >&AS_MESSAGE_LOG_FD])
> +_AC_DO_LIMIT([$ac_compiler -qversion >&AS_MESSAGE_LOG_FD])

Rather than have four consecutive copies of _AC_DO_LIMIT, wouldn't
something more compact like this (untested) snippet work?

for ac_option in --version -v -V -qversion ; do
  _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD])
done

- --
Don't work too hard, make some time for fun as well!

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

iEYEARECAAYFAkn2SeIACgkQ84KuGfSFAYCAyQCgnDVW0pbM0CHE4G8WY+ohJPur
wK8AnjnFoiNvybmfljwD2ZBs6UWh1INg
=PYyK
-----END PGP SIGNATURE-----




reply via email to

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