Mercurial > mplayer.hg
comparison configure @ 3005:37c5f3dcc651
arghh, fixed shm :(
author | alex |
---|---|
date | Mon, 19 Nov 2001 16:06:33 +0000 |
parents | cb81a27b00c6 |
children | b3b423a03921 |
comparison
equal
deleted
inserted
replaced
3004:cb81a27b00c6 | 3005:37c5f3dcc651 |
---|---|
1134 fi | 1134 fi |
1135 echores "$_termcap" | 1135 echores "$_termcap" |
1136 | 1136 |
1137 | 1137 |
1138 echocheck "shm" | 1138 echocheck "shm" |
1139 cat > $TMPC << EOF | 1139 if test "$_shm" = auto ; then |
1140 _shm=no | |
1141 cat > $TMPC << EOF | |
1140 #include <sys/shm.h> | 1142 #include <sys/shm.h> |
1141 int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } | 1143 int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } |
1142 EOF | 1144 EOF |
1143 cc_check && _shm=yes | 1145 cc_check && _shm=yes |
1146 fi | |
1144 if test "$_shm" = yes ; then | 1147 if test "$_shm" = yes ; then |
1145 _def_shm='#define HAVE_SHM 1' | 1148 _def_shm='#define HAVE_SHM 1' |
1146 else | 1149 else |
1147 _def_shm='#undef HAVE_SHM' | 1150 _def_shm='#undef HAVE_SHM' |
1148 fi | 1151 fi |