Changeset 3057 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jan 13, 2010 1:09:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r2973 r3057 147 147 AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 148 148 AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)],[], 149 [#if PJ_HAS_NETINET_IN_SYSTM_H 149 [#if PJ_HAS_SYS_TYPES_H 150 # include <sys/types.h> 151 #endif 152 #if PJ_HAS_NETINET_IN_SYSTM_H 150 153 # include <netinet/in_systm.h> 154 #endif 155 #if PJ_HAS_NETINET_IN_H 156 # include <netinet/in.h> 151 157 #endif 152 158 ]) … … 181 187 AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 182 188 AC_CHECK_HEADER(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)],[], 183 [#if PJ_HAS_SYS_SOCKET_H 189 [#if PJ_HAS_SYS_TYPES_H 190 # include <sys/types.h> 191 #endif 192 #if PJ_HAS_SYS_SOCKET_H 193 184 194 # include <sys/socket.h> 185 195 #endif 186 196 ]) 187 188 197 AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 189 198 AC_DEFINE_UNQUOTED(PJ_OS_NAME,["$target"]) … … 257 266 dnl # Determine if socklen_t is available 258 267 AC_MSG_CHECKING([if socklen_t is available]) 259 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], 268 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 269 #include <sys/socket.h>]], 260 270 [socklen_t xxx = 0;])], 261 271 [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) … … 755 765 AC_SUBST(libcrypto_present) 756 766 AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 767 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 757 768 AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) 758 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"])759 769 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 760 770 AC_MSG_RESULT([OpenSSL library found, SSL support enabled])
Note: See TracChangeset
for help on using the changeset viewer.