llvm.org GIT mirror llvm / f8e9f7c
Fix PR1606: The AC_CHECK_HEADER macro was used instead of AC_CHECK_HEADERS. The former does not automatically add a #define to the configure variables while the latter does. Consequently, the HAVE_PTHREAD_H symbol was not defined which caused the Mutex.cpp file to compile to an empty implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41137 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
688688
689689 AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])
690690 AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h unistd.h utime.h])
691 AC_CHECK_HEADERS([windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h])
691 AC_CHECK_HEADERS([windows.h])
692 AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h])
692693 AC_CHECK_HEADERS([sys/types.h malloc/malloc.h mach/mach.h])
693694 if test "$ENABLE_THREADS" -eq 1 ; then
694 AC_CHECK_HEADER(pthread.h,
695 AC_CHECK_HEADERS(pthread.h,
695696 AC_SUBST(HAVE_PTHREAD, 1),
696697 AC_SUBST(HAVE_PTHREAD, 0))
697698 else
280280
281281 /* Define to have the %a format string */
282282 #undef HAVE_PRINTF_A
283
284 /* Define to 1 if you have the header file. */
285 #undef HAVE_PTHREAD_H
283286
284287 /* Have pthread_mutex_lock */
285288 #undef HAVE_PTHREAD_MUTEX_LOCK