]> git.donarmstrong.com Git - lilypond.git/blobdiff - configure.in
* input/test/ambitus.ly:
[lilypond.git] / configure.in
index 6f70a28f4396e2b2aff561cf1aa251a83604b037..2194cfbb7c5a32323de99224b98a9b939a780e79 100644 (file)
@@ -65,6 +65,21 @@ fi
 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
 
+# Check for guile ./configure'd --with-threads
+# which shows nasty memory corruption errors.
+# Until we found the real cause, advise no to use threads
+exe=`STEPMAKE_GET_EXECUTABLE($guile_config)`
+if test -n "$exe" -a -x "$exe"; then
+    AC_MSG_CHECKING(["for guile, ./configure\'d --without-threads"])
+    link=`$guile_config link`
+    if expr "$link" : '.*\(thread\)' >/dev/null 2>&1; then
+       STEPMAKE_ADD_ENTRY(OPTIONAL, ["guile, ./configure'd --without-threads (using guile with threads may give nasty memory corruption errors on large scores)."])
+       AC_MSG_RESULT(["no, watch out."])
+    else
+       AC_MSG_RESULT(["yes, good."])
+    fi
+fi    
+
 # Gather requirements and generate output.
 STEPMAKE_END