Detect prctl availability when configuring.
git-svn-id: http://voip.null.ro/svn/yate@2730 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
134872a9f8
commit
f99885ef26
14
configure.in
14
configure.in
|
@ -93,6 +93,20 @@ AC_HEADER_TIME
|
|||
AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS([malloc gettimeofday inet_ntoa memmove strerror], , [AC_MSG_ERROR([This function is required.])])
|
||||
|
||||
HAVE_PRCTL=""
|
||||
AC_MSG_CHECKING([for prctl])
|
||||
have_prctl="no"
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/prctl.h>
|
||||
],[
|
||||
prctl(1,2,3,4,5);
|
||||
],have_prctl="yes")
|
||||
AC_MSG_RESULT([$have_prctl])
|
||||
if [[ "$have_prctl" = "yes" ]]; then
|
||||
HAVE_PRCTL="-DHAVE_PRCTL"
|
||||
fi
|
||||
AC_SUBST(HAVE_PRCTL)
|
||||
|
||||
AC_CACHE_SAVE
|
||||
|
||||
SAVE_LIBS="$LIBS"
|
||||
|
|
|
@ -83,7 +83,7 @@ strip: all
|
|||
-strip --strip-debug --discard-locals ../$(YLIB)
|
||||
|
||||
Engine.o: @srcdir@/Engine.cpp $(MKDEPS) $(EINC) ../yateversn.h ../yatepaths.h
|
||||
$(COMPILE) @FDSIZE_HACK@ -c $<
|
||||
$(COMPILE) @FDSIZE_HACK@ @HAVE_PRCTL@ -c $<
|
||||
|
||||
Channel.o: @srcdir@/Channel.cpp $(MKDEPS) $(PINC)
|
||||
$(COMPILE) -c $<
|
||||
|
@ -101,7 +101,7 @@ Mutex.o: @srcdir@/Mutex.cpp $(MKDEPS) $(CINC)
|
|||
$(COMPILE) @MUTEX_HACK@ -c $<
|
||||
|
||||
Thread.o: @srcdir@/Thread.cpp $(MKDEPS) $(CINC)
|
||||
$(COMPILE) @THREAD_KILL@ -c $<
|
||||
$(COMPILE) @THREAD_KILL@ @HAVE_PRCTL@ -c $<
|
||||
|
||||
Client.o: @srcdir@/Client.cpp $(MKDEPS) $(CLINC)
|
||||
$(COMPILE) -c $<
|
||||
|
|
Loading…
Reference in New Issue