[MPlayer-dev-eng] iconv & FreeBSD (patch)
Bohdan Horst
nexus at hoth.amu.edu.pl
Wed Oct 10 22:31:34 CEST 2001
patch (proposal) for support iconv with FreeBSD
(included as attach)
best regards
--
/ irl:Bohdan 'Nexus' Horst | mailto:nexus at irc.pl | irc:Nexus \
{---------------------------^----------v----------^------------}
\ http://www.physd.amu.edu.pl/~nexus/ | Instytut Fizyki UAM /
-------------- next part --------------
--- configure Wed Oct 10 18:34:37 2001
+++ configure.new Wed Oct 10 22:14:26 2001
@@ -538,6 +538,7 @@
_xvlib=
_x11lib=
_xineramalib=
+_iconvlib=
_select='#define HAVE_AUDIO_SELECT'
@@ -937,8 +938,13 @@
EOF
_iconv=yes
+if [ "$system_name" = "FreeBSD" ]; then
+$_cc $_extraincdir $TMPC -o $TMPO $_extralibdir -lm -liconv > /dev/null 2>&1 || \
+ { _iconv=no ; echo "iconv(3) function not detected!" ;}
+else
$_cc $TMPC -o $TMPO -lm > /dev/null 2>&1 || \
{ _iconv=no ; echo "iconv(3) function not detected!" ;}
+fi
cat > $TMPC << EOF
#include <GL/gl.h>
int main( void ) { return 0; }
@@ -1994,6 +2000,11 @@
CFLAGS="$CFLAGS -D_THREAD_SAFE"
fi
+if [ "$system_name" = "FreeBSD" ] && [ "$_iconv" = "#define USE_ICONV" ]; then
+_iconvlib="-liconv"
+fi
+
+
# 64 bit file offsets?
if [ "$_largefiles" = "yes" -o "$system_name" = "FreeBSD" ]; then
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
@@ -2241,7 +2252,7 @@
X11_INC=$_x11incdir
X11DIR=$_x11libdir
-X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib
+X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_iconvlib
TERMCAP_LIB=$_libtermcap
XMM_LIBS = $_xmmplibs
More information about the MPlayer-dev-eng
mailing list