[Groonga-commit] groonga/groonga [master] don't check pthread.h on Windows.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 2月 16日 (水) 01:11:54 JST


Kouhei Sutou	2011-02-15 16:11:54 +0000 (Tue, 15 Feb 2011)

  New Revision: fdbf3fb216c2fe38b5f0f43e4756e5c88a3a1b2c

  Log:
    don't check pthread.h on Windows.

  Modified files:
    configure.ac

  Modified: configure.ac (+2 -1)
===================================================================
--- configure.ac    2011-02-15 11:30:00 +0000 (f1a8abe)
+++ configure.ac    2011-02-15 16:11:54 +0000 (1bc30fd)
@@ -145,7 +145,7 @@ AC_CONFIG_FILES([Makefile
                  test/benchmark/lib/Makefile
                 ])
 
-AC_CHECK_HEADERS(sys/mman.h sys/time.h sys/timeb.h sys/param.h sys/types.h pthread.h sys/resource.h)
+AC_CHECK_HEADERS(sys/mman.h sys/time.h sys/timeb.h sys/param.h sys/types.h sys/resource.h)
 AC_CHECK_HEADERS(netdb.h sys/wait.h sys/socket.h netinet/in.h netinet/tcp.h)
 AC_CHECK_HEADERS(ucontext.h signal.h errno.h execinfo.h sys/sysctl.h)
 AC_CHECK_HEADERS(time.h)
@@ -203,6 +203,7 @@ AC_DEFINE_UNQUOTED(GRN_DEFAULT_MATCH_ESCALATION_THRESHOLD, $GRN_DEFAULT_MATCH_ES
 
 AC_CHECK_LIB(m, log, [M_LIBS="-lm"], [AC_MSG_ERROR("No libm found")])
 if test "$os_win32" != "yes"; then
+  AC_CHECK_HEADERS(pthread.h)
   AC_CHECK_LIB(pthread, pthread_mutex_init,
                [PTHREAD_LIBS="-lpthread"],
                [AC_MSG_ERROR("No libpthread found")])




Groonga-commit メーリングリストの案内
Back to archive index