Changeset 49:6581f7eccd26

Show
Ignore:
Timestamp:
04/17/09 10:12:18 (3 years ago)
Author:
thib
Branch:
default
convert_revision:
svn:d0a2da98-017c-47d2-8c43-22b54484806d/trunk@50
Message:
* Correct --disable-x11
* Better use of --enable and --with. --enable is for optional features whereas --with is for the use of optional libraries
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • README

    r46 r49  
    2121 
    2222Other dependences: 
    23     * libvorbis or libtremor/libvorbisidec (to use it, specify --enable-tremor when calling ./configure). 
     23    * libvorbis or libtremor/libvorbisidec (to use it, specify --with-tremor when calling ./configure). 
    2424      If you don't need vorbis playback, you can add --disable-vorbis to the ./configure args. 
     25    * X11 is used by default, but you can build OtakuNoRaifu without it. 
     26      Just add --without-x11 to the ./configure arguments. 
    2527 
    2628 
  • configure.ac

    r44 r49  
    7979AC_CHECK_LIB(jpeg, jpeg_start_decompress) 
    8080dnl ogg vobis 
    81 AC_ARG_WITH(vorbis, 
     81AC_ARG_ENABLE(vorbis, 
    8282        AS_HELP_STRING([--disable-vorbis], [Build with vorbis and ogg (default yes)])) 
    83 if test X$with_vorbis != X"no"; then 
    84     AC_ARG_ENABLE(tremor, AS_HELP_STRING([--enable-tremor], 
    85         [enable tremor (integer-only implementation of vorbisfile) (default no)])) 
     83if test X$enable_vorbis != X"no"; then 
     84    AC_ARG_WITH(tremor, AS_HELP_STRING([--with-tremor], 
     85        [use the tremor (integer-only implementation of vorbisfile) library (default no)])) 
    8686    AC_CHECK_LIB(ogg, ogg_stream_init) 
    8787    AC_CHECK_LIB(vorbis,  vorbis_book_decode,,,-logg) 
    88     if test X$enable_tremor = X"yes"; then 
     88    if test X$with_tremor = X"yes"; then 
    8989        AC_CHECK_LIB(vorbisidec,  ov_read,, 
    9090                                 AC_MSG_ERROR(vorbisidec (tremor) not found),-logg -lvorbis) 
     
    116116        USE_SMPEG=1 
    117117fi 
    118 AC_ARG_ENABLE(mad, 
    119         [ --disable-mad         disable mad (integer-only implementation for mpeg decoding) [ default yes]]) 
    120 if test X$enable_mad != X"no"; then 
     118AC_ARG_WITH(mad, 
     119        [ --without-mad         use mad (integer-only implementation for mpeg decoding) [ default yes]]) 
     120if test X$without_mad != X"no"; then 
    121121        AC_CHECK_LIB(mad, mad_decoder_run) 
    122122fi 
     
    155155fi 
    156156 
    157 AC_ARG_ENABLE(x11, 
    158     AS_HELP_STRING([--disable-x11], [Use the X11 library (default yes)])) 
    159 if test X$x11 = X"no"; then 
     157AC_ARG_WITH(x11, 
     158    AS_HELP_STRING([--without-x11], [Use the X11 library (default yes)])) 
     159if test X$with_x11 = X"no"; then 
    160160        USE_X11=0 
    161161else