1160814Ssimon#!/bin/sh 2160814Ssimon 3160814SsimonHERE="`echo $0 | sed -e 's|[^/]*$||'`" 4160814SsimonOPENSSL="${HERE}../apps/openssl" 5160814Ssimon 6194206Ssimonif [ -d "${HERE}../engines" -a "x$OPENSSL_ENGINES" = "x" ]; then 7194206Ssimon OPENSSL_ENGINES="${HERE}../engines"; export OPENSSL_ENGINES 8194206Ssimonfi 9194206Ssimon 10160814Ssimonif [ -x "${OPENSSL}.exe" ]; then 11160814Ssimon # The original reason for this script existence is to work around 12160814Ssimon # certain caveats in run-time linker behaviour. On Windows platforms 13160814Ssimon # adjusting $PATH used to be sufficient, but with introduction of 14160814Ssimon # SafeDllSearchMode in XP/2003 the only way to get it right in 15160814Ssimon # *all* possible situations is to copy newly built .DLLs to apps/ 16160814Ssimon # and test/, which is now done elsewhere... The $PATH is adjusted 17160814Ssimon # for backward compatibility (and nostagical reasons:-). 18160814Ssimon if [ "$OSTYPE" != msdosdjgpp ]; then 19160814Ssimon PATH="${HERE}..:$PATH"; export PATH 20160814Ssimon fi 21160814Ssimon exec "${OPENSSL}.exe" "$@" 22160814Ssimonelif [ -x "${OPENSSL}" -a -x "${HERE}shlib_wrap.sh" ]; then 23160814Ssimon exec "${HERE}shlib_wrap.sh" "${OPENSSL}" "$@" 24160814Ssimonelse 25160814Ssimon exec "${OPENSSL}" "$@" # hope for the best... 26160814Ssimonfi 27