summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7756e6b9..cb003036 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,6 +221,7 @@ AC_LIBTOOL_WIN32_DLL
221AC_PROG_LIBTOOL 221AC_PROG_LIBTOOL
222 222
223WIN32=no 223WIN32=no
224MACH=no
224AC_CANONICAL_HOST 225AC_CANONICAL_HOST
225case $host_os in 226case $host_os in
226 *mingw*) 227 *mingw*)
@@ -236,6 +237,9 @@ case $host_os in
236 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 237 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
237 ADD_NACL_OBJECTS_TO_PKGCONFIG="no" 238 ADD_NACL_OBJECTS_TO_PKGCONFIG="no"
238 ;; 239 ;;
240 darwin*)
241 MACH=yes
242 ;;
239esac 243esac
240AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") 244AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
241 245
@@ -388,7 +392,7 @@ AC_C_BIGENDIAN
388# Checks for library functions. 392# Checks for library functions.
389AC_FUNC_FORK 393AC_FUNC_FORK
390AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) 394AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
391if test "x$WIN32" != "xyes"; then 395if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes"); then
392 AC_CHECK_LIB(rt, clock_gettime, 396 AC_CHECK_LIB(rt, clock_gettime,
393 [ 397 [
394 RT_LIBS="-lrt" 398 RT_LIBS="-lrt"