diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-03 14:22:23 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-03 14:22:23 +0000 |
commit | d1aae7b241c4cc90a842371de00baca22f689300 (patch) | |
tree | 7988918ecedf595821e63a3ff41f1f471bca2100 | |
parent | f782243be675c5c6495aa2127cf5e17162c0c454 (diff) | |
download | mpv-d1aae7b241c4cc90a842371de00baca22f689300.tar.bz2 mpv-d1aae7b241c4cc90a842371de00baca22f689300.tar.xz |
- Ask 'gcc' for the name of the assembler binary used by the gcc compiler; use
that binary as the default assembler binary tested for the availability of
MMX/MMXEXT/3DNOW/... instructions
- On solaris, there are a few libraries missing, if you compile MPlayer
without SDL (with SDL, we pick up these libraries from "sdl-config --libs")
Typical problem is a missing nanosleep() from the -lrt library.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1262 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -207,7 +207,10 @@ MCONF='config.mak' # --- Check for C compiler: _cc=gcc -_as=as +_as=`gcc -print-prog-name=as` +if [ x"_$as" = x ]; then + _as=as +fi _x11=auto _x11libdir= @@ -617,6 +620,10 @@ $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 & _ggi=no $_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes +_kstat=no +$_cc $TMPC -o $TMPO -lkstat >/dev/null 2>&1 && _kstat=yes _archlibs="-lkstat $_archlibs" +$_cc $TMPC -o $TMPO -lrt >/dev/null 2>&1 && _archlibs="-lrt $_archlibs" + _binutils=no $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes @@ -990,7 +997,7 @@ done # Checking assembler (_as) compatibility... as_version=`$_as --version 2>&1 | sed -n 's/^.*assembler \([0-9.]*\).*$/\1/p'` -echo $_echo_n "Checking assembler (as) ... $as_version, $_echo_c" +echo $_echo_n "Checking assembler ($_as) ... $as_version, $_echo_c" _pref_as_version='2.9.1' ### this test disabled, see _binutils test above! --A'rpi # cat > astest.S <<EOF @@ -1218,6 +1225,12 @@ else _libtermcap='' fi +if [ "$_kstat" = "yes" ]; then + _have_kstat="#define HAVE_KSTAT 1" +else + _have_kstat="#undef HAVE_KSTAT" +fi + if [ "$_xmmp" = "yes" ]; then _xmmpaudio='#define USE_XMMP_AUDIO' _xmmplibs='-Llibxmm -lxmm' @@ -1566,6 +1579,10 @@ $_xmmpaudio $_have_soundcard_h +/* Define this if you have the kstat kernel statistics library */ +$_have_kstat + + /* LIRC (remote control, see www.lirc.org) support: */ $_lircdefs |