Remove getgccver script and just use -dumpversion option to get the version

directly inside configure.ac.
edge.strict_endians
antona 2005-10-15 09:53:36 +00:00
parent b67fb5e78f
commit c0b2d7dab2
3 changed files with 5 additions and 12 deletions

View File

@ -3,6 +3,9 @@ xx/xx/2005 - 1.12.2-WIP
- Temporarily disable use of the legal ansi character checking in
libntfs/unistr.c::ntfs_names_collate() pending a proper fix at some
point. (Anton)
- Remove getgccver script and just get the version with the simple gcc
option -dumpversion. I wish I had known about it earlier! Tested on
various architectures and versions from 2.95 to 4.0.1. (Anton)
10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs.

View File

@ -209,7 +209,7 @@ if test "$enable_crypto" != "no"; then
fi
])
have_libgnutls=false
AM_PATH_LIBGNUTLS(1.2.3, [ have_libgnutls=true ],
AM_PATH_LIBGNUTLS(1.2.8, [ have_libgnutls=true ],
[
if test "$enable_crypto" = "yes"; then
AC_MSG_ERROR([Linux-NTFS crypto code requires the gnutls library.])
@ -240,7 +240,7 @@ fi
# Check for gcc version being >= 2.96.
AC_MSG_CHECKING(version of $_cc)
cc_version=`$srcdir/getgccver $_cc`
cc_version=`$_cc -dumpversion`
cc_major=`echo $cc_version | cut -d'.' -f1`
cc_minor=`echo $cc_version | cut -d'.' -f2`
if test -z "$cc_version"; then

View File

@ -1,10 +0,0 @@
#!/bin/sh
if test -z "$1"; then
echo "This program is only to be run by the ./configure script."
exit 1
fi
# Get the gcc version. Can't do this in configure.ac as automake refuses to
# preserve the square brackets while generating the configure script.
$1 --version 2>&1 | head -n 1 | sed s/"egcs-"// | sed s/"gcc (GCC) \([0-9]\.[0-9]*\).*"/"\1"/