Changeset 1696
- Timestamp:
- 02/09/05 20:01:38 (4 years ago)
- Files:
-
- wire/trunk/config.h.in (modified) (1 diff)
- wire/trunk/configure (modified) (11 diffs)
- wire/trunk/configure.in (modified) (2 diffs)
- wire/trunk/wire/term.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/config.h.in
r1665 r1696 4 4 #undef HAVE_CORESERVICES_CORESERVICES_H 5 5 6 /* Define to 1 if you have the declaration of `optreset', and to 0 if you7 don't. */8 #undef HAVE_DECL_ OPTRESET6 /* Define to 1 if you have the declaration of 7 `rl_completion_display_matches_hook', and to 0 if you don't. */ 8 #undef HAVE_DECL_RL_COMPLETION_DISPLAY_MATCHES_HOOK 9 9 10 10 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ wire/trunk/configure
r1680 r1696 3272 3272 3273 3273 3274 # Check for the OpenSSL cryptolibrary3274 # Check for the OpenSSL ssl library 3275 3275 echo "$as_me:$LINENO: checking for egrep" >&5 3276 3276 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 … … 3512 3512 3513 3513 3514 for ac_header in openssl/s ha.h3514 for ac_header in openssl/ssl.h 3515 3515 do 3516 3516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 3649 3649 _ACEOF 3650 3650 3651 echo "$as_me:$LINENO: checking for main in -l crypto" >&53652 echo $ECHO_N "checking for main in -l crypto... $ECHO_C" >&63653 if test "${ac_cv_lib_ crypto_main+set}" = set; then3651 echo "$as_me:$LINENO: checking for main in -lssl" >&5 3652 echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6 3653 if test "${ac_cv_lib_ssl_main+set}" = set; then 3654 3654 echo $ECHO_N "(cached) $ECHO_C" >&6 3655 3655 else 3656 3656 ac_check_lib_save_LIBS=$LIBS 3657 LIBS="-l crypto$LIBS"3657 LIBS="-lssl $LIBS" 3658 3658 cat >conftest.$ac_ext <<_ACEOF 3659 3659 #line $LINENO "configure" … … 3685 3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 3686 (exit $ac_status); }; }; then 3687 ac_cv_lib_ crypto_main=yes3687 ac_cv_lib_ssl_main=yes 3688 3688 else 3689 3689 echo "$as_me: failed program was:" >&5 3690 3690 sed 's/^/| /' conftest.$ac_ext >&5 3691 3691 3692 ac_cv_lib_ crypto_main=no3692 ac_cv_lib_ssl_main=no 3693 3693 fi 3694 3694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3695 3695 LIBS=$ac_check_lib_save_LIBS 3696 3696 fi 3697 echo "$as_me:$LINENO: result: $ac_cv_lib_ crypto_main" >&53698 echo "${ECHO_T}$ac_cv_lib_ crypto_main" >&63699 if test $ac_cv_lib_ crypto_main = yes; then3700 3701 LIBS="$LIBS -l crypto"3697 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5 3698 echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6 3699 if test $ac_cv_lib_ssl_main = yes; then 3700 3701 LIBS="$LIBS -lssl" 3702 3702 3703 3703 else … … 3742 3742 3743 3743 3744 # Check for the OpenSSL ssllibrary3745 3746 for ac_header in openssl/s sl.h3744 # Check for the OpenSSL crypto library 3745 3746 for ac_header in openssl/sha.h 3747 3747 do 3748 3748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 3881 3881 _ACEOF 3882 3882 3883 echo "$as_me:$LINENO: checking for main in -l ssl" >&53884 echo $ECHO_N "checking for main in -l ssl... $ECHO_C" >&63885 if test "${ac_cv_lib_ ssl_main+set}" = set; then3883 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5 3884 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 3885 if test "${ac_cv_lib_crypto_main+set}" = set; then 3886 3886 echo $ECHO_N "(cached) $ECHO_C" >&6 3887 3887 else 3888 3888 ac_check_lib_save_LIBS=$LIBS 3889 LIBS="-l ssl$LIBS"3889 LIBS="-lcrypto $LIBS" 3890 3890 cat >conftest.$ac_ext <<_ACEOF 3891 3891 #line $LINENO "configure" … … 3917 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 3918 (exit $ac_status); }; }; then 3919 ac_cv_lib_ ssl_main=yes3919 ac_cv_lib_crypto_main=yes 3920 3920 else 3921 3921 echo "$as_me: failed program was:" >&5 3922 3922 sed 's/^/| /' conftest.$ac_ext >&5 3923 3923 3924 ac_cv_lib_ ssl_main=no3924 ac_cv_lib_crypto_main=no 3925 3925 fi 3926 3926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3927 3927 LIBS=$ac_check_lib_save_LIBS 3928 3928 fi 3929 echo "$as_me:$LINENO: result: $ac_cv_lib_ ssl_main" >&53930 echo "${ECHO_T}$ac_cv_lib_ ssl_main" >&63931 if test $ac_cv_lib_ ssl_main = yes; then3932 3933 LIBS="$LIBS -l ssl"3929 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5 3930 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 3931 if test $ac_cv_lib_crypto_main = yes; then 3932 3933 LIBS="$LIBS -lcrypto" 3934 3934 3935 3935 else … … 5671 5671 # Checks for typedefs, structures, and compiler characteristics 5672 5672 5673 echo "$as_me:$LINENO: checking whether optresetis declared" >&55674 echo $ECHO_N "checking whether optresetis declared... $ECHO_C" >&65675 if test "${ac_cv_have_decl_ optreset+set}" = set; then5673 echo "$as_me:$LINENO: checking whether rl_completion_display_matches_hook is declared" >&5 5674 echo $ECHO_N "checking whether rl_completion_display_matches_hook is declared... $ECHO_C" >&6 5675 if test "${ac_cv_have_decl_rl_completion_display_matches_hook+set}" = set; then 5676 5676 echo $ECHO_N "(cached) $ECHO_C" >&6 5677 5677 else … … 5683 5683 cat >>conftest.$ac_ext <<_ACEOF 5684 5684 /* end confdefs.h. */ 5685 $ac_includes_default 5685 5686 #include <readline/readline.h> 5687 5688 5686 5689 int 5687 5690 main () 5688 5691 { 5689 #ifndef optreset5690 char *p = (char *) optreset;5692 #ifndef rl_completion_display_matches_hook 5693 char *p = (char *) rl_completion_display_matches_hook; 5691 5694 #endif 5692 5695 … … 5707 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 5711 (exit $ac_status); }; }; then 5709 ac_cv_have_decl_ optreset=yes5712 ac_cv_have_decl_rl_completion_display_matches_hook=yes 5710 5713 else 5711 5714 echo "$as_me: failed program was:" >&5 5712 5715 sed 's/^/| /' conftest.$ac_ext >&5 5713 5716 5714 ac_cv_have_decl_ optreset=no5717 ac_cv_have_decl_rl_completion_display_matches_hook=no 5715 5718 fi 5716 5719 rm -f conftest.$ac_objext conftest.$ac_ext 5717 5720 fi 5718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ optreset" >&55719 echo "${ECHO_T}$ac_cv_have_decl_ optreset" >&65720 if test $ac_cv_have_decl_ optreset= yes; then5721 echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_completion_display_matches_hook" >&5 5722 echo "${ECHO_T}$ac_cv_have_decl_rl_completion_display_matches_hook" >&6 5723 if test $ac_cv_have_decl_rl_completion_display_matches_hook = yes; then 5721 5724 5722 5725 cat >>confdefs.h <<_ACEOF 5723 #define HAVE_DECL_ OPTRESET15726 #define HAVE_DECL_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1 5724 5727 _ACEOF 5725 5728 … … 5727 5730 else 5728 5731 cat >>confdefs.h <<_ACEOF 5729 #define HAVE_DECL_OPTRESET 0 5730 _ACEOF 5731 5732 5733 fi 5732 #define HAVE_DECL_RL_COMPLETION_DISPLAY_MATCHES_HOOK 0 5733 _ACEOF 5734 5735 5736 fi 5737 5734 5738 5735 5739 wire/trunk/configure.in
r1680 r1696 125 125 126 126 127 # Check for the OpenSSL ssl library 128 AC_CHECK_HEADERS([openssl/ssl.h], [ 129 AC_CHECK_LIB([ssl], [main], [ 130 LIBS="$LIBS -lssl" 131 ], [ 132 WR_MSG_LIB_ERROR([OpenSSL]) 133 ]) 134 ], [ 135 WR_MSG_LIB_ERROR([OpenSSL]) 136 ]) 137 138 127 139 # Check for the OpenSSL crypto library 128 140 AC_CHECK_HEADERS([openssl/sha.h], [ 129 141 AC_CHECK_LIB([crypto], [main], [ 130 142 LIBS="$LIBS -lcrypto" 131 ], [132 WR_MSG_LIB_ERROR([OpenSSL])133 ])134 ], [135 WR_MSG_LIB_ERROR([OpenSSL])136 ])137 138 139 # Check for the OpenSSL ssl library140 AC_CHECK_HEADERS([openssl/ssl.h], [141 AC_CHECK_LIB([ssl], [main], [142 LIBS="$LIBS -lssl"143 143 ], [ 144 144 WR_MSG_LIB_ERROR([OpenSSL]) … … 260 260 # Checks for typedefs, structures, and compiler characteristics 261 261 262 AC_CHECK_DECLS([optreset]) 262 AC_CHECK_DECLS([rl_completion_display_matches_hook], [], [], [ 263 #include <readline/readline.h> 264 ]) 265 263 266 AC_SYS_LARGEFILE 264 267 wire/trunk/wire/term.c
r1675 r1696 38 38 #include <errno.h> 39 39 40 #ifdef HAVE_TERM_H 41 #include <term.h> 42 #endif 43 40 44 #ifdef HAVE_TERMCAP_H 41 45 #include <termcap.h> … … 426 430 427 431 rl_attempted_completion_function = wr_rl_completion_function; 432 #if HAVE_DECL_RL_COMPLETION_DISPLAY_MATCHES_HOOK 428 433 rl_completion_display_matches_hook = wr_rl_completion_display_matches; 434 #endif 429 435 rl_filename_quoting_function = wr_rl_filename_quoting_function; 430 436 rl_filename_dequoting_function = wr_rl_filename_dequoting_function;
