summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-19 17:15:35 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-19 17:15:35 +0000
commitca3340782d2d004dc52e30ca2f958d48f1bcf0e4 (patch)
tree51ebe9671ed07d6e68e7aa20558ea041451b97ca /configure
parent601e6288fb564f643352875783affdc70843e9c1 (diff)
downloadmpv-ca3340782d2d004dc52e30ca2f958d48f1bcf0e4.tar.bz2
mpv-ca3340782d2d004dc52e30ca2f958d48f1bcf0e4.tar.xz
fixed DPMS and pthread detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3011 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index b6cd31592a..0980abf8ca 100755
--- a/configure
+++ b/configure
@@ -1092,12 +1092,12 @@ cat > $TMPC << EOF
#include <pthread.h>
int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; }
EOF
-if cc_check -lpthread ; then
+if cc_check ; then # QNX
+ _ld_pthread=''
+elif cc_check -lpthread ; then
_ld_pthread='-lpthread'
elif cc_check -pthread ; then
_ld_pthread='-pthread'
-elif cc_check ; then # QNX
- _ld_pthread=''
else
die "Lib pthread not found."
fi
@@ -1292,7 +1292,9 @@ if test "$_x11" = yes ; then
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/dpms.h>
-int main(void) { return 0; }
+int main(void) {
+ (void) DPMSQueryExtension(0, 0, 0);
+}
EOF
cc_check $_inc_x11 $_ld_x11 -lXdpms && _xdpms3=yes
fi