mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 23:29:41 +02:00
Add mlock check to Makefile and cmake builds
This commit is contained in:
parent
db574f752b
commit
2ea8c8baa6
@ -165,6 +165,7 @@ check_symbol_exists( lrintf "math.h" HAVE_LRINTF )
|
||||
check_symbol_exists( lround "math.h" HAVE_LROUND )
|
||||
check_symbol_exists( lstat "sys/stat.h" HAVE_LSTAT )
|
||||
check_symbol_exists( memcpy "string.h" HAVE_MEMCPY )
|
||||
check_symbol_exists( mlock "sys/mman.h" HAVE_MLOCK )
|
||||
check_symbol_exists( pipe "unistd.h" HAVE_PIPE )
|
||||
check_symbol_exists( posix_fadvise "fcntl.h" HAVE_POSIX_FADVISE )
|
||||
check_symbol_exists( posix_memalign "stdlib.h" HAVE_POSIX_MEMALIGN )
|
||||
|
20
configure
vendored
20
configure
vendored
@ -633,6 +633,7 @@ ac_includes_default="\
|
||||
ac_default_prefix=/usr/local
|
||||
ac_header_list=
|
||||
enable_option_checking=no
|
||||
ac_func_list=
|
||||
ac_subst_vars='am__EXEEXT_FALSE
|
||||
am__EXEEXT_TRUE
|
||||
LTLIBOBJS
|
||||
@ -2806,6 +2807,7 @@ fi
|
||||
gt_needs="$gt_needs "
|
||||
as_fn_append ac_header_list " alloca.h"
|
||||
as_fn_append ac_header_list " libudev.h"
|
||||
as_fn_append ac_func_list " mlock"
|
||||
# Check that the precious variables saved in the cache have kept the same
|
||||
# value.
|
||||
ac_cache_corrupted=false
|
||||
@ -24194,6 +24196,24 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ac_func in $ac_func_list
|
||||
do :
|
||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if [ "$use_ladspa" = "yes" ] ; then
|
||||
|
||||
$as_echo "#define USE_LADSPA 1" >>confdefs.h
|
||||
|
@ -680,6 +680,8 @@ dnl Check for lrint/lrintf
|
||||
AC_C99_FUNC_LRINT
|
||||
AC_C99_FUNC_LRINTF
|
||||
|
||||
dnl Check for memory locking
|
||||
AC_CHECK_FUNCS_ONCE(mlock)
|
||||
|
||||
if [[ "$use_ladspa" = "yes" ]] ; then
|
||||
AC_DEFINE(USE_LADSPA, 1,
|
||||
|
@ -65,6 +65,9 @@
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the `mlock' function. */
|
||||
#undef HAVE_MLOCK
|
||||
|
||||
/* Define to 1 if you have the `nanosleep' function. */
|
||||
#undef HAVE_NANOSLEEP
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user