+
+ # install only if available (e.g. Ubuntu Trusty)
+ sudo apt-get install -qq >/dev/null \
+ libsystemd-daemon-dev \
+ libsystemd-journal-dev \
+ || true
+}
+
+function osx_install_script
+{
+ brew update >/dev/null
+
+ brew install gettext ncurses socat xz
+ brew link --force gettext
+ brew link --force ncurses
+
+ OSX_CONFOPTS="
+ --disable-ipcrm \
+ --disable-ipcs \
+ "
+
+ # workaround: glibtoolize could not find sed
+ export SED="sed"
+}
+
+function osx_prepare_check
+{
+ [ "$TRAVIS_OS_NAME" = "osx" ] || return 0
+
+ # these ones only need to be gnu for our test-suite
+ brew install coreutils findutils gnu-tar gnu-sed
+
+ # symlink minimally needed gnu commands into PATH
+ mkdir ~/bin
+ for cmd in readlink seq timeout truncate find xargs tar sed; do
+ ln -s /usr/local/bin/g$cmd $HOME/bin/$cmd
+ done
+ hash -r
+
+ export TS_OPT_col_multibyte_known_fail=yes
+ export TS_OPT_colcrt_regressions_known_fail=yes
+ export TS_OPT_column_invalid_multibyte_known_fail=yes