summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-16 00:35:49 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-16 00:35:49 +0100
commitf5dde7a5996d7034924916de6413cd1411d7a5fc (patch)
tree3a2d82fa882d3926440ab5b61e305418fcd63177 /configure.ac
parentb5c156f376d1cf3227c7a18a670bac62aa7f9622 (diff)
downloadlibrcc-f5dde7a5996d7034924916de6413cd1411d7a5fc.tar.gz
librcc-f5dde7a5996d7034924916de6413cd1411d7a5fc.tar.bz2
librcc-f5dde7a5996d7034924916de6413cd1411d7a5fc.tar.xz
librcc-f5dde7a5996d7034924916de6413cd1411d7a5fc.zip
Multiple fixes of build system
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 4a31cd0..86ef382 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,9 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT(librcc, m4_esyscmd([head -n 1 VERSION | sed -e s/CVS.*$// | tr -d \\n]))
AC_CONFIG_SRCDIR([src/librcc.c])
AC_CONFIG_HEADERS(config.h)
-AM_INIT_AUTOMAKE([subdir-objects])
+#AM_INIT_AUTOMAKE([subdir-objects])
+XC_AUTOMAKE()
+
AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
@@ -13,7 +15,6 @@ LIBRCC_VERSION_MAJOR=`cat VERSION | sed -e s/CVS// | cut -d . -f 1 | sed -e s/^$
LIBRCC_VERSION_MINOR=`cat VERSION | sed -e s/CVS// | cut -d . -f 2 | sed -e s/^$/0/`
LIBRCC_VERSION_SUBMINOR=`cat VERSION | sed -e s/CVS// | cut -d . -f 3 | sed -e s/^$/0/`
LIBRCC_VERSION=$LIBRCC_VERSION_MAJOR.$LIBRCC_VERSION_MINOR.$LIBRCC_VERSION_SUBMINOR
-VERSION=$LIBRCC_VERSION
LIBRCC_VERSION_INFO=`echo $LIBRCC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
AC_SUBST(LIBRCC_VERSION)
@@ -37,7 +38,7 @@ AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AM_PROG_LIBTOOL
-
+AC_PROG_MAKE_SET
AC_C_CONST
@@ -409,6 +410,10 @@ AC_CHECK_FUNCS(strcasecmp strncasecmp strdup strnlen flock lockf nanosleep uslee
AC_OUTPUT(src/Makefile engines/Makefile external/Makefile ui/Makefile examples/Makefile Makefile librcc.spec librcc.pc)
+dnl This is a remedy of distclean in src destroying .deps directory and while distcleaning external it fails to include the dependencies
+dnl Stolen from curl and slightly adapted
+XC_AMEND_DISTCLEAN([external src])
+
dnl ***
dnl *** Data directory
dnl ***