changeset 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 cfe2bbf96000
children 7a3ada58992b
files configure
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Jan 22 12:49:11 2005 +0000
+++ b/configure	Sat Jan 22 14:09:17 2005 +0000
@@ -3720,14 +3720,18 @@
 int main(void) { (void) aa_init(0, 0, 0); return 0; }
 EOF
   _aa=no
-  cc_check  -laa && _aa=yes
+  if cc_check -laa ; then
+    _aa=yes
+    _ld_aa="-laa"
+  elif cc_check $_ld_x11 -laa ; then
+    _aa=yes
+    _ld_aa="$_ld_x11 -laa"
+  fi
 fi
 if test "$_aa" = yes ; then
   _def_aa='#define HAVE_AA 1'
   if cygwin ; then
     _ld_aa=`aalib-config --libs | cut -d " " -f 2,5,6`
-  else
-    _ld_aa='-laa'
   fi
   _vosrc="$_vosrc vo_aa.c"
   _vomodules="aa $_vomodules"