📄 libssl.module
字号:
exit 1 fi fi # 4. override decision on a few brain-dead platforms if [ ".$my_rule_SSL_SDBM" = .default ]; then case "$PLAT" in *-linux* ) # force Linux boxes to use builtin SDBM per default because # of too much broken vendor DBM libraries on this platform SSL_DBM_NAME='' ;; esac fi # 5. finally configure the chosen DBM lib if [ ".$SSL_DBM_NAME" != . ]; then echo "$my_prefix SSL interface plugin: $SSL_DBM_NAME" my_dbm_already_used=`echo $LIBS | grep -- " $SSL_DBM_FLAG"` if [ ".$my_buildtype" = .OBJ -a ".$my_dbm_already_used" != . ]; then : else SSL_LIBS="$SSL_LIBS $SSL_DBM_FLAG" fi else echo "$my_prefix SSL interface plugin: Built-in SDBM" SSL_CFLAGS="$SSL_CFLAGS -DSSL_USE_SDBM" fi fi # # determine SSL_BASE # if [ ".$SSL_BASE" = . ]; then SSL_BASE=`egrep '^SSL_BASE=' $file | sed -n -e '$p' | awk -F= '{print $2}'` if [ ".$SSL_BASE" = . ]; then if [ -d /usr/local/ssl ]; then SSL_BASE="/usr/local/ssl" else SSL_BASE="SYSTEM" fi 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/sbin/$name" ]; then SSL_PROGRAM="$SSL_BASE/sbin/$name" SSL_BINDIR='$(SSL_BASE)/sbin' 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 # # SSL engine support # case $SSL_VERSION_ID in *0.9.6*engine* | *0.9.6a*engine* | *0.9.[789]* ) SSL_CFLAGS="$SSL_CFLAGS -DSSL_ENGINE" ;; 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 if [ ".$SSL_INCDIR" != "./usr/include" ]; then SSL_CFLAGS="$SSL_CFLAGS -I\$(SSL_INCDIR)" fi # # 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" # # 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 my_CC=`echo "$CC" | sed -e 's/ .*//'` case $my_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 + -