diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-12-12 14:43:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-12-12 14:43:24 +0000 |
commit | bc89fe0147c04b67141936d109c00dfd4d69cc4b (patch) | |
tree | 544ff450c40fe1f43853a8420228a26f27f1eafb /gtk2_ardour/ardour.sh.in | |
parent | 30daaebaa2d90d6b0e8673143ccc3cacd7bd1753 (diff) |
most of the 2.X->3.0 commit (up to rev 4299) except for gtk2_ardour/editor_canvas.cc; builds and runs and does a few specific things but expect it to be buggy for a while yet
git-svn-id: svn://localhost/ardour2/branches/3.0@4313 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour.sh.in')
-rw-r--r-- | gtk2_ardour/ardour.sh.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour.sh.in b/gtk2_ardour/ardour.sh.in index 4a7219823c..077073bdf6 100644 --- a/gtk2_ardour/ardour.sh.in +++ b/gtk2_ardour/ardour.sh.in @@ -18,6 +18,25 @@ if [ "$MLOCK_LIMIT" != "unlimited" ]; then fi +## Glib atomic test + +GLIB=$(ldd %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% 2> /dev/null | grep glib-2.0 | sed 's/.*=> \([^ ]*\) .*/\1/') + +if [ "$GLIB" = "" ]; then + echo "WARNING: Could not check your glib-2.0 for mutex locking atomic operations." + echo "" +elif [ $(nm -D --radix=dec --defined-only -S $GLIB | grep -w g_atomic_int_add | cut -d ' ' -f 2) -gt 32 ]; then + echo "WARNING: Your system contains a suspect libglib-2.0. Your version might be built" + echo " to use mutex locking atomic operations. This is a fallback solution to" + echo " a more robust hardware supported atomicity. It might cause reduced " + echo " performance and/or deadlocks. Please contact your distribution support" + echo " about this issue." + echo " Unfortunately this check is not 100% accurate, so this might not be" + echo " the case with your system." + echo "" +fi + +exec %INSTALL_PREFIX%/%LIBDIR%/ardour2/ardour-%VERSION% "$@" ## Glib atomic test |