@@ -841,6 +841,7 @@ Optional Features:
841
841
--enable-nls[=LANGUAGES] enable Native Language Support
842
842
--disable-shared do not build shared libraries
843
843
--disable-rpath do not embed shared library search path in executables
844
+ --disable-spinlocks do not use Spinlocks
844
845
--enable-debug build with debugging symbols (-g)
845
846
--enable-depend turn on automatic dependency tracking
846
847
--enable-cassert enable assertion checks (for debugging)
@@ -869,7 +870,6 @@ Optional Packages:
869
870
--with-rendezvous build with Rendezvous support
870
871
--with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871
872
--without-readline do not use Readline
872
- --without-spinlocks do not use Spinlocks
873
873
--without-zlib do not use Zlib
874
874
--with-gnu-ld assume the C compiler uses GNU ld default=no
875
875
@@ -1746,6 +1746,34 @@ fi;
1746
1746
1747
1747
1748
1748
1749
+ #
1750
+ # Spinlocks
1751
+ #
1752
+
1753
+
1754
+ # Check whether --enable-spinlocks or --disable-spinlocks was given.
1755
+ if test "${enable_spinlocks+set}" = set; then
1756
+ enableval="$enable_spinlocks"
1757
+
1758
+ case $enableval in
1759
+ yes)
1760
+ :
1761
+ ;;
1762
+ no)
1763
+ :
1764
+ ;;
1765
+ *)
1766
+ { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1767
+ echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1768
+ { (exit 1); exit 1; }; }
1769
+ ;;
1770
+ esac
1771
+
1772
+ else
1773
+ enable_spinlocks=yes
1774
+
1775
+ fi;
1776
+
1749
1777
1750
1778
#
1751
1779
# --enable-debug adds -g to compiler flags
@@ -3494,36 +3522,6 @@ else
3494
3522
fi;
3495
3523
3496
3524
3497
- #
3498
- # Spinlocks
3499
- #
3500
-
3501
-
3502
-
3503
- # Check whether --with-spinlocks or --without-spinlocks was given.
3504
- if test "${with_spinlocks+set}" = set; then
3505
- withval="$with_spinlocks"
3506
-
3507
- case $withval in
3508
- yes)
3509
- :
3510
- ;;
3511
- no)
3512
- :
3513
- ;;
3514
- *)
3515
- { { echo "$as_me:$LINENO: error: no argument expected for --with-spinlocks option" >&5
3516
- echo "$as_me: error: no argument expected for --with-spinlocks option" >&2;}
3517
- { (exit 1); exit 1; }; }
3518
- ;;
3519
- esac
3520
-
3521
- else
3522
- with_spinlocks=yes
3523
-
3524
- fi;
3525
-
3526
-
3527
3525
#
3528
3526
# Zlib
3529
3527
#
6092
6090
6093
6091
fi
6094
6092
6095
- if test "$with_spinlocks " = yes; then
6093
+ if test "$enable_spinlocks " = yes; then
6096
6094
6097
6095
cat >>confdefs.h <<\_ACEOF
6098
6096
#define HAVE_SPINLOCKS 1
0 commit comments