[Box Backup-dev] COMMIT r256 - box/trunk
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Tue, 20 Dec 2005 23:34:10 +0000 (GMT)
Author: martin
Date: 2005-12-20 23:34:09 +0000 (Tue, 20 Dec 2005)
New Revision: 256
Modified:
box/trunk/configure.ac
Log:
Fixed up configure.ac after win32 changes
Modified: box/trunk/configure.ac
===================================================================
--- box/trunk/configure.ac 2005-12-20 22:59:29 UTC (rev 255)
+++ box/trunk/configure.ac 2005-12-20 23:34:09 UTC (rev 256)
@@ -8,7 +8,6 @@
touch install-sh
AC_CANONICAL_SYSTEM
-# echo "Build target OS: '$target_os'"
test -s install-sh || rm install-sh
### Checks for programs.
@@ -30,11 +29,11 @@
### Checks for libraries.
+
if test "$target_os" != "mingw32" -a "$target_os" != "winnt"; then
-AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes],
- [AC_MSG_ERROR([[Cannot find a short sleep function (nanosleep)]])])
+ AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes],
+ [AC_MSG_ERROR([[Cannot find a short sleep function (nanosleep)]])])
fi
-
AC_CHECK_LIB([z], [zlibVersion],, [AC_MSG_ERROR([[Cannot find zlib]])])
AX_CHECK_BDB_V1
VL_LIB_READLINE
@@ -95,12 +94,14 @@
AC_SYS_LARGEFILE
AX_CHECK_LLONG_MINMAX
AX_CHECK_DEFINE_PRAGMA
-
if test "$target_os" != "mingw32"; then
-AX_RANDOM_DEVICE
+ AX_RANDOM_DEVICE
fi
-
-AX_CHECK_MOUNT_POINT([],[])
+AX_CHECK_MOUNT_POINT(,[
+ if test "$target_os" != "mingw32" -a "$target_os" != "winnt"; then
+ AC_MSG_ERROR([[cannot work out how to discover mount points on your platform]])
+ fi
+ ])
AX_CHECK_MALLOC_WORKAROUND
@@ -134,6 +135,13 @@
AC_CHECK_FUNCS([flock])
AC_CHECK_DECLS([O_EXLOCK],,, [[#include <fcntl.h>]])
AC_CHECK_DECLS([F_SETLK],,, [[#include <fcntl.h>]])
+if test "x$ac_cv_func_flock" != "xyes" && \
+ test "x$ac_cv_have_decl_O_EXLOCK" != "xyes" && \
+ test "x$ac_cv_have_decl_F_SETLK" != "xyes" && \
+ test "$target_os" != "mingw32" -a "$target_os" != "winnt"
+then
+ AC_MSG_ERROR([[cannot work out how to do file locking on your platform]])
+fi
## Get tmpdir
temp_directory_name="/tmp"
@@ -148,7 +156,7 @@
[static-bin],
[AC_HELP_STRING([--enable-static-bin], [Link binaries with static libraries])])
if test "x$enable_static_bin" = "xyes"; then
- AC_CHECK_LIB([ssl],[SSL_read],[],[],[crypto])
+ AC_CHECK_LIB([ssl],[SSL_read],,, [crypto])
LIBS="-Wl,-Bstatic $LIBS -Wl,-Bdynamic"
fi