Re: Checking for GCC 4

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

 



> How can I make sure user has at least gcc4 installed?

(after establishing that the compiler is gcc), and doing AC_PROG_AWK:

version=`$CXX -v 2>&1 | $AWK -F'[ .]' '/version/{print $3}'`

should do the job. There are some reasons for doing this (bigish changes
in standards compliance in g++ 4 compared to g++ 3), but you should 
probably check to see if you're not being overly restrictive before 
implementing this test.

-Ed

-- 
(You can't go wrong with psycho-rats.)       (er258)(@)(eng.cam)(.ac.uk)

/d{def}def/f{/Times findfont s scalefont setfont}d/s{10}d/r{roll}d f 5/m
{moveto}d -1 r 230 350 m 0 1 179{1 index show 88 rotate 4 mul 0 rmoveto}
for /s 15 d f pop 240 420 m 0 1 3 { 4 2 1 r sub -1 r show } for showpage


_______________________________________________
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