Mercurial > mplayer.hg
comparison configure @ 14573:3df308b43c50
Make configure check for aalib dependency on libX11 if it fails without.
Necessary to link against aalib from the OpenBSD ports tree.
patch by Ian Lindsay <iml at formicary dot org>
author | diego |
---|---|
date | Sat, 22 Jan 2005 14:09:17 +0000 |
parents | f38a2658bdd4 |
children | aacd81655870 |
comparison
equal
deleted
inserted
replaced
14572:cfe2bbf96000 | 14573:3df308b43c50 |
---|---|
3718 cat > $TMPC << EOF | 3718 cat > $TMPC << EOF |
3719 #include <aalib.h> | 3719 #include <aalib.h> |
3720 int main(void) { (void) aa_init(0, 0, 0); return 0; } | 3720 int main(void) { (void) aa_init(0, 0, 0); return 0; } |
3721 EOF | 3721 EOF |
3722 _aa=no | 3722 _aa=no |
3723 cc_check -laa && _aa=yes | 3723 if cc_check -laa ; then |
3724 _aa=yes | |
3725 _ld_aa="-laa" | |
3726 elif cc_check $_ld_x11 -laa ; then | |
3727 _aa=yes | |
3728 _ld_aa="$_ld_x11 -laa" | |
3729 fi | |
3724 fi | 3730 fi |
3725 if test "$_aa" = yes ; then | 3731 if test "$_aa" = yes ; then |
3726 _def_aa='#define HAVE_AA 1' | 3732 _def_aa='#define HAVE_AA 1' |
3727 if cygwin ; then | 3733 if cygwin ; then |
3728 _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6` | 3734 _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6` |
3729 else | |
3730 _ld_aa='-laa' | |
3731 fi | 3735 fi |
3732 _vosrc="$_vosrc vo_aa.c" | 3736 _vosrc="$_vosrc vo_aa.c" |
3733 _vomodules="aa $_vomodules" | 3737 _vomodules="aa $_vomodules" |
3734 else | 3738 else |
3735 _def_aa='#undef HAVE_AA' | 3739 _def_aa='#undef HAVE_AA' |