detection of gcc version

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

 




Hey,

I would like to detect the major version of gcc in configure.ac. A guy told me to use sed like that:

GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`

Is there a better way to do that with autoconf macros ?

thank you

Vincent Torri


_______________________________________________
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