Changeset 388

Show
Ignore:
Timestamp:
06/24/06 18:39:42 (2 years ago)
Author:
erikd
Message:

Remove support libsndfile version 0.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sweep/trunk/configure.ac

    r386 r388  
    9292dnl 
    9393 
    94 LIBSNDFILE_VERSION="???" 
    95  
    96 # !!! libsndfile0 backport 
    97  
    98 ac_enable_libsndfile0=no 
    99 AC_ARG_ENABLE(libsndfile0, 
    100      [  --enable-libsndfile0    enable building against libsndfile version 0], 
    101      [ ac_enable_libsndfile0=yes ]) 
    102  
    103 if test "x${ac_enable_libsndfile0}" != xno ; then 
    104  
    105   HAVE_LIBSNDFILE1="ignore" 
    106  
    107   AC_CHECK_LIB(sndfile, sf_open_read, HAVE_LIBSNDFILE0="yes") 
    108   AC_CHECK_LIB(sndfile, sf_command, HAVE_LIBSNDFILE0="yes") 
    109  
    110   if test "x$HAVE_LIBSNDFILE0" = xyes ; then 
    111     SNDFILE_LIBS="-lsndfile" 
    112     AC_SUBST(SNDFILE_LIBS) 
    113     LIBSNDFILE_VERSION="0" 
    114   else 
    115     AC_MSG_ERROR([ 
    116 *** 
    117 *** You have explicitly enabled to build against libsndfile version 0, 
    118 *** but there is no compatible version of libsndfile version 0 installed. 
    119 *** 
    120 *** To continue this build, you must first install libsndfile version 
    121 *** 0.27.0 or 0.28.0. 
    122 *** 
    123 *** Note that unless you are building against an older system distribution, 
    124 *** it is highly recommended that you install and build against 
    125 *** libsndfile version 1. 
    126 *** 
    127 ]) 
    128   fi 
    129  
    130 else # !!! 
    131  
    13294PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0, 
    13395                  HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no") 
     
    13698  AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if we have libsndfile1.]) 
    13799  AC_SUBST(SNDFILE_LIBS) 
    138   LIBSNDFILE_VERSION="1" 
    139100else 
    140101  sweep_config_ok="no" 
    141102  AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe") 
    142   AC_CHECK_LIB(sndfile, sf_open_read, HAVE_LIBSNDFILE0="yes") 
    143103fi 
    144104 
     
    164124  fi 
    165125fi 
    166  
    167 fi # !!! libsndfile0 backport 
    168126 
    169127AC_CHECK_SIZEOF(off_t,1) 
     
    551509]) 
    552510fi 
    553 if test "x$HAVE_LIBSNDFILE0" = xyes ; then 
    554     AC_MSG_RESULT([ 
    555       Development files missing: Your system appears to have an old 
    556       version of libsndfile (below 1.0.0) installed. 
    557 ]) 
    558 fi 
    559511 
    560512if test "x$HAVE_ALSA" = xmaybe ; then 
     
    659611**     Experimental code: ....... ${ac_enable_experimental} 
    660612**     Audio device handling: ... $sweep_config_driver 
    661 **     PCM: libsndfile version .. $LIBSNDFILE_VERSION 
     613**     PCM: libsndfile .......... $HAVE_LIBSNDFILE1 
    662614**     Ogg Vorbis support: ...... $HAVE_VORBIS 
    663615**     MPEG (MP3) loading: ...... $HAVE_MAD