Ticket #423: mp-config.patch

File mp-config.patch, 1018 bytes (added by IdleGod@…, 13 years ago)

Adds runtime support for checking configure options

  • parser-mpcmd.c

     
    158158            pt->loop = l;
    159159            tmp = 1;
    160160          }
     161        } else if(strcasecmp(opt,"configure") == 0) {
     162          mp_msg(MSGT_CPLAYER,MSGL_INFO, "Configured With: " CONFIGURE "\n");
     163          opt_exit = 1;
    161164        } else if(strcasecmp(opt,"shuffle") == 0) {
    162165          if(last_entry && last_entry->child)
    163166            last_entry->flags |= PLAY_TREE_RND;
  • configure

     
    5555
    5656# Prefer these macros to full length text !
    5757# These macros only return an error code - NO display is done
     58_configureline="$0 $*"
     59
    5860compile_check() {
    5961  echo >> "$TMPLOG"
    6062  cat "$1" >> "$TMPLOG"
     
    75287530#ifndef MPLAYER_CONFIG_H
    75297531#define MPLAYER_CONFIG_H 1
    75307532
     7533#define CONFIGURE "$_configureline"
     7534
    75317535/* use GNU internationalization */
    75327536$_def_i18n
    75337537