AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(src/main.c)
-AM_INIT_AUTOMAKE(check-news -Wall std-options)
+AM_INIT_AUTOMAKE([no-define check-news -Wall std-options])
AM_SILENT_RULES([yes])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
DiscDBDiscid(disc));
strncpy(hello.hello_program,"Grip",256);
- strncpy(hello.hello_version,VERSION,256);
+ strncpy(hello.hello_version,PACKAGE_VERSION,256);
if(ginfo->db_use_freedb && !strcasecmp(ginfo->discdb_encoding,"UTF-8"))
hello.proto_version=6;
gtk_label_set(GTK_LABEL(uinfo->play_time_label),buf);
g_snprintf(icon_buf,sizeof(icon_buf),"%02d %s %s",
- disc->curr_track,buf,PACKAGE);
+ disc->curr_track,buf,PACKAGE_NAME);
gdk_window_set_icon_name(uinfo->app->window,icon_buf);
}
}
g_snprintf(buf,80,"%02d:%02d",disc->length.mins,
disc->length.secs);
g_snprintf(icon_buf, sizeof(icon_buf),"%02d %s %s",
- disc->curr_track,buf,PACKAGE);
+ disc->curr_track,buf,PACKAGE_NAME);
gtk_label_set(GTK_LABEL(uinfo->play_time_label),buf);
}
else {
gtk_label_set(GTK_LABEL(uinfo->play_time_label),"--:--");
- strncpy(icon_buf,PACKAGE,sizeof(icon_buf));
+ strncpy(icon_buf,PACKAGE_NAME,sizeof(icon_buf));
SetCurrentTrack(ginfo,-1);
}
#include <glib.h>
#include <gtk/gtk.h>
+#include "config.h"
#include "gettext.h"
#define _(String) gettext(String)
#ifndef GRIPCD
fprintf(discdb_data,"# xmcd CD database file generated by Grip %s\n",
- VERSION);
+ PACKAGE_VERSION);
#else
fprintf(discdb_data,"# xmcd CD database file generated by GCD %s\n",
- VERSION);
+ PACKAGE_VERSION);
#endif
fputs("# \n",discdb_data);
fputs("# Track frame offsets:\n",discdb_data);
if(gripext) fprintf(discdb_data,"# Revision: %d\n",ddata->revision);
else fprintf(discdb_data,"# Revision: %d\n",ddata->revision+1);
- fprintf(discdb_data,"# Submitted via: Grip %s\n",VERSION);
+ fprintf(discdb_data,"# Submitted via: Grip %s\n",PACKAGE_VERSION);
fputs("# \n",discdb_data);
fprintf(discdb_data,"DISCID=%08x\n",ddata->data_id);
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <time.h>
+
+#include "config.h"
#include "grip.h"
#include "discdb.h"
#include "cdplay.h"
CheckNewDisc(ginfo,FALSE);
/* Check if we're running this version for the first time */
- if(strcmp(VERSION,ginfo->version)!=0) {
- strcpy(ginfo->version,VERSION);
+ if (strcmp(PACKAGE_VERSION, ginfo->version) != 0) {
+ strcpy(ginfo->version, PACKAGE_VERSION);
- sscanf(VERSION,"%d.%d.%d",&major,&minor,&point);
+ sscanf(PACKAGE_VERSION, "%d.%d.%d", &major, &minor, &point);
/* Check if we have a dev release */
if(minor%2) {
vbox2=gtk_vbox_new(TRUE,0);
- sprintf(versionbuf,_("Version %s"),VERSION);
+ sprintf(versionbuf, _("Version %s"), PACKAGE_VERSION);
label=gtk_label_new(versionbuf);
gtk_widget_set_style(label,uinfo->style_wb);
gtk_box_pack_start(GTK_BOX(vbox2),label,FALSE,FALSE,0);