[MPlayer-dev-eng] [PATCH] changes iconv autodetection order

Torinthiel torinthiel at megapolis.pl
Thu Aug 19 15:36:39 CEST 2004


Currently configure when testing for iconv first tries to link with -lm
-liconv then only with -lm. IMHO the more saner way to test is first
without -liconv than with it - this way if user has stray libiconv that
is not needed to compile it won't be used. This patch (taken from PLD
linux patchset) accomplishes this.
Any comments?
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
--- MPlayer-1.0pre4/configure.orig	Fri May  7 12:07:31 2004
+++ MPlayer-1.0pre4/configure	Fri May  7 12:12:08 2004
@@ -2097,11 +2097,11 @@
 }
 EOF
   _iconv=no
-  if cc_check -lm -liconv ; then
+  if cc_check -lm ; then
+    _iconv=yes
+  elif cc_check -lm -liconv ; then
     _iconv=yes
     _ld_iconv='-liconv'
-  else
-    cc_check -lm && _iconv=yes
   fi
 fi
 if test "$_iconv" = yes ; then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040819/b1c188f5/attachment.pgp>


More information about the MPlayer-dev-eng mailing list