Автор Тема: Въпрос за баш майстори  (Прочетена 438 пъти)

Yasen6275

  • Напреднали
  • *****
  • Публикации: 553
    • Профил
Въпрос за баш майстори
« -: Oct 15, 2006, 19:57 »
Цитат
#
# OpenSSL detection borrowed from stunnel
#
checkssldir() { :
    if test -f "$1/include/openssl/ssl.h"; then
        ssldir="$1"
        return 0
    fi
    return 1
}
echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6

# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
  withval="$with_openssl"

                checkssldir "$withval"

else

                for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
            for dir in $maindir $maindir/openssl $maindir/ssl; do
                checkssldir $dir && break 2
            done
        done


fi;
if test -z "$ssldir"; then
    echo "$as_me:$LINENO: result: Not found" >&5
echo "${ECHO_T}Not found" >&6
    echo
    echo "Couldn't find your OpenSSL library installation dir"
    echo "Use --with-openssl option to fix this problem"
    echo
    exit 1
fi
echo "$as_me:$LINENO: result: $ssldir" >&5
echo "${ECHO_T}$ssldir" >&6

cat >>confdefs.h <<_ACEOF
#define ssldir "$ssldir"
_ACEOF


CFLAGS="$CFLAGS -I$ssldir/include"
# Check whether --enable-static-openssl or --disable-static-openssl was given.
if test "${enable_static_openssl+set}" = set; then
  enableval="$enable_static_openssl"

LIBS="$LIBS $ssldir/lib/libcrypto.a"

else

LIBS="$LIBS -L$ssldir/lib -lcrypto"
rpath="$rpath:$ssldir/lib"

fi;

това ми е часта за SSL-а но не работи. Как да я пипна така че да намери SSL-a?
Активен