diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-03 17:13:08 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-03 17:13:08 +0000 |
commit | 4e5d0d582558f8cd4877b0113eb2fae4615d0dca (patch) | |
tree | 7141825b8dac307083c460a282f5043983a42d83 /configure | |
parent | eb9da7e3d79f92c35ce505b74269a2d0974578a0 (diff) | |
download | mpv-4e5d0d582558f8cd4877b0113eb2fae4615d0dca.tar.bz2 mpv-4e5d0d582558f8cd4877b0113eb2fae4615d0dca.tar.xz |
Enable dvdkit on solaris
solaris has iconv() in libc.so, a separate libiconv.so library does not
exist. Only add a -liconv library when we were succesful compiling a
test program with the -liconv option.
--enable-debug does not work on solaris, because test "-g" in configure
script fails with a test error message "test: argument expected". Use
string comparision to test for a non empty $_debug / $_profile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7255 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3069,7 +3069,7 @@ fi echocheck "DVD support (libmpdvdkit)" if test "$_dvdkit" = auto ; then _dvdkit=no - if linux || freebsd || netbsd || darwin || cygwin || openbsd; then + if linux || freebsd || netbsd || darwin || cygwin || openbsd || sunos; then test -f "./libmpdvdkit2/Makefile" && _dvdkit=yes test -f "./libmpdvdkit/Makefile" && _dvdkit=yes fi @@ -3623,13 +3623,13 @@ EOF _iconv=no if cc_check -lm -liconv ; then _iconv=yes + _ld_iconv='-liconv' else cc_check -lm && _iconv=yes fi fi if test "$_iconv" = yes ; then _def_iconv='#define USE_ICONV 1' - linux || _ld_iconv='-liconv' else _def_iconv='#undef USE_ICONV' fi @@ -4124,7 +4124,7 @@ fi # Checking for CFLAGS _stripbinaries=yes -if test "$_profile" || test "$_debug" ; then +if test "$_profile" != "" || test "$_debug" != "" ; then CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" _stripbinaries=no elif test -z "$CFLAGS" ; then @@ -4215,7 +4215,7 @@ if netbsd ; then fi _def_debug='#undef MP_DEBUG' -test "$_debug" && _def_debug='#define MP_DEBUG 1' +test "$_debug" != "" && _def_debug='#define MP_DEBUG 1' _def_linux='#undef TARGET_LINUX' linux && _def_linux='#define TARGET_LINUX 1' |