diff options
author | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-29 19:14:43 +0000 |
---|---|---|
committer | atmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-29 19:14:43 +0000 |
commit | 376f6d2eebba4ec72512d15a15daf05ac030e707 (patch) | |
tree | c167eabb74efb87a02536cfd4c7488bb886bd4b0 | |
parent | 6d73e64b3d2dc2d350d0e8f10ae05618a47a742b (diff) | |
download | mpv-376f6d2eebba4ec72512d15a15daf05ac030e707.tar.bz2 mpv-376f6d2eebba4ec72512d15a15daf05ac030e707.tar.xz |
Added simple libcss autodetect.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@662 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -111,6 +111,7 @@ params: --with-win32libdir=DIR windows codec files --with-csslibdir=DIR directory contains libcss.so shared library --with-cssincdir=DIR directory contains libcss header file (css.h) + (--with-css* only needed, if libCSS autodetect fails) --size-x=SIZE default screen width --size-y=SIZE default screen height @@ -415,6 +416,33 @@ if $_cc $TMPC -o $TMPO -L/usr/lib/ -L/usr/local/lib/ -lSDL -lpthread &> /dev/nul fi fi +# Atmosfear: added libcss autodetect +_css=no +if test -e "/usr/local/lib/libcss.so" ; then + _csslibdir="/usr/local/lib/" + if test -e "/usr/local/include/css.h" ; then + _cssincdir="/usr/local/include" + _css=yes + else + if test -e "/usr/include/css.h" ; then + _cssincdir="/usr/include/" + _css=yes + fi + fi +fi +if test -e "/usr/lib/libcss.so" ; then + _csslibdir="/usr/lib/" + if test -e "/usr/include/css.h" ; then + _cssincdir="/usr/include/" + _css=yes + else + if test -e "/usr/local/include/css.h" ; then + _cssincdir="/usr/local/include" + _css=yes + fi + fi +fi + _termcap=no $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |