[Box Backup-commit] COMMIT r3147 - box/trunk/infrastructure/m4

subversion at boxbackup.org subversion at boxbackup.org
Wed Nov 14 23:47:55 GMT 2012

Author: chris
Date: 2012-11-14 23:47:55 +0000 (Wed, 14 Nov 2012)
New Revision: 3147

Use AC_SEARCH_LIBS instead of AC_CHECK_LIB to search for EVP_CipherInit_ex,
as it should already be in LIBS by this point and we don't really want to
add a duplicate if we don't need it.

also recommends the use of AC_SEARCH_LIBS instead.

Check whether we have getpeername() and sys/un.h to fix compile errors on
Windows with /dev/log fd leak test.

Modified: box/trunk/infrastructure/m4/boxbackup_tests.m4
--- box/trunk/infrastructure/m4/boxbackup_tests.m4	2012-11-14 23:45:13 UTC (rev 3146)
+++ box/trunk/infrastructure/m4/boxbackup_tests.m4	2012-11-14 23:47:55 UTC (rev 3147)
@@ -109,9 +109,9 @@
                   [Allow use of pre-0.9.7 Open SSL - NOT RECOMMENDED, read the documentation])])
-  [crypto],
-  [EVP_CipherInit_ex],, [
+  [EVP_CipherInit_ex],
+  [crypto],, [
   if test "x$enable_old_ssl" = "xyes"; then
     AC_DEFINE([HAVE_OLD_SSL], 1, [Define to 1 if SSL is pre-0.9.7])
@@ -136,8 +136,8 @@
 AC_CHECK_HEADERS([dlfcn.h fcntl.h getopt.h process.h pwd.h signal.h])
 AC_CHECK_HEADERS([syslog.h time.h cxxabi.h])
 AC_CHECK_HEADERS([netinet/in.h netinet/tcp.h])
-AC_CHECK_HEADERS([sys/file.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h])
-AC_CHECK_HEADERS([sys/uio.h sys/xattr.h])
+AC_CHECK_HEADERS([sys/file.h sys/param.h sys/socket.h sys/time.h sys/types.h])
+AC_CHECK_HEADERS([sys/uio.h sys/un.h sys/wait.h sys/xattr.h])
 AC_CHECK_HEADERS([sys/socket.h], [have_sys_socket_h=yes])
 AC_CHECK_HEADERS([winsock2.h], [have_winsock2_h=yes])
@@ -254,7 +254,7 @@
-AC_CHECK_FUNCS([getpeereid lchown setproctitle getpid gettimeofday waitpid ftruncate])
+AC_CHECK_FUNCS([getpeereid getpeername lchown setproctitle getpid gettimeofday waitpid ftruncate])
 AC_SEARCH_LIBS([setproctitle], ["bsd"])
 # NetBSD implements kqueue too differently for us to get it fixed by 0.10

More information about the Boxbackup-commit mailing list