⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in.in

📁 将konqueror浏览器移植到ARM9 2410中
💻 IN
字号:
dnl ------------------------------------------------------------------------dnl Try to find the SSL headers and libraries.dnl $(SSL_LDFLAGS) will be -Lsslliblocation (if needed)dnl and $(SSL_INCLUDES) will be -Isslhdrlocation (if needed)dnl ------------------------------------------------------------------------dnlAC_DEFUN(AC_PATH_SSL,[LIBSSL="-lssl -lcrypto"AC_MSG_CHECKING([for OpenSSL])ac_ssl_includes=NO ac_ssl_libraries=NOssl_libraries=""ssl_includes=""AC_ARG_WITH(ssl-dir,    [  --with-ssl-dir=DIR      where the root of OpenSSL is installed],    [  ac_ssl_includes="$withval"/include       ac_ssl_libraries="$withval"/lib    ])want_ssl=yesAC_ARG_WITH(ssl,    [  --without-ssl           Disable SSL checks],    [want_ssl=$withval])if test $want_ssl = yes; thenAC_CACHE_VAL(ac_cv_have_ssl,[#try to guess OpenSSL locations  ssl_incdirs="/usr/include /usr/local/include /usr/ssl/include /usr/local/ssl/include $prefix/include $kde_extra_includes"  ssl_incdirs="$ac_ssl_includes $ssl_incdirs"  AC_FIND_FILE(openssl/ssl.h, $ssl_incdirs, ssl_incdir)  ac_ssl_includes="$ssl_incdir"  ssl_libdirs="/usr/lib /usr/local/lib /usr/ssl/lib /usr/local/ssl/lib $prefix/lib $exec_prefix/lib $kde_extra_libs"  if test ! "$ac_ssl_libraries" = "NO"; then    ssl_libdirs="$ac_ssl_libraries $ssl_libdirs"  fi  test=NONE  ssl_libdir=NONE  for dir in $ssl_libdirs; do    try="ls -1 $dir/libssl*"    if test=`eval $try 2> /dev/null`; then ssl_libdir=$dir; break; else echo "tried $dir" >&AC_FD_CC ; fi  done  ac_ssl_libraries="$ssl_libdir"  AC_LANG_SAVE  AC_LANG_C  ac_cflags_safe="$CFLAGS"  ac_ldflags_safe="$LDFLAGS"  ac_libs_safe="$LIBS"  CFLAGS="$CFLAGS -I$ssl_incdir $all_includes"  LDFLAGS="-L$ssl_libdir $all_libraries"  LIBS="$LIBS $LIBSSL -lRSAglue -lrsaref"  AC_TRY_LINK(,void RSAPrivateEncrypt(void);RSAPrivateEncrypt();,  ac_ssl_rsaref="yes"  ,  ac_ssl_rsaref="no"  )  CFLAGS="$ac_cflags_safe"  LDFLAGS="$ac_ldflags_safe"  LIBS="$ac_libs_safe"  AC_LANG_RESTORE  if test "$ac_ssl_includes" = NO || test "$ac_ssl_libraries" = NO; then    have_ssl=no  else    have_ssl=yes;  fi  ])  eval "$ac_cv_have_ssl"else  have_ssl=nofiif test "$have_ssl" = yes; then  dnl Check for SSL version  fixed_ssl_version="no"  AC_ARG_WITH(ssl-version, [  --with-ssl-version=ver  Disable ssl version check                          and assume specified version],              [fixed_ssl_version=$withval])  if test "$fixed_ssl_version" != "no"; then      have_ssl=yes      ac_cv_ssl_version="ssl_version=$fixed_ssl_version"  else  AC_CACHE_VAL(ac_cv_ssl_version,  [    AC_LANG_SAVE    AC_LANG_C     cat >conftest.$ac_ext <<EOF#include <openssl/opensslv.h>#include <stdio.h>    int main() { #ifndef OPENSSL_VERSION_NUMBER      printf("ssl_version=\\"error\\"\n");#else      if (OPENSSL_VERSION_NUMBER < 0x00906000)        printf("ssl_version=\\"old\\"\n");      else        printf("ssl_version=\\"ok\\"\n");#endif     return (0);    }EOF    ac_compile='${CC-gcc} $CFLAGS -I$ac_ssl_includes conftest.$ac_ext -o conftest'    if AC_TRY_EVAL(ac_compile); then       if eval `./conftest 2>&5`; then        if test $ssl_version = error; then          AC_MSG_ERROR([$ssl_incdir/openssl/opensslv.h doesn't define OPENSSL_VERSION_NUMBER !])        else          if test $ssl_version = old; then            AC_MSG_WARN([OpenSSL version too old. Upgrade to 0.9.6 at least, see http://www.openssl.org. SSL support disabled.])            have_ssl=no          fi        fi        ac_cv_ssl_version="ssl_version=$ssl_version"      else        AC_MSG_ERROR([Your system couldn't run a small SSL test program.        Check config.log, and if you can't figure it out, send a mail to         David Faure <faure@kde.org>, attaching your config.log])      fi    else      AC_MSG_ERROR([Your system couldn't link a small SSL test program.      Check config.log, and if you can't figure it out, send a mail to       David Faure <faure@kde.org>, attaching your config.log])    fi     AC_LANG_RESTORE  ])  fi  eval "$ac_cv_ssl_version"fiif test "$have_ssl" != yes; then  LIBSSL="";  AC_MSG_RESULT([$have_ssl]);else  AC_DEFINE(HAVE_SSL, 1, [If we are going to use OpenSSL])  ac_cv_have_ssl="have_ssl=yes \    ac_ssl_includes=$ac_ssl_includes ac_ssl_libraries=$ac_ssl_libraries ac_ssl_rsaref=$ac_ssl_rsaref"  AC_MSG_RESULT([libraries $ac_ssl_libraries, headers $ac_ssl_includes])    ssl_libraries="$ac_ssl_libraries"  ssl_includes="$ac_ssl_includes"  AC_MSG_CHECKING([whether OpenSSL uses rsaref])  AC_MSG_RESULT($ac_ssl_rsaref)  if test "$ac_ssl_rsaref" = yes; then    LIBSSL="-lssl -lcrypto -lRSAglue -lrsaref"   fi  AC_MSG_CHECKING([for OpenSSL version])  AC_MSG_RESULT($ssl_version)  if test $ssl_version = "0.9.5"; then    AC_DEFINE(HAVE_OLD_SSL_API, 1, [Define if you have OpenSSL < 0.9.6])  fifiif test "$ssl_includes" = "/usr/include" || test  "$ssl_includes" = "/usr/local/include" || test -z "$ssl_includes"; then SSL_INCLUDES="";else SSL_INCLUDES="-I$ssl_includes"fiif test "$ssl_libraries" = "/usr/lib" || test "$ssl_libraries" = "/usr/local/lib" || test -z "$ssl_libraries"; then SSL_LDFLAGS=""else SSL_LDFLAGS="-L$ssl_libraries"fiAC_SUBST(SSL_INCLUDES)AC_SUBST(SSL_LDFLAGS)AC_SUBST(LIBSSL)])AC_PATH_SSL

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -