[beast/devel: 4/12] BUILD: configure.in: provide macro to define __FILE_DIR__



commit 0edf2a9cdc5d18d6a1265a0aa25b1a75b110de70
Author: Tim Janik <timj gnu org>
Date:   Wed Mar 20 04:57:08 2013 +0100

    BUILD: configure.in: provide macro to define __FILE_DIR__

 configure.in |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 1b7facd..3f1da86 100644
--- a/configure.in
+++ b/configure.in
@@ -58,6 +58,12 @@ AC_SUBST(LT_RELEASE)
 AC_SUBST(LT_CURRENT)
 AC_SUBST(LT_REVISION)
 AC_SUBST(LT_AGE)
+if test 1 = $(($BSE_MICRO_VERSION & 1)) ; then
+  DEFINE__FILE_DIR__='-D__FILE_DIR__=\"${abs_srcdir}\"'
+else
+  DEFINE__FILE_DIR__='-D__FILE_DIR__=\"beast/${subdir}\"'
+fi
+AC_SUBST(DEFINE__FILE_DIR__)
 
 dnl # figure debugging default, prior to $ac_help setup
 dnl


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]