fi
])
if test $ol_cv_berkeley_db2 = yes ; then
- AC_DEFINE(HAVE_BERKELEY_DB2,1)
+ AC_DEFINE(HAVE_BERKELEY_DB2,1, [define if Berkeley DBv2 is available])
fi
])dnl
dnl
fi
])
if test $ol_cv_berkeley_db = yes ; then
- AC_DEFINE(HAVE_BERKELEY_DB,1)
+ AC_DEFINE(HAVE_BERKELEY_DB,1, [define if Berkeley DB is available])
fi
])dnl
dnl
fi
])
if test $ol_cv_gdbm = yes ; then
- AC_DEFINE(HAVE_GDBM,1)
+ AC_DEFINE(HAVE_GDBM,1, [define if GNU DBM is available])
fi
])dnl
dnl
fi
])
if test $ol_cv_ndbm = yes ; then
- AC_DEFINE(HAVE_NDBM,1)
+ AC_DEFINE(HAVE_NDBM,1, [define if NDBM is available])
fi
])dnl
dnl
[ol_cv_c_upper_lower=safe])])
AC_MSG_RESULT($ol_cv_c_upper_lower)
if test $ol_cv_c_upper_lower != no ; then
- AC_DEFINE(C_UPPER_LOWER,1)
+ AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
fi
])
# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
if test $ol_cv_dcl_sys_errlist = no ; then
- AC_DEFINE(DECL_SYS_ERRLIST,1)
+ AC_DEFINE(DECL_SYS_ERRLIST,1,
+ [define if sys_errlist is declared in stdio.h or errno.h])
AC_MSG_CHECKING([existence of sys_errlist])
AC_CACHE_VAL(ol_cv_have_sys_errlist,[
AC_TRY_LINK([#include <errno.h>],
if test $ol_cv_c_volatile = yes; then
:
else
- AC_DEFINE(volatile, )
+ AC_DEFINE(volatile,)
fi
])dnl
fi
])
if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
- AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs)
+ AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs,
+ [set to the number of arguments ctime_r() expects])
fi
])dnl
dnl --------------------------------------------------------------------
ol_cv_func_ctime_r_type="int", ol_cv_func_ctime_r_type="charp")
])
if test $ol_cv_func_ctime_r_type = "int" ; then
- AC_DEFINE_UNQUOTED(CTIME_R_RETURNS_INT, 1)
+ AC_DEFINE(CTIME_R_RETURNS_INT,1, [define if ctime_r() returns int])
fi
])dnl
dnl ====================================================================
fi
])
if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
- AC_DEFINE_UNQUOTED(GETHOSTBYNAME_R_NARGS, $ol_cv_func_gethostbyname_r_nargs)
+ AC_DEFINE_UNQUOTED(GETHOSTBYNAME_R_NARGS,
+ $ol_cv_func_gethostbyname_r_nargs,
+ [set to the number of arguments gethostbyname_r() expects])
fi
])dnl
dnl check no of arguments for gethostbyaddr_r
fi
])
if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
- AC_DEFINE_UNQUOTED(GETHOSTBYADDR_R_NARGS, $ol_cv_func_gethostbyaddr_r_nargs)
+ AC_DEFINE_UNQUOTED(GETHOSTBYADDR_R_NARGS,
+ $ol_cv_func_gethostbyaddr_r_nargs,
+ [set to the number of arguments gethostbyaddr_r() expects])
fi
])dnl
AC_CHECK_HEADERS(ssl.h)
if test $ac_cv_header_ssl_h = yes ; then
- AC_CHECK_LIB( ssl, SSLeay_add_ssl_algorithms,
- [have_ssleay=yes], [have_ssleay=no], [-lcrypto])
+ AC_CHECK_LIB(ssl, SSLeay_add_ssl_algorithms,
+ [have_ssleay=yes
+ need_rsaref=no],
+ [have_ssleay=no],
+ [-lcrypto])
if test $have_ssleay = no ; then
- AC_CHECK_LIB( ssl, ssl3_accept,
- [have_ssleay=yes], [have_ssleay=no], [-lcrypto -lRSAglue -lrsaref])
+ AC_CHECK_LIB(ssl, ssl3_accept,
+ [have_ssleay=yes
+ need_rsaref=yes], [have_ssleay=no],
+ [-lcrypto -lRSAglue -lrsaref])
fi
if test $have_ssleay = yes ; then
ol_with_tls=found
ol_link_tls=yes
- AC_DEFINE( HAVE_SSLEAY, 1,
- [define if you have SSLeay] )
+ AC_DEFINE(HAVE_SSLEAY, 1,
+ [define if you have SSLeay or OpenSSL])
- TLS_LIBS="-lssl -lcrypto"
+ if test $need_rsaref = yes; then
+ TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
+ else
+ TLS_LIBS="-lssl -lcrypto"
+ fi
fi
fi
fi
if test $ol_link_tls = yes ; then
- AC_DEFINE( HAVE_TLS, 1, [define if you have TLS] )
+ AC_DEFINE(HAVE_TLS, 1, [define if you have TLS])
fi
ol_link_threads=no