configure.in
changeset 467 4b52401dda92
parent 464 9a6369a63488
child 468 391babf75293
equal deleted inserted replaced
466:d3d060cb94a6 467:4b52401dda92
   178 
   178 
   179 dnl Check command-line options
   179 dnl Check command-line options
   180 
   180 
   181 AC_ARG_ENABLE([music-cmd],
   181 AC_ARG_ENABLE([music-cmd],
   182 AC_HELP_STRING([--enable-music-cmd], [support an external music player [[default=yes]]]),
   182 AC_HELP_STRING([--enable-music-cmd], [support an external music player [[default=yes]]]),
   183               [], [enable_music_cmd=yes])
   183               [], [enable_music_cmd=detect])
   184 if test x$enable_music_cmd = xyes; then
   184 if test "x$enable_music_cmd" != xno; then
   185     SOURCES="$SOURCES $srcdir/music_cmd.c"
   185     AC_CHECK_FUNCS([fork vfork])
   186     EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
   186     if test "x$ac_cv_func_fork" = "xyes"; then
       
   187         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_FORK"
       
   188     elif test "x$ac_cv_func_vfork" = "xyes"; then
       
   189         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_VFORK"
       
   190     elif test "x$enable_music_cmd" = "xyes"; then
       
   191         AC_MSG_ERROR([external music player not available on your platform])
       
   192     else
       
   193         enable_music_cmd=no
       
   194     fi
       
   195     if test "x$enable_music_cmd" != xno; then
       
   196         SOURCES="$SOURCES $srcdir/music_cmd.c"
       
   197         EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
       
   198     fi
   187 fi
   199 fi
   188 
   200 
   189 AC_ARG_ENABLE([music-wave],
   201 AC_ARG_ENABLE([music-wave],
   190 AC_HELP_STRING([--enable-music-wave], [enable streaming WAVE music [[default=yes]]]),
   202 AC_HELP_STRING([--enable-music-wave], [enable streaming WAVE music [[default=yes]]]),
   191               [], [enable_music_wave=yes])
   203               [], [enable_music_wave=yes])