Changeset 25:2110e0cf64ac

Show
Ignore:
Timestamp:
02/27/09 20:13:00 (3 years ago)
Author:
thib
Branch:
default
convert_revision:
svn:d0a2da98-017c-47d2-8c43-22b54484806d/trunk@26
Message:
* clean littles things in configure.ac
* added --with-visarc and --with-nwatowav
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • autogen.sh

    r22 r25  
    11#!/bin/sh 
    22autoheader && \ 
    3 aclocal -I . -I /usr/share/aclocal && \ 
     3aclocal -I . && \ 
    44automake --add-missing && \ 
    55autoconf 
  • configure.ac

    r22 r25  
    7979AC_CHECK_LIB(jpeg, jpeg_start_decompress) 
    8080dnl ogg vobis 
    81 AC_ARG_ENABLE(tremor, 
    82         [ --enable-tremor       enable tremor (integer-only implementation for vorbisfile) [ default no]]) 
    83 AC_CHECK_LIB(ogg, ogg_stream_init) 
    84 AC_CHECK_LIB(vorbis,  vorbis_book_decode,,,-logg) 
    85 if test X$enable_tremor = X"yes"; then 
    86         AC_CHECK_LIB(vorbisidec,  ov_read,,,-logg -lvorbis) 
    87 else 
    88         AC_CHECK_LIB(vorbisfile,  ov_read,,,-logg -lvorbis) 
     81AC_ARG_WITH(vorbis, 
     82        AS_HELP_STRING([--disable-vorbis], [Build with vorbis and ogg (default yes)])) 
     83if test X$with_vorbis = X"yes"; then 
     84    AC_ARG_ENABLE(tremor, AS_HELP_STRING([--enable-tremor], 
     85        [enable tremor (integer-only implementation of vorbisfile) (default no)])) 
     86    AC_CHECK_LIB(ogg, ogg_stream_init) 
     87    AC_CHECK_LIB(vorbis,  vorbis_book_decode,,,-logg) 
     88    if test X$enable_tremor = X"yes"; then 
     89        AC_CHECK_LIB(vorbisidec,  ov_read,,,-logg -lvorbis) 
     90    else 
     91        AC_CHECK_LIB(vorbisfile,  ov_read,,,-logg -lvorbis) 
     92    fi 
    8993fi 
    9094 
     
    123127DISPSIZE="no" 
    124128 
     129AC_ARG_ENABLE(nwatowav, 
     130    AS_HELP_STRING([--enable-nwatowav], [Build the nwatowav utility (default no)])) 
     131if test X$enable_nwatowav = X"yes"; then 
     132    AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}']) 
     133fi 
     134 
     135AC_ARG_ENABLE(visarc, 
     136    AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)])) 
     137if test X$enable_visarc = X"yes"; then 
     138    AC_SUBST(VISARC, ['visarc${EXEEXT}']) 
     139fi 
     140 
    125141AC_ARG_ENABLE(zaurus, 
    126         [ --enable-zaurus       compile for zaurus environment [ default no]]) 
     142    AS_HELP_STRING([--enable-zaurus], [Compile for zaurus environment (default no)])) 
    127143if test X$enable_zaurus = X"yes"; then 
    128144        USE_X11=0 
     
    131147 
    132148AC_ARG_ENABLE(x11, 
    133         [ --disable-x11         turn off using X11 library [default enable]]) 
     149    AS_HELP_STRING([--disable-x11], [Use the X11 library (default yes)])) 
    134150if test X$x11 = X"no"; then 
    135151        USE_X11=0 
     
    142158 
    143159AC_ARG_ENABLE(displaysize, 
    144         [ --enable-displaysize=SIZE  change default display size, for example --enable-displaysize=320x240], 
     160    AS_HELP_STRING([--enable-displaysize=SIZE], 
     161                   [Change default display size, for example --enable-displaysize=320x240]), 
    145162        displaysize=$enableval) 
    146163if test X$displaysize != X; then 
  • music2/Makefile.am

    r23 r25  
    33                     movie.cc nwatowav.cc music.h wavfile.h 
    44 
    5 #bin_PROGRAMS = nwatowav 
    6 #nwatowav_SOURCES = nwatowav.cc 
    7 #nwatowav_CPPFLAGS = -DUSE_MAIN 
     5bin_PROGRAMS = $(NWATOWAV) 
     6EXTRA_PROGRAMS = nwatowav 
     7 
     8nwatowav_SOURCES = nwatowav.cc 
     9nwatowav_CPPFLAGS = -DUSE_MAIN 
    810 
    911INCLUDES = @SDL_CFLAGS@ 
  • system/Makefile.am

    r22 r25  
    22libsystem_a_SOURCES = file.cc system_config.cc file.h file_impl.h system_config.h 
    33 
    4 #bin_PROGRAMS = visarc 
    5 #visarc_SOURCES = visarc.cc 
    6 #visarc_LDADD = libsystem.a 
     4bin_PROGRAMS = $(VISARC) 
     5EXTRA_PROGRAMS = visarc 
     6 
     7visarc_SOURCES = visarc.cc 
     8visarc_LDADD = libsystem.a 
    79 
    810AM_CPPFLAGS = @CFLAGS@ @DEFS@