forked from Imagelibrary/rtems
posix: Install <semaphore.h> only if not provided
This commit is contained in:
@@ -136,6 +136,9 @@ AC_CHECK_HEADERS([tar.h errno.h sched.h sys/cdefs.h sys/queue.h],,
|
||||
AS_IF([test -n "$rtems_missing_header"],
|
||||
AC_MSG_ERROR([Missing required header $rtems_missing_header])])
|
||||
|
||||
AC_CHECK_HEADERS([semaphore.h])
|
||||
AM_CONDITIONAL([HAVE_SEMAPHORE_H],[test x"$ac_cv_header_semaphore_h" = x"yes"])
|
||||
|
||||
## error out if libc doesn't provide stdint.h
|
||||
AS_IF([test x"${ac_cv_header_stdint_h}" != xyes],
|
||||
[AC_MSG_ERROR([Required header stdint.h not found])])
|
||||
|
||||
@@ -25,7 +25,9 @@ if HAS_PTHREADS
|
||||
# include
|
||||
include_HEADERS = include/aio.h
|
||||
include_HEADERS += include/mqueue.h
|
||||
if !HAVE_SEMAPHORE_H
|
||||
include_HEADERS += include/semaphore.h
|
||||
endif
|
||||
|
||||
# include/rtems/posix
|
||||
include_rtems_posix_HEADERS += include/rtems/posix/aio_misc.h
|
||||
|
||||
@@ -52,10 +52,11 @@ $(PROJECT_INCLUDE)/mqueue.h: include/mqueue.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mqueue.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/mqueue.h
|
||||
|
||||
if !HAVE_SEMAPHORE_H
|
||||
$(PROJECT_INCLUDE)/semaphore.h: include/semaphore.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/semaphore.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/semaphore.h
|
||||
|
||||
endif
|
||||
$(PROJECT_INCLUDE)/rtems/posix/aio_misc.h: include/rtems/posix/aio_misc.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/aio_misc.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/aio_misc.h
|
||||
|
||||
Reference in New Issue
Block a user