diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-07-08 11:32:04 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-07-08 11:32:04 +0000 |
commit | df38435c2d0e6c54385cefd66a347d57add9ae67 (patch) | |
tree | 0f28d33d5f2162d9af9de25f1b2c0a30fec43497 | |
parent | 479f8331310a2e4aef98c32088a3298ec4dc3433 (diff) |
moved ACONNECT_VERSION from aconnect.c to configure.ac
svn path=/trunk/externals/iem/aconnect/; revision=3306
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | aconnect.c | 7 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
4 files changed, 13 insertions, 4 deletions
@@ -6,7 +6,7 @@ INSTALL_BIN=$(PREFIX)/extra INSTALL_DOC=$(PREFIX)/extra/help-$(LIBNAME) EXT = pd_linux -DEFS = -DHAVE_ALSA +DEFS = -DACONNECT_VERSION=\"0.2\" -DHAVE_ALSA IFLAGS = -I. $(INCLUDES) CC = gcc @@ -18,8 +18,6 @@ * license: GNU General Public License v.2 * ******************************************************/ -#define ACONNECT_VERSION "0.2" - #include "m_pd.h" /* aconnect :: connect/disconnect 2 ALSA sequencer subscriber ports */ @@ -394,7 +392,10 @@ void aconnect_setup(void) post(" ported to pure-data by IOhannes m zmölnig 2005"); post(" institute of electronic music and acoustics (iem)"); post(" published under the GNU General Public License version 2"); - post(" version:"ACONNECT_VERSION"\tcompiled: "__DATE__""); +#ifdef ACONNECT_VERSION + startpost(" version:"ACONNECT_VERSION); +#endif + post("\tcompiled: "__DATE__""); aconnect_class = class_new(gensym("aconnect"), (t_newmethod)aconnect_new, 0, sizeof(t_aconnect), 0, 0); @@ -1291,6 +1291,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +VERSION=0.2 + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2531,6 +2533,8 @@ if test "x$ac_cv_lib_asound_snd_seq_close" = "xyes"; then DFLAGS="-DHAVE_ALSA ${DFLAGS}" fi +DFLAGS="-DACONNECT_VERSION=\\\"${VERSION}\\\" ${DFLAGS}" + if test "x$includedir" != "x"; then for id in $includedir do diff --git a/configure.ac b/configure.ac index 71aa3d2..03ff035 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,8 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(aconnect.c) +VERSION=0.2 + dnl Checks for programs. AC_PROG_CC @@ -39,6 +41,8 @@ if test "x$ac_cv_lib_asound_snd_seq_close" = "xyes"; then DFLAGS="-DHAVE_ALSA ${DFLAGS}" fi +DFLAGS="-DACONNECT_VERSION=\\\"${VERSION}\\\" ${DFLAGS}" + if test "x$includedir" != "x"; then for id in $includedir do |