updated to fix issues with building outside of bootstrap.
[feisty_meow.git] / scripts / clam / cpp / get_version.sh
index f1a8df506283a0b59d89736771430014dea9572e..50b9c70b1910a28d0b25cda2bf71d4824abe5c43 100755 (executable)
@@ -8,11 +8,14 @@ if [ "$COMPILER" = "GNU_LINUX" \
   # older code is needed for some versions of gcc / suse.
   ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/')
 
-  if [ ! -d "/usr/include/c++/$ver_found" ]; then
-    # newest code takes only first two version numbers, since that's how
-    # suse 11.0 at least is listing the includes.
-    ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' | sed -e 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1.\2/')
-  fi
+#  if [ ! -d "/usr/include/c++/$ver_found" ]; then
+#      -a ! -d "/usr/include/c++/$ver_found" ]; then
+
+#    # newest code takes only first two version numbers, since that's how
+#    # suse 11.0 at least is listing the includes.
+#    ver_found=$(gcc -### 2>&1 | grep "gcc version" | sed -e 's/^gcc version \([0-9.][0-9.]*\) .*$/\1/' | sed -e 's/\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1.\2/')
+
+#  fi
 
   echo "$ver_found"