@@ -712,8 +712,6 @@ MODULE_OSSAUDIODEV_FALSE
712
712
MODULE_OSSAUDIODEV_TRUE
713
713
MODULE_GRP_FALSE
714
714
MODULE_GRP_TRUE
715
- MODULE__POSIXSHMEM_FALSE
716
- MODULE__POSIXSHMEM_TRUE
717
715
MODULE_MMAP_FALSE
718
716
MODULE_MMAP_TRUE
719
717
MODULE_FCNTL_FALSE
@@ -728,6 +726,10 @@ MODULE__STATISTICS_FALSE
728
726
MODULE__STATISTICS_TRUE
729
727
MODULE_AUDIOOP_FALSE
730
728
MODULE_AUDIOOP_TRUE
729
+ MODULE__POSIXSHMEM_FALSE
730
+ MODULE__POSIXSHMEM_TRUE
731
+ MODULE__MULTIPROCESSING_FALSE
732
+ MODULE__MULTIPROCESSING_TRUE
731
733
MODULE__ZONEINFO_FALSE
732
734
MODULE__ZONEINFO_TRUE
733
735
MODULE__XXSUBINTERPRETERS_FALSE
@@ -17647,11 +17649,6 @@ done
17647
17649
17648
17650
LIBS=$LIBS_SAVE
17649
17651
17650
- # For multiprocessing module, check that sem_open
17651
- # actually works. For FreeBSD versions <= 7.2,
17652
- # the kernel module that provides POSIX semaphores
17653
- # isn't loaded by default, so an attempt to call
17654
- # sem_open results in a 'Signal 12' error.
17655
17652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
17656
17653
$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
17657
17654
if ${ac_cv_posix_semaphores_enabled+:} false; then :
@@ -17663,22 +17660,24 @@ else
17663
17660
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664
17661
/* end confdefs.h. */
17665
17662
17666
- #include <unistd.h>
17667
- #include <fcntl.h>
17668
- #include <stdio.h>
17669
- #include <semaphore.h>
17670
- #include <sys/stat.h>
17671
17663
17672
- int main(void) {
17673
- sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
17674
- if (a == SEM_FAILED) {
17675
- perror("sem_open");
17676
- return 1;
17677
- }
17678
- sem_close(a);
17679
- sem_unlink("/autoconf");
17680
- return 0;
17681
- }
17664
+ #include <unistd.h>
17665
+ #include <fcntl.h>
17666
+ #include <stdio.h>
17667
+ #include <semaphore.h>
17668
+ #include <sys/stat.h>
17669
+
17670
+ int main(void) {
17671
+ sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
17672
+ if (a == SEM_FAILED) {
17673
+ perror("sem_open");
17674
+ return 1;
17675
+ }
17676
+ sem_close(a);
17677
+ sem_unlink("/autoconf");
17678
+ return 0;
17679
+ }
17680
+
17682
17681
17683
17682
_ACEOF
17684
17683
if ac_fn_c_try_run "$LINENO"; then :
@@ -17694,14 +17693,14 @@ fi
17694
17693
fi
17695
17694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
17696
17695
$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
17697
- if test $ac_cv_posix_semaphores_enabled = no
17698
- then
17696
+ if test "x $ac_cv_posix_semaphores_enabled" = xno; then :
17697
+
17699
17698
17700
17699
$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
17701
17700
17701
+
17702
17702
fi
17703
17703
17704
- # Multiprocessing check for broken sem_getvalue
17705
17704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
17706
17705
$as_echo_n "checking for broken sem_getvalue... " >&6; }
17707
17706
if ${ac_cv_broken_sem_getvalue+:} false; then :
@@ -17713,26 +17712,28 @@ else
17713
17712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714
17713
/* end confdefs.h. */
17715
17714
17716
- #include <unistd.h>
17717
- #include <fcntl.h>
17718
- #include <stdio.h>
17719
- #include <semaphore.h>
17720
- #include <sys/stat.h>
17721
17715
17722
- int main(void){
17723
- sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
17724
- int count;
17725
- int res;
17726
- if(a==SEM_FAILED){
17727
- perror("sem_open");
17728
- return 1;
17716
+ #include <unistd.h>
17717
+ #include <fcntl.h>
17718
+ #include <stdio.h>
17719
+ #include <semaphore.h>
17720
+ #include <sys/stat.h>
17721
+
17722
+ int main(void){
17723
+ sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
17724
+ int count;
17725
+ int res;
17726
+ if(a==SEM_FAILED){
17727
+ perror("sem_open");
17728
+ return 1;
17729
+
17730
+ }
17731
+ res = sem_getvalue(a, &count);
17732
+ sem_close(a);
17733
+ sem_unlink("/autocftw");
17734
+ return res==-1 ? 1 : 0;
17735
+ }
17729
17736
17730
- }
17731
- res = sem_getvalue(a, &count);
17732
- sem_close(a);
17733
- sem_unlink("/autocftw");
17734
- return res==-1 ? 1 : 0;
17735
- }
17736
17737
17737
17738
_ACEOF
17738
17739
if ac_fn_c_try_run "$LINENO"; then :
@@ -17748,11 +17749,12 @@ fi
17748
17749
fi
17749
17750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
17750
17751
$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
17751
- if test $ac_cv_broken_sem_getvalue = yes
17752
- then
17752
+ if test "x $ac_cv_broken_sem_getvalue" = xyes; then :
17753
+
17753
17754
17754
17755
$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
17755
17756
17757
+
17756
17758
fi
17757
17759
17758
17760
ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
@@ -21262,6 +21264,54 @@ fi
21262
21264
as_fn_append MODULE_BLOCK "MODULE__ZONEINFO=yes$as_nl"
21263
21265
21264
21266
21267
+ if true; then
21268
+ MODULE__MULTIPROCESSING_TRUE=
21269
+ MODULE__MULTIPROCESSING_FALSE='#'
21270
+ else
21271
+ MODULE__MULTIPROCESSING_TRUE='#'
21272
+ MODULE__MULTIPROCESSING_FALSE=
21273
+ fi
21274
+ as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING=yes$as_nl"
21275
+ as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
21276
+
21277
+
21278
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
21279
+ $as_echo_n "checking for stdlib extension module _posixshmem... " >&6; }
21280
+ case $py_stdlib_not_available in #(
21281
+ *_posixshmem*) :
21282
+ py_cv_module__posixshmem=n/a ;; #(
21283
+ *) :
21284
+ if true; then :
21285
+ if test "$have_posix_shmem" = "yes"; then :
21286
+ py_cv_module__posixshmem=yes
21287
+ else
21288
+ py_cv_module__posixshmem=missing
21289
+ fi
21290
+ else
21291
+ py_cv_module__posixshmem=disabled
21292
+ fi
21293
+ ;;
21294
+ esac
21295
+ as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM=$py_cv_module__posixshmem$as_nl"
21296
+ if test "x$py_cv_module__posixshmem" = xyes; then :
21297
+
21298
+ as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
21299
+ as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
21300
+
21301
+ fi
21302
+ if test "$py_cv_module__posixshmem" = yes; then
21303
+ MODULE__POSIXSHMEM_TRUE=
21304
+ MODULE__POSIXSHMEM_FALSE='#'
21305
+ else
21306
+ MODULE__POSIXSHMEM_TRUE='#'
21307
+ MODULE__POSIXSHMEM_FALSE=
21308
+ fi
21309
+
21310
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
21311
+ $as_echo "$py_cv_module__posixshmem" >&6; }
21312
+
21313
+
21314
+
21265
21315
if true; then
21266
21316
MODULE_AUDIOOP_TRUE=
21267
21317
MODULE_AUDIOOP_FALSE='#'
@@ -21391,42 +21441,6 @@ fi
21391
21441
$as_echo "$py_cv_module_mmap" >&6; }
21392
21442
21393
21443
21394
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
21395
- $as_echo_n "checking for stdlib extension module _posixshmem... " >&6; }
21396
- case $py_stdlib_not_available in #(
21397
- *_posixshmem*) :
21398
- py_cv_module__posixshmem=n/a ;; #(
21399
- *) :
21400
- if true; then :
21401
- if test "$have_posix_shmem" = "yes"; then :
21402
- py_cv_module__posixshmem=yes
21403
- else
21404
- py_cv_module__posixshmem=missing
21405
- fi
21406
- else
21407
- py_cv_module__posixshmem=disabled
21408
- fi
21409
- ;;
21410
- esac
21411
- as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM=$py_cv_module__posixshmem$as_nl"
21412
- if test "x$py_cv_module__posixshmem" = xyes; then :
21413
-
21414
- as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
21415
- as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
21416
-
21417
- fi
21418
- if test "$py_cv_module__posixshmem" = yes; then
21419
- MODULE__POSIXSHMEM_TRUE=
21420
- MODULE__POSIXSHMEM_FALSE='#'
21421
- else
21422
- MODULE__POSIXSHMEM_TRUE='#'
21423
- MODULE__POSIXSHMEM_FALSE=
21424
- fi
21425
-
21426
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
21427
- $as_echo "$py_cv_module__posixshmem" >&6; }
21428
-
21429
-
21430
21444
21431
21445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
21432
21446
$as_echo_n "checking for stdlib extension module grp... " >&6; }
@@ -22984,6 +22998,14 @@ if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; th
22984
22998
as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
22985
22999
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22986
23000
fi
23001
+ if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
23002
+ as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
23003
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
23004
+ fi
23005
+ if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
23006
+ as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
23007
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
23008
+ fi
22987
23009
if test -z "${MODULE_AUDIOOP_TRUE}" && test -z "${MODULE_AUDIOOP_FALSE}"; then
22988
23010
as_fn_error $? "conditional \"MODULE_AUDIOOP\" was never defined.
22989
23011
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -23012,10 +23034,6 @@ if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
23012
23034
as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
23013
23035
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23014
23036
fi
23015
- if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
23016
- as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
23017
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
23018
- fi
23019
23037
if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
23020
23038
as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
23021
23039
Usually this means the macro was only invoked conditionally." "$LINENO" 5
0 commit comments