diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 15:54:43 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 15:54:43 +0000 |
commit | 2d24dd64ac1495a29f3d8093aedd4f6c343cbc1b (patch) | |
tree | 2b7df37e586906eee293477a61e5e7f6e0bc9010 /configure | |
parent | 2d2c807b6d2d90bd6e256f2860e98f919b3795c1 (diff) |
added shm detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3005 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -671,6 +671,7 @@ _tdfxfb=no _largefiles=no _vo2=no _language=en +_shm=auto for ac_option do @@ -767,6 +768,8 @@ for ac_option do --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 @@ else fi echores "$_dl" + echocheck "pthread" cat > $TMPC << EOF #include <pthread.h> @@ -1131,6 +1135,20 @@ fi 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 @@ $_def_kstat /* 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 |