mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
a4e7bf3a89
Make MODULE handling a bit more like BINARY, LIBRARY and SUBSYSTEM Add some more PUBLIC_HEADERS (This used to be commit 875eb8f4cc658e6aebab070029fd499a726ad520)
20 lines
756 B
Plaintext
20 lines
756 B
Plaintext
AC_CACHE_CHECK([for broken readdir],samba_cv_HAVE_BROKEN_READDIR,[
|
|
AC_TRY_RUN([#include "${srcdir-.}/build/tests/os2_delete.c"],
|
|
[samba_cv_HAVE_BROKEN_READDIR=no],
|
|
[samba_cv_HAVE_BROKEN_READDIR=yes],
|
|
[samba_cv_HAVE_BROKEN_READDIR="assuming not"])])
|
|
|
|
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
|
|
AC_CACHE_CHECK([for replacing readdir],samba_cv_REPLACE_READDIR,[
|
|
AC_TRY_RUN([
|
|
#include "${srcdir-.}/lib/replace/repdir/repdir.c"
|
|
#include "${srcdir-.}/build/tests/os2_delete.c"],
|
|
samba_cv_REPLACE_READDIR=yes,samba_cv_REPLACE_READDIR=no)])
|
|
fi
|
|
|
|
SMB_ENABLE(REPLACE_READDIR, NO)
|
|
if test x"$samba_cv_REPLACE_READDIR" = x"yes"; then
|
|
AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
|
|
SMB_ENABLE(REPLACE_READDIR, YES)
|
|
fi
|