changeset 3004:cb81a27b00c6

added shm detection
author alex
date Mon, 19 Nov 2001 15:54:43 +0000
parents 16a593a1e6ed
children 37c5f3dcc651
files configure
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Nov 19 15:51:17 2001 +0000
+++ b/configure	Mon Nov 19 15:54:43 2001 +0000
@@ -671,6 +671,7 @@
 _largefiles=no
 _vo2=no
 _language=en
+_shm=auto
 
 
 for ac_option do
@@ -767,6 +768,8 @@
   --disable-largefiles)	_largefiles=no	;;
   --enable-vo2)		_vo2=yes	;;
   --disable-vo2)	_vo2=no		;;
+  --enable-shm)		_shm=yes	;;
+  --disable-shm)	_shm=no         ;;
 
   --enable-select)	_def_select='#define HAVE_AUDIO_SELECT'	;;
   --disable-select)	_def_select='#undef HAVE_AUDIO_SELECT'	;;
@@ -1080,6 +1083,7 @@
 fi
 echores "$_dl"
 
+
 echocheck "pthread"
 cat > $TMPC << EOF
 #include <pthread.h>
@@ -1131,6 +1135,20 @@
 echores "$_termcap"
 
 
+echocheck "shm"
+cat > $TMPC << EOF
+#include <sys/shm.h>
+int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; }
+EOF
+cc_check && _shm=yes
+if test "$_shm" = yes ; then
+  _def_shm='#define HAVE_SHM 1'
+else
+  _def_shm='#undef HAVE_SHM'
+fi
+echores "$_shm"
+
+
 echocheck "3dfx"
 if test "$_3dfx" = yes ; then
   _def_3dfx='#define HAVE_3DFX 1'
@@ -2441,6 +2459,9 @@
 /* Define this if you have zlib */
 $_def_zlib
 
+/* Define this if you have shm support */
+$_def_shm
+
 /* Define this if your system has vsscanf */
 $_def_vsscanf