http://linux-ntfs.sourceforge.net/snapshots/ntfsprogs-200307311516.tar.bz2
[ntfsprogs.git] / getgccver
1 #!/bin/sh
2
3 if test -z "$1"; then
4         echo "This program is only to be run by the ./configure script."
5         exit 1
6 fi
7
8 # Get the gcc version. Can't do this in configure.ac as automake refuses to
9 # preserve the square brackets while generating the configure script.
10 $1 --version 2>&1 | head -1 | sed s/"egcs-"// | sed s/"gcc (GCC) \([0-9]\.[0-9]*\).*"/"\1"/