Changeset 388
- Timestamp:
- 06/24/06 18:39:42 (2 years ago)
- Files:
-
- sweep/trunk/configure.ac (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/configure.ac
r386 r388 92 92 dnl 93 93 94 LIBSNDFILE_VERSION="???"95 96 # !!! libsndfile0 backport97 98 ac_enable_libsndfile0=no99 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 ; then104 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 ; then111 SNDFILE_LIBS="-lsndfile"112 AC_SUBST(SNDFILE_LIBS)113 LIBSNDFILE_VERSION="0"114 else115 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 version121 *** 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 against125 *** libsndfile version 1.126 ***127 ])128 fi129 130 else # !!!131 132 94 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0, 133 95 HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no") … … 136 98 AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if we have libsndfile1.]) 137 99 AC_SUBST(SNDFILE_LIBS) 138 LIBSNDFILE_VERSION="1"139 100 else 140 101 sweep_config_ok="no" 141 102 AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe") 142 AC_CHECK_LIB(sndfile, sf_open_read, HAVE_LIBSNDFILE0="yes")143 103 fi 144 104 … … 164 124 fi 165 125 fi 166 167 fi # !!! libsndfile0 backport168 126 169 127 AC_CHECK_SIZEOF(off_t,1) … … 551 509 ]) 552 510 fi 553 if test "x$HAVE_LIBSNDFILE0" = xyes ; then554 AC_MSG_RESULT([555 Development files missing: Your system appears to have an old556 version of libsndfile (below 1.0.0) installed.557 ])558 fi559 511 560 512 if test "x$HAVE_ALSA" = xmaybe ; then … … 659 611 ** Experimental code: ....... ${ac_enable_experimental} 660 612 ** Audio device handling: ... $sweep_config_driver 661 ** PCM: libsndfile version .. $LIBSNDFILE_VERSION613 ** PCM: libsndfile .......... $HAVE_LIBSNDFILE1 662 614 ** Ogg Vorbis support: ...... $HAVE_VORBIS 663 615 ** MPEG (MP3) loading: ...... $HAVE_MAD
