[alsa-devel] Wierdness in alsa-driver configure script
Eliot Blennerhassett
linux at audioscience.com
Wed Feb 10 22:59:56 CET 2010
checking for kernel version... 2.6.28-17-generic
checking for GCC version... ./configure: eval: line 5540: syntax error
near unexpected token `)'
./configure: eval: line 5540: `my_compiler_version=4.3.3-5ubuntu4)'
Kernel compiler: Used compiler: gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
gcc --version gives (yes, it is ugly!):
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
The following change works for this particular case, but perhaps there
is a better answer?
--- a/configure.in
+++ b/configure.in
@@ -363,7 +363,7 @@ AC_DEFUN([CHECK_COMPILER], [
;;
[[0-9]].[[0-9]]*)
if test -z "$ac_compiler_version"; then
- ac_compiler_version="$i"
+ ac_compiler_version=`echo $i | sed -e
's|[[^0-9]]*\([[0-9.]]\+\).*$|\1|'`
fi
;;
esac
More information about the Alsa-devel
mailing list