📄 libssl.module
字号:
fi fi case $SSL_BASE in SYSTEM ) ;; /* ) ;; * ) SSL_BASE="`cd ../$SSL_BASE; pwd`" ;; esac if [ ".$SSL_BASE" = .SYSTEM ]; then echo "$my_prefix SSL library path: [SYSTEM]" else if [ ! -d "$SSL_BASE" ]; then echo "Error: Cannot find SSL installation in $SSL_BASE" 1>&2 echo "Hint: Please provide us with the location of OpenSSL" 1>&2 echo " via the environment variable SSL_BASE." 1>&2 exit 1 fi echo "$my_prefix SSL library path: $SSL_BASE" fi # # determine location of OpenSSL binaries # (we still search also for `ssleay' to allow us to # better complain about the actually installed version) # SSL_BINDIR="" if [ ".$SSL_BASE" = .SYSTEM ]; then for name in openssl ssleay; do for p in . `echo $PATH | sed -e 's/:/ /g'`; do if [ -f "$p/$name" ]; then SSL_PROGRAM="$p/$name" SSL_BINDIR="$p" break fi done if [ ".$SSL_BINDIR" != . ]; then break; fi done if [ ".$SSL_BINDIR" = . ]; then echo "Error: Cannot find SSL binaries in $PATH" 1>&2 exit 1 fi else for name in openssl ssleay; do if [ -f "$SSL_BASE/bin/$name" ]; then SSL_PROGRAM="$SSL_BASE/bin/$name" SSL_BINDIR='$(SSL_BASE)/bin' break; fi if [ -f "$SSL_BASE/apps/$name" ]; then SSL_PROGRAM="$SSL_BASE/apps/$name" SSL_BINDIR='$(SSL_BASE)/apps' break; fi done if [ ".$SSL_BINDIR" = . ]; then echo "Error: Cannot find SSL binaries under $SSL_BASE" 1>&2 exit 1 fi fi # # SSL version # SSL_VERSION_ID="`$SSL_PROGRAM version`" echo "$my_prefix SSL library version: $SSL_VERSION_ID" case $SSL_VERSION_ID in *0.[5678].*|*0.9.[012]* ) echo "Error: OpenSSL VERSIONS BELOW 0.9.3 ARE NO LONGER SUPPORTED." echo "Hint: Use OpenSSL version 0.9.3 or higher!" exit 1 ;; esac # # determine location of OpenSSL headers # if [ ".$SSL_BASE" = .SYSTEM ]; then SSL_INCDIR="" for p in . /usr/include /usr/include/ssl/ /usr/local/include /usr/local/include/ssl; do if [ -f "$p/openssl/ssl.h" ]; then SSL_INCDIR="$p" break fi done if [ ".$SSL_INCDIR" = . ]; then echo "Error: Cannot find SSL header files in any of the following dirs:" 1>&2 echo "Error: . /usr/include /usr/include/ssl/ /usr/local/include /usr/local/include/ssl" 1>&2 exit 1 fi else if [ -f "$SSL_BASE/include/openssl/ssl.h" ]; then SSL_INCDIR='$(SSL_BASE)/include' else echo "Error: Cannot find SSL header files under $SSL_BASE" 1>&2 exit 1 fi fi SSL_CFLAGS="$SSL_CFLAGS -I\$(SSL_INCDIR)" # # determine location of OpenSSL libraries # if [ ".$SSL_BASE" = .SYSTEM ]; then SSL_LIBDIR="" for p in . /lib /usr/lib /usr/local/lib; do if [ -f "$p/libssl.a" -o -f "$p/libssl.so" ]; then SSL_LIBDIR="$p" my_real_ssl_libdir="$p" break fi done if [ ".$SSL_LIBDIR" = . ]; then echo "Error: Cannot find SSL library files in any of the following dirs:" 1>&2 echo "Error: . /lib /usr/lib /usr/local/lib" 1>&2 exit 1 fi else if [ -f "$SSL_BASE/libssl.a" -o -f "$SSL_BASE/libssl.so" ]; then SSL_LIBDIR='$(SSL_BASE)' my_real_ssl_libdir="$SSL_BASE" elif [ -f "$SSL_BASE/lib/libssl.a" -o -f "$SSL_BASE/lib/libssl.so" ]; then SSL_LIBDIR='$(SSL_BASE)/lib' my_real_ssl_libdir="$SSL_BASE/lib" else echo "Error: Cannot find SSL library files under $SSL_BASE" 1>&2 exit 1 fi fi SSL_LDFLAGS="$SSL_LDFLAGS -L\$(SSL_LIBDIR)" SSL_LIBS="$SSL_LIBS -lssl -lcrypto" # # SSL installation type # case $SSL_BINDIR in */apps ) my_type="source tree only" ;; * ) my_type="installed package" ;; esac case $SSL_BASE in SYSTEM ) my_note="(system-wide)" ;; * ) my_note="(stand-alone)" ;; esac echo "$my_prefix SSL library type: $my_type $my_note" # # support for RSAref library # if [ ".$RSA_BASE" = . ]; then RSA_BASE=`egrep '^RSA_BASE=' $file | tail -1 | awk -F= '{print $2}'` fi if [ ".$RSA_BASE" != . ]; then if [ ! -f "$my_real_ssl_libdir/libRSAglue.a" ]; then echo "Error: Cannot find OpenSSL's RSAglue library under $my_real_ssl_libdir" 1>&2 exit 1 else SSL_LIBS="$SSL_LIBS -lRSAglue" fi case $RSA_BASE in SYSTEM ) ;; /* ) ;; * ) RSA_BASE="`cd ../$RSA_BASE; pwd`" ;; esac echo "$my_prefix SSL library plugin mode: RSAref (explicitly configured)" else if [ -f "$my_real_ssl_libdir/libRSAglue.a" ]; then if [ ".`$SSL_PROGRAM version -f | grep -- -DRSAref`" != . ]; then SSL_LIBS="$SSL_LIBS -lRSAglue" if [ -f "$SSL_BASE/Makefile.ssl" ]; then if [ ".`egrep -- '-L[^ ]*/rsaref' $SSL_BASE/Makefile.ssl`" != . ]; then RSA_BASE=`egrep -- '-L[^ ]*/rsaref' $SSL_BASE/Makefile.ssl |\ head -1 | sed -e 's;.*-L\([^ ]*/rsaref[^ ]*\).*;\1;'` fi fi if [ ".$RSA_BASE" = . ]; then RSA_BASE='SYSTEM' fi fi fi if [ ".$RSA_BASE" != . ]; then echo "$my_prefix SSL library plugin mode: RSAref (implicitly configured)" else echo "$my_prefix SSL library plugin mode: none" fi fi if [ ".$RSA_BASE" != . ]; then if [ ".$RSA_BASE" = .SYSTEM ]; then my_found=no for p in . /lib /usr/lib /usr/local/lib; do if [ -f "$p/librsaref.a" -o -f "$p/librsaref.so" ]; then SSL_LDFLAGS="$SSL_LDFLAGS -L$p" SSL_LIBS="$SSL_LIBS -lrsaref" echo "$my_prefix SSL library plugin path: $p/librsaref.a" my_found=yes break fi done if [ .$my_found = .no ]; then echo "Error: Cannot find RSAref library in any of the following dirs:" 1>&2 echo "Error: . /lib /usr/lib /usr/local/lib" 1>&2 exit 1 fi else my_found=no if [ -f "$RSA_BASE/librsaref.a" ]; then SSL_LDFLAGS="$SSL_LDFLAGS -L$RSA_BASE" SSL_LIBS="$SSL_LIBS -lrsaref" echo "$my_prefix SSL library plugin path: $RSA_BASE/librsaref.a" my_found=yes elif [ -f "$RSA_BASE/rsaref.a" ]; then SSL_LIBS="$SSL_LIBS $RSA_BASE/rsaref.a" echo "$my_prefix SSL library plugin path: $RSA_BASE/rsaref.a" my_found=yes else wild="`echo $RSA_BASE/*/rsaref.a`" if [ -f "$wild" ]; then SSL_LIBS="$SSL_LIBS $wild" echo "$my_prefix SSL library plugin path: $wild" my_found=yes fi fi if [ .$my_found = .no ]; then echo "Error: Cannot find RSAref library under $RSA_BASE" 1>&2 exit 1 fi fi fi # # Special GCC/DSO support # # Under some platforms where GCC is used we have to link the DSO # (libssl.so) explicitly against the GCC library (libgcc) to avoid # problems with missing symbols like __umoddi3, etc. # # Notice: When GCC is installed as "cc" we assume it's really # well incorporated into the system and no hack is # needed (like on FreeBSD, Linux, etc.) # if [ ".$my_buildtype" = .DSO ]; then case $CC in gcc|*/gcc|egcs|*/egcs|egcc|*/egcc|pgcc|*/pgcc ) gcclibdir="`$CC --print-libgcc-file-name | sed -e 's;/[^/]*$;;'`" SSL_LIBS="$SSL_LIBS -L$gcclibdir -lgcc" ;; esac fi # # adjust the Apache build environment # echo "SSL_BASE=$SSL_BASE" >>$my_outfile echo "SSL_BINDIR=$SSL_BINDIR" >>$my_outfile echo "SSL_INCDIR=$SSL_INCDIR" >>$my_outfile echo "SSL_LIBDIR=$SSL_LIBDIR" >>$my_outfile echo "SSL_PROGRAM=$SSL_PROGRAM" >>$my_outfile echo "SSL_VERSION=$SSL_VERSION" >>$my_outfile echo "SSL_CFLAGS=$SSL_CFLAGS" >>$my_outfile echo "SSL_VENDOR_OBJS=$SSL_VENDOR_OBJS" >>$my_outfile echo "SSL_VENDOR_OBJS_PIC=$SSL_VENDOR_OBJS_PIC" >>$my_outfile if [ ".$my_buildtype" = .DSO ]; then # under DSO we link ourself echo "SSL_LIBS=$SSL_LIBS" >>$my_outfile echo "SSL_LDFLAGS=$SSL_LDFLAGS" >>$my_outfile else # else we are linked with httpd LDFLAGS="$LDFLAGS $SSL_LDFLAGS" LIBS="$LIBS $SSL_LIBS" fi CFLAGS="$CFLAGS -DMOD_SSL=$A_VER_HEX" if [ ".$P_ID" != . ]; then CFLAGS="$CFLAGS -DSSL_PRODUCT=$P_VER_HEX" fi RULE_EAPI=yesConfigEnd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -