Detect the presence of <pthread.h>, and add a HAVE_PTHREAD_H
variable in defs.mk.
This commit is contained in:
parent
e4189833c9
commit
c2497c0d32
@ -1,4 +1,4 @@
|
||||
# $NetBSD: configure.ac,v 1.72 2011/08/14 20:20:59 apb Exp $
|
||||
# $NetBSD: configure.ac,v 1.73 2011/08/14 20:22:42 apb Exp $
|
||||
#
|
||||
# Autoconf definition file for libnbcompat.
|
||||
#
|
||||
@ -79,7 +79,7 @@ AC_CHECK_HEADERS(sys/ioctl.h sys/mman.h sys/param.h \
|
||||
# Find headers that may not be available.
|
||||
AC_HEADER_DIRENT
|
||||
AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \
|
||||
getopt.h features.h malloc.h sys/poll.h stddef.h)
|
||||
getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h)
|
||||
AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
|
||||
sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \
|
||||
stdint.h util.h resolv.h arpa/nameser.h,,
|
||||
@ -230,4 +230,7 @@ main(void)
|
||||
)
|
||||
])
|
||||
|
||||
# Variables substituted via @VARNAME@ in defs.mk.in
|
||||
AC_SUBST(HAVE_PTHREAD_H, $ac_cv_header_pthread_h)
|
||||
|
||||
AC_OUTPUT
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: defs.mk.in,v 1.9 2004/06/20 22:20:15 jmc Exp $
|
||||
# $NetBSD: defs.mk.in,v 1.10 2011/08/14 20:22:42 apb Exp $
|
||||
|
||||
COMPATOBJ:= ${.PARSEDIR}
|
||||
HOSTEXEEXT= @EXEEXT@
|
||||
@ -18,3 +18,5 @@ HOST_CPPFLAGS+= -I${COMPATOBJ} -I${COMPATOBJ}/include \
|
||||
|
||||
DPADD+= ${COMPATOBJ}/libnbcompat.a
|
||||
LDADD+= -L${COMPATOBJ} -lnbcompat @LIBS@
|
||||
|
||||
HAVE_PTHREAD_H= @HAVE_PTHREAD_H@
|
||||
|
Loading…
Reference in New Issue
Block a user