Changeset 1c26af817b48a27bb587541e9d1e024ab76a25cf

Show
Ignore:
Timestamp:
04/27/02 01:32:23 (6 years ago)
Author:
Johan Bilien <jobi@videolan.org>
git-committer:
Johan Bilien <jobi@videolan.org> 1019863943 +0000
git-parent:

[a48441c66ea2c3d5d53d1c0a98151662c91f694d]

git-author:
Johan Bilien <jobi@videolan.org> 1019863943 +0000
Message:

* plugins/vcd/cdrom_tools : FreeBSD 4.5 port of the vcd input.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure

    rebf1f25 r1c26af8  
    60636063 
    60646064 
     6065  if test "x${SYS}" = "xfreebsd4.5" 
     6066  then 
     6067    PLUGINS="${PLUGINS} vcd" 
     6068  fi 
     6069   
    60656070  if test "x${SYS}" = "xbsdi" 
    60666071  then 
     
    60866091 
    60876092echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 
    6088 echo "configure:6089: checking for inet_pton" >&5 
     6093echo "configure:6094: checking for inet_pton" >&5 
    60896094if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then 
    60906095  echo $ac_n "(cached) $ac_c" 1>&6 
    60916096else 
    60926097  cat > conftest.$ac_ext <<EOF 
    6093 #line 6094 "configure" 
     6098#line 6099 "configure" 
    60946099#include "confdefs.h" 
    60956100/* System header to define __stub macros and hopefully few prototypes, 
     
    61146119; return 0; } 
    61156120EOF 
    6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     6121if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    61176122  rm -rf conftest* 
    61186123  eval "ac_cv_func_inet_pton=yes" 
     
    61816186ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    61826187echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6183 echo "configure:6184: checking for $ac_hdr" >&5 
     6188echo "configure:6189: checking for $ac_hdr" >&5 
    61846189if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    61856190  echo $ac_n "(cached) $ac_c" 1>&6 
    61866191else 
    61876192  cat > conftest.$ac_ext <<EOF 
    6188 #line 6189 "configure" 
     6193#line 6194 "configure" 
    61896194#include "confdefs.h" 
    61906195#include <$ac_hdr> 
    61916196EOF 
    61926197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6193 { (eval echo configure:6194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6198{ (eval echo configure:6199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    61946199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    61956200if test -z "$ac_err"; then 
     
    62216226 
    62226227  echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6 
    6223 echo "configure:6224: checking for mad_bit_init in -lmad" >&5 
     6228echo "configure:6229: checking for mad_bit_init in -lmad" >&5 
    62246229ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'` 
    62256230if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    62296234LIBS="-lmad  $LIBS" 
    62306235cat > conftest.$ac_ext <<EOF 
    6231 #line 6232 "configure" 
     6236#line 6237 "configure" 
    62326237#include "confdefs.h" 
    62336238/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    62406245; return 0; } 
    62416246EOF 
    6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     6247if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    62436248  rm -rf conftest* 
    62446249  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    62936298  else 
    62946299    echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6 
    6295 echo "configure:6296: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5 
     6300echo "configure:6301: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5 
    62966301    real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`" 
    62976302    if test "x$real_ffmpeg_tree" = x 
     
    63316336ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    63326337echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6333 echo "configure:6334: checking for $ac_hdr" >&5 
     6338echo "configure:6339: checking for $ac_hdr" >&5 
    63346339if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    63356340  echo $ac_n "(cached) $ac_c" 1>&6 
    63366341else 
    63376342  cat > conftest.$ac_ext <<EOF 
    6338 #line 6339 "configure" 
     6343#line 6344 "configure" 
    63396344#include "confdefs.h" 
    63406345#include <$ac_hdr> 
    63416346EOF 
    63426347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6343 { (eval echo configure:6344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6348{ (eval echo configure:6349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    63446349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    63456350if test -z "$ac_err"; then 
     
    63846389ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    63856390echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6386 echo "configure:6387: checking for $ac_hdr" >&5 
     6391echo "configure:6392: checking for $ac_hdr" >&5 
    63876392if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    63886393  echo $ac_n "(cached) $ac_c" 1>&6 
    63896394else 
    63906395  cat > conftest.$ac_ext <<EOF 
    6391 #line 6392 "configure" 
     6396#line 6397 "configure" 
    63926397#include "confdefs.h" 
    63936398#include <$ac_hdr> 
    63946399EOF 
    63956400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6396 { (eval echo configure:6397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6401{ (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    63976402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    63986403if test -z "$ac_err"; then 
     
    64526457ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    64536458echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6454 echo "configure:6455: checking for $ac_hdr" >&5 
     6459echo "configure:6460: checking for $ac_hdr" >&5 
    64556460if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    64566461  echo $ac_n "(cached) $ac_c" 1>&6 
    64576462else 
    64586463  cat > conftest.$ac_ext <<EOF 
    6459 #line 6460 "configure" 
     6464#line 6465 "configure" 
    64606465#include "confdefs.h" 
    64616466#include <$ac_hdr> 
    64626467EOF 
    64636468ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6464 { (eval echo configure:6465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6469{ (eval echo configure:6470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    64656470ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    64666471if test -z "$ac_err"; then 
     
    65156520ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    65166521echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6517 echo "configure:6518: checking for $ac_hdr" >&5 
     6522echo "configure:6523: checking for $ac_hdr" >&5 
    65186523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    65196524  echo $ac_n "(cached) $ac_c" 1>&6 
    65206525else 
    65216526  cat > conftest.$ac_ext <<EOF 
    6522 #line 6523 "configure" 
     6527#line 6528 "configure" 
    65236528#include "confdefs.h" 
    65246529#include <$ac_hdr> 
    65256530EOF 
    65266531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6527 { (eval echo configure:6528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6532{ (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    65286533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    65296534if test -z "$ac_err"; then 
     
    65496554    CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext" 
    65506555    echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6 
    6551 echo "configure:6552: checking for XvSetPortAttribute in -lXv_pic" >&5 
     6556echo "configure:6557: checking for XvSetPortAttribute in -lXv_pic" >&5 
    65526557ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'` 
    65536558if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    65576562LIBS="-lXv_pic  $LIBS" 
    65586563cat > conftest.$ac_ext <<EOF 
    6559 #line 6560 "configure" 
     6564#line 6565 "configure" 
    65606565#include "confdefs.h" 
    65616566/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    65686573; return 0; } 
    65696574EOF 
    6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     6575if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    65716576  rm -rf conftest* 
    65726577  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    66266631set dummy sdl12-config; ac_word=$2 
    66276632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    6628 echo "configure:6629: checking for $ac_word" >&5 
     6633echo "configure:6634: checking for $ac_word" >&5 
    66296634if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then 
    66306635  echo $ac_n "(cached) $ac_c" 1>&6 
     
    66666671set dummy sdl11-config; ac_word=$2 
    66676672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    6668 echo "configure:6669: checking for $ac_word" >&5 
     6673echo "configure:6674: checking for $ac_word" >&5 
    66696674if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then 
    66706675  echo $ac_n "(cached) $ac_c" 1>&6 
     
    67076712set dummy sdl-config; ac_word=$2 
    67086713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    6709 echo "configure:6710: checking for $ac_word" >&5 
     6714echo "configure:6715: checking for $ac_word" >&5 
    67106715if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then 
    67116716  echo $ac_n "(cached) $ac_c" 1>&6 
     
    67526757ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    67536758echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6754 echo "configure:6755: checking for $ac_hdr" >&5 
     6759echo "configure:6760: checking for $ac_hdr" >&5 
    67556760if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    67566761  echo $ac_n "(cached) $ac_c" 1>&6 
    67576762else 
    67586763  cat > conftest.$ac_ext <<EOF 
    6759 #line 6760 "configure" 
     6764#line 6765 "configure" 
    67606765#include "confdefs.h" 
    67616766#include <$ac_hdr> 
    67626767EOF 
    67636768ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6769{ (eval echo configure:6770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    67656770ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    67666771if test -z "$ac_err"; then 
     
    68326837ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    68336838echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6834 echo "configure:6835: checking for $ac_hdr" >&5 
     6839echo "configure:6840: checking for $ac_hdr" >&5 
    68356840if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    68366841  echo $ac_n "(cached) $ac_c" 1>&6 
    68376842else 
    68386843  cat > conftest.$ac_ext <<EOF 
    6839 #line 6840 "configure" 
     6844#line 6845 "configure" 
    68406845#include "confdefs.h" 
    68416846#include <$ac_hdr> 
    68426847EOF 
    68436848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6849{ (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    68456850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    68466851if test -z "$ac_err"; then 
     
    68716876    else 
    68726877      echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6 
    6873 echo "configure:6874: checking for directX headers in ${with_directx}" >&5 
     6878echo "configure:6879: checking for directX headers in ${with_directx}" >&5 
    68746879      if test -f ${with_directx}/ddraw.h 
    68756880      then 
     
    68986903ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    68996904echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    6900 echo "configure:6901: checking for $ac_hdr" >&5 
     6905echo "configure:6906: checking for $ac_hdr" >&5 
    69016906if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    69026907  echo $ac_n "(cached) $ac_c" 1>&6 
    69036908else 
    69046909  cat > conftest.$ac_ext <<EOF 
    6905 #line 6906 "configure" 
     6910#line 6911 "configure" 
    69066911#include "confdefs.h" 
    69076912#include <$ac_hdr> 
    69086913EOF 
    69096914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    6910 { (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     6915{ (eval echo configure:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    69116916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    69126917if test -z "$ac_err"; then 
     
    70037008  ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'` 
    70047009echo $ac_n "checking for aalib.h""... $ac_c" 1>&6 
    7005 echo "configure:7006: checking for aalib.h" >&5 
     7010echo "configure:7011: checking for aalib.h" >&5 
    70067011if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    70077012  echo $ac_n "(cached) $ac_c" 1>&6 
    70087013else 
    70097014  cat > conftest.$ac_ext <<EOF 
    7010 #line 7011 "configure" 
     7015#line 7016 "configure" 
    70117016#include "confdefs.h" 
    70127017#include <aalib.h> 
    70137018EOF 
    70147019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7015 { (eval echo configure:7016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7020{ (eval echo configure:7021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    70167021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    70177022if test -z "$ac_err"; then 
     
    70647069ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    70657070echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    7066 echo "configure:7067: checking for $ac_hdr" >&5 
     7071echo "configure:7072: checking for $ac_hdr" >&5 
    70677072if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    70687073  echo $ac_n "(cached) $ac_c" 1>&6 
    70697074else 
    70707075  cat > conftest.$ac_ext <<EOF 
    7071 #line 7072 "configure" 
     7076#line 7077 "configure" 
    70727077#include "confdefs.h" 
    70737078#include <$ac_hdr> 
    70747079EOF 
    70757080ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7076 { (eval echo configure:7077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7081{ (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    70777082ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    70787083if test -z "$ac_err"; then 
     
    70977102    PLUGINS="${PLUGINS} dsp" 
    70987103    echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6 
    7099 echo "configure:7100: checking for main in -lossaudio" >&5 
     7104echo "configure:7105: checking for main in -lossaudio" >&5 
    71007105ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'` 
    71017106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    71057110LIBS="-lossaudio  $LIBS" 
    71067111cat > conftest.$ac_ext <<EOF 
    7107 #line 7108 "configure" 
     7112#line 7113 "configure" 
    71087113#include "confdefs.h" 
    71097114 
     
    71127117; return 0; } 
    71137118EOF 
    7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     7119if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    71157120  rm -rf conftest* 
    71167121  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    71487153set dummy esd-config; ac_word=$2 
    71497154echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    7150 echo "configure:7151: checking for $ac_word" >&5 
     7155echo "configure:7156: checking for $ac_word" >&5 
    71517156if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then 
    71527157  echo $ac_n "(cached) $ac_c" 1>&6 
     
    71997204set dummy artsc-config; ac_word=$2 
    72007205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    7201 echo "configure:7202: checking for $ac_word" >&5 
     7206echo "configure:7207: checking for $ac_word" >&5 
    72027207if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then 
    72037208  echo $ac_n "(cached) $ac_c" 1>&6 
     
    72497254     ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'` 
    72507255echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6 
    7251 echo "configure:7252: checking for alsa/asoundlib.h" >&5 
     7256echo "configure:7257: checking for alsa/asoundlib.h" >&5 
    72527257if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    72537258  echo $ac_n "(cached) $ac_c" 1>&6 
    72547259else 
    72557260  cat > conftest.$ac_ext <<EOF 
    7256 #line 7257 "configure" 
     7261#line 7262 "configure" 
    72577262#include "confdefs.h" 
    72587263#include <alsa/asoundlib.h> 
    72597264EOF 
    72607265ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7261 { (eval echo configure:7262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7266{ (eval echo configure:7267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    72627267ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    72637268if test -z "$ac_err"; then 
     
    72767281  echo "$ac_t""yes" 1>&6 
    72777282  echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 
    7278 echo "configure:7279: checking for main in -lasound" >&5 
     7283echo "configure:7284: checking for main in -lasound" >&5 
    72797284ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'` 
    72807285if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    72847289LIBS="-lasound  $LIBS" 
    72857290cat > conftest.$ac_ext <<EOF 
    7286 #line 7287 "configure" 
     7291#line 7292 "configure" 
    72877292#include "confdefs.h" 
    72887293 
     
    72917296; return 0; } 
    72927297EOF 
    7293 if { (eval echo configure:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     7298if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    72947299  rm -rf conftest* 
    72957300  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    73687373set dummy gtk12-config; ac_word=$2 
    73697374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    7370 echo "configure:7371: checking for $ac_word" >&5 
     7375echo "configure:7376: checking for $ac_word" >&5 
    73717376if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then 
    73727377  echo $ac_n "(cached) $ac_c" 1>&6 
     
    74077412set dummy gtk-config; ac_word=$2 
    74087413echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    7409 echo "configure:7410: checking for $ac_word" >&5 
     7414echo "configure:7415: checking for $ac_word" >&5 
    74107415if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then 
    74117416  echo $ac_n "(cached) $ac_c" 1>&6 
     
    74567461ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    74577462echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    7458 echo "configure:7459: checking for $ac_hdr" >&5 
     7463echo "configure:7464: checking for $ac_hdr" >&5 
    74597464if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    74607465  echo $ac_n "(cached) $ac_c" 1>&6 
    74617466else 
    74627467  cat > conftest.$ac_ext <<EOF 
    7463 #line 7464 "configure" 
     7468#line 7469 "configure" 
    74647469#include "confdefs.h" 
    74657470#include <$ac_hdr> 
    74667471EOF 
    74677472ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7468 { (eval echo configure:7469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7473{ (eval echo configure:7474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    74697474ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    74707475if test -z "$ac_err"; then 
     
    75127517set dummy gnome-config; ac_word=$2 
    75137518echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    7514 echo "configure:7515: checking for $ac_word" >&5 
     7519echo "configure:7520: checking for $ac_word" >&5 
    75157520if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then 
    75167521  echo $ac_n "(cached) $ac_c" 1>&6 
     
    75567561ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    75577562echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    7558 echo "configure:7559: checking for $ac_hdr" >&5 
     7563echo "configure:7564: checking for $ac_hdr" >&5 
    75597564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    75607565  echo $ac_n "(cached) $ac_c" 1>&6 
    75617566else 
    75627567  cat > conftest.$ac_ext <<EOF 
    7563 #line 7564 "configure" 
     7568#line 7569 "configure" 
    75647569#include "confdefs.h" 
    75657570#include <$ac_hdr> 
    75667571EOF 
    75677572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7568 { (eval echo configure:7569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7573{ (eval echo configure:7574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    75697574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    75707575if test -z "$ac_err"; then 
     
    76557660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    76567661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    7657 echo "configure:7658: checking for $ac_hdr" >&5 
     7662echo "configure:7663: checking for $ac_hdr" >&5 
    76587663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    76597664  echo $ac_n "(cached) $ac_c" 1>&6 
    76607665else 
    76617666  cat > conftest.$ac_ext <<EOF 
    7662 #line 7663 "configure" 
     7667#line 7668 "configure" 
    76637668#include "confdefs.h" 
    76647669#include <$ac_hdr> 
    76657670EOF 
    76667671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7667 { (eval echo configure:7668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7672{ (eval echo configure:7673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    76687673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    76697674if test -z "$ac_err"; then 
     
    77107715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    77117716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    7712 echo "configure:7713: checking for $ac_hdr" >&5 
     7717echo "configure:7718: checking for $ac_hdr" >&5 
    77137718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    77147719  echo $ac_n "(cached) $ac_c" 1>&6 
    77157720else 
    77167721  cat > conftest.$ac_ext <<EOF 
    7717 #line 7718 "configure" 
     7722#line 7723 "configure" 
    77187723#include "confdefs.h" 
    77197724#include <$ac_hdr> 
    77207725EOF 
    77217726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7722 { (eval echo configure:7723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7727{ (eval echo configure:7728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    77237728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    77247729if test -z "$ac_err"; then 
     
    77917796  ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'` 
    77927797echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6 
    7793 echo "configure:7794: checking for lirc/lirc_client.h" >&5 
     7798echo "configure:7799: checking for lirc/lirc_client.h" >&5 
    77947799if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    77957800  echo $ac_n "(cached) $ac_c" 1>&6 
    77967801else 
    77977802  cat > conftest.$ac_ext <<EOF 
    7798 #line 7799 "configure" 
     7803#line 7804 "configure" 
    77997804#include "confdefs.h" 
    78007805#include <lirc/lirc_client.h> 
    78017806EOF 
    78027807ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    7803 { (eval echo configure:7804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     7808{ (eval echo configure:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    78047809ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    78057810if test -z "$ac_err"; then 
     
    78187823  echo "$ac_t""yes" 1>&6 
    78197824  echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6 
    7820 echo "configure:7821: checking for lirc_init in -llirc_client" >&5 
     7825echo "configure:7826: checking for lirc_init in -llirc_client" >&5 
    78217826ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'` 
    78227827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    78267831LIBS="-llirc_client  $LIBS" 
    78277832cat > conftest.$ac_ext <<EOF 
    7828 #line 7829 "configure" 
     7833#line 7834 "configure" 
    78297834#include "confdefs.h" 
    78307835/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    78377842; return 0; } 
    78387843EOF 
    7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     7844if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    78407845  rm -rf conftest* 
    78417846  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    78927897    *) 
    78937898                  echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6 
    7894 echo "configure:7895: checking whether the byte order is big-endian" >&5 
     7899echo "configure:7900: checking whether the byte order is big-endian" >&5 
    78957900if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 
    78967901  echo $ac_n "(cached) $ac_c" 1>&6 
     
    79667971   if test "x$enable_pth" = "xyes"; then 
    79677972    echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 
    7968 echo "configure:7969: checking for pth_init in -lpth" >&5 
     7973echo "configure:7974: checking for pth_init in -lpth" >&5 
    79697974ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` 
    79707975if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    79747979LIBS="-lpth  $LIBS" 
    79757980cat > conftest.$ac_ext <<EOF 
    7976 #line 7977 "configure" 
     7981#line 7982 "configure" 
    79777982#include "confdefs.h" 
    79787983/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    79857990; return 0; } 
    79867991EOF 
    7987 if { (eval echo configure:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     7992if { (eval echo configure:7993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    79887993  rm -rf conftest* 
    79897994  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    80138018 
    80148019    cat > conftest.$ac_ext <<EOF 
    8015 #line 8016 "configure" 
     8020#line 8021 "configure" 
    80168021#include "confdefs.h" 
    80178022#include <pth.h> 
     
    80398044   if test "x$enable_st" = "xyes"; then 
    80408045    echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6 
    8041 echo "configure:8042: checking for st_init in -lst" >&5 
     8046echo "configure:8047: checking for st_init in -lst" >&5 
    80428047ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'` 
    80438048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    80478052LIBS="-lst  $LIBS" 
    80488053cat > conftest.$ac_ext <<EOF 
    8049 #line 8050 "configure" 
     8054#line 8055 "configure" 
    80508055#include "confdefs.h" 
    80518056/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    80588063; return 0; } 
    80598064EOF 
    8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     8065if { (eval echo configure:8066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    80618066  rm -rf conftest* 
    80628067  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    80868091 
    80878092    cat > conftest.$ac_ext <<EOF 
    8088 #line 8089 "configure" 
     8093#line 8094 "configure" 
    80898094#include "confdefs.h" 
    80908095#include <st.h> 
  • configure.in

    rebf1f25 r1c26af8  
    722722  ]) 
    723723 
     724  if test "x${SYS}" = "xfreebsd4.5" 
     725  then 
     726    PLUGINS="${PLUGINS} vcd" 
     727  fi 
     728   
    724729  if test "x${SYS}" = "xbsdi" 
    725730  then 
  • plugins/vcd/cdrom_tools.c

    rb29f85e r1c26af8  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2001 VideoLAN 
    5  * $Id: cdrom_tools.c,v 1.2 2002/04/04 05:08:05 sam Exp $ 
     5 * $Id: cdrom_tools.c,v 1.3 2002/04/26 23:32:23 jobi Exp $ 
    66 * 
    77 * Author: Johan Bilien <jobi@via.ecp.fr> 
     
    4242#include <sys/ioctl.h> 
    4343 
    44 #if defined(SYS_BSDI
     44#if defined( SYS_BSDI
    4545#   include <dvd.h> 
    4646#elif defined ( SYS_DARWIN ) 
     
    5050#   include <IOKit/storage/IOCDMedia.h> 
    5151#   include <IOKit/storage/IOCDMediaBSDClient.h> 
     52#elif defined( SYS_FREEBSD4_5 ) 
     53#   include <sys/cdio.h> 
     54#   include <sys/cdrio.h> 
    5255#else 
    5356#   include <linux/cdrom.h> 
     
    9093    freeTOC( pTOC ); 
    9194 
     95#elif defined( SYS_FREEBSD4_5 ) 
     96    struct ioc_toc_header tochdr; 
     97     
     98    if( ioctl( i_fd, CDIOREADTOCHEADER, &tochdr ) == -1 ) 
     99    { 
     100        intf_ErrMsg( "vcd error: could not read TOCHDR" ); 
     101        return -1; 
     102    } 
     103 
     104    i_count = tochdr.ending_track - tochdr.starting_track + 1; 
     105     
    92106#else 
    93107    struct cdrom_tochdr   tochdr; 
     
    168182    freeTOC( pTOC ); 
    169183 
     184#elif defined( SYS_FREEBSD4_5 ) 
     185    struct ioc_read_toc_entry toc_entries; 
     186 
     187    i_tracks = ioctl_GetTrackCount( i_fd, psz_dev ); 
     188    p_sectors = malloc( (i_tracks + 1) * sizeof(int) ); 
     189    if( p_sectors == NULL ) 
     190    { 
     191        intf_ErrMsg( "vcd error: could not allocate p_sectors" ); 
     192        return NULL; 
     193    } 
     194 
     195    toc_entries.address_format = CD_LBA_FORMAT; 
     196    toc_entries.starting_track = 0; 
     197    toc_entries.data_len = ( i_tracks + 1 ) * sizeof( struct cd_toc_entry );  
     198    toc_entries.data = (struct cd_toc_entry *) malloc( toc_entries.data_len ); 
     199    if( toc_entries.data == NULL ) 
     200    { 
     201        intf_ErrMsg( "vcd error: not enoug memory" ); 
     202        free( p_sectors ); 
     203        return NULL; 
     204    } 
     205  
     206    /* Read the TOC */ 
     207    if( ioctl( i_fd, CDIOREADTOCENTRYS, &toc_entries ) == -1 ) 
     208    { 
     209        intf_ErrMsg( "vcd error: could not read the TOC" ); 
     210        free( p_sectors ); 
     211        free( toc_entries.data ); 
     212        return NULL; 
     213    } 
     214     
     215    /* Fill the p_sectors structure with the track/sector matches */ 
     216    for( i = 0 ; i <= i_tracks ; i++ ) 
     217    { 
     218        p_sectors[ i ] = ntohl( toc_entries.data[i].addr.lba ); 
     219    } 
    170220#else 
    171221    struct cdrom_tochdr   tochdr; 
     
    233283    { 
    234284        intf_ErrMsg( "vcd error: could not read block %d", i_sector ); 
     285        return( -1 ); 
     286    } 
     287 
     288#elif defined( SYS_FREEBSD4_5 ) 
     289     
     290    int i_size = VCD_SECTOR_SIZE; 
     291 
     292    if( ioctl( i_fd, CDRIOCSETBLOCKSIZE, &i_size ) == -1 ) 
     293    { 
     294        intf_ErrMsg( "vcd error: Could not set block size" ); 
     295        return( -1 ); 
     296    } 
     297 
     298    if( lseek( i_fd, i_sector * VCD_SECTOR_SIZE, SEEK_SET ) == -1 ) 
     299    { 
     300        intf_ErrMsg( "vcd error: Could not lseek to sector %d", i_sector ); 
     301        return( -1 ); 
     302    } 
     303 
     304    if( read( i_fd, p_block, VCD_SECTOR_SIZE ) == -1 ) 
     305    { 
     306        intf_ErrMsg( "vcd error: Could not read sector %d", i_sector ); 
    235307        return( -1 ); 
    236308    }