Index: Makefile.am
===================================================================
--- Makefile.am	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ Makefile.am	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -23,7 +23,10 @@
 SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@
 
-@LIBCFA_TARGET_MAKEFILES@ :
-	ls $(dir $@)/config.data || (echo "Missing config.data, re-run configure script again" && false)
-	cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(cat config.data)
+@LIBCFA_TARGET_MAKEFILES@ : Makefile
+	@$(eval config_file = $(dir $@)config.data)
+	@ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false)
+	@$(eval config_data = $(shell cat $(config_file)))
+	@echo "Configuring libcfa with '$(config_data)''"
+	@cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data)
 
 noinst_DATA = @LIBCFA_TARGET_MAKEFILES@
Index: Makefile.in
===================================================================
--- Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -253,5 +253,4 @@
 BACKEND_CC = @BACKEND_CC@     # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CC@
 CCAS = @CCAS@
@@ -894,7 +893,10 @@
  # order important
 
-@LIBCFA_TARGET_MAKEFILES@ :
-	ls $(dir $@)/config.data || (echo "Missing config.data, re-run configure script again" && false)
-	cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(cat config.data)
+@LIBCFA_TARGET_MAKEFILES@ : Makefile
+	@$(eval config_file = $(dir $@)config.data)
+	@ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false)
+	@$(eval config_data = $(shell cat $(config_file)))
+	@echo "Configuring libcfa with '$(config_data)''"
+	@cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data)
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Index: benchmark/Makefile.in
===================================================================
--- benchmark/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ benchmark/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -136,5 +136,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CFACC@
 CCAS = @CCAS@
Index: configure
===================================================================
--- configure	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ configure	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -665,6 +665,16 @@
 CXX
 CFA_FLAGS
+LIBCFA_TARGET_MAKEFILES
+LIBCFA_TARGET_DIRS
+TARGET_HOSTS
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
 BUILD_IN_TREE_FLAGS
-BUILD_IN_TREE_FLAGS_NOLIB
 CFACPP
 CFACC
@@ -678,15 +688,4 @@
 DOendif
 DOifskipcompile
-LIBCFA_TARGET_MAKEFILES
-LIBCFA_TARGET_DIRS
-TARGET_HOSTS
-host_os
-host_vendor
-host_cpu
-host
-build_os
-build_vendor
-build_cpu
-build
 CFA_NAME
 am__untar
@@ -761,6 +760,6 @@
 enable_silent_rules
 with_cfa_name
+with_backend_compiler
 with_target_hosts
-with_backend_compiler
 enable_dependency_tracking
 '
@@ -1421,6 +1420,6 @@
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-cfa-name=NAME     NAME too which cfa will be installed
+  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
   --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib
-  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
 
 Some influential environment variables:
@@ -3086,127 +3085,4 @@
 
 
-#==============================================================================
-# handle the list of hosts to build for
-for var in $ac_configure_args
-do
-	#strip quotes surrouding values
-	var=$(echo $var | sed s/\'//g)
-	case $var in
-		# skip cross compilation related arguments
-		--host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
-
-		# append all other arguments to the sub configure arguments
-		*) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
-	esac
-done
-
-echo $LIBCFA_GENERAL_ARGS
-
-#==============================================================================
-# handle the list of hosts to build for
-# Make sure we can run config.sub.
-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
-  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
-$as_echo_n "checking build system type... " >&6; }
-if ${ac_cv_build+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_build_alias=$build_alias
-test "x$ac_build_alias" = x &&
-  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
-test "x$ac_build_alias" = x &&
-  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
-  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
-$as_echo "$ac_cv_build" >&6; }
-case $ac_cv_build in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
-esac
-build=$ac_cv_build
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_build
-shift
-build_cpu=$1
-build_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-build_os=$*
-IFS=$ac_save_IFS
-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
-$as_echo_n "checking host system type... " >&6; }
-if ${ac_cv_host+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test "x$host_alias" = x; then
-  ac_cv_host=$ac_cv_build
-else
-  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
-    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
-$as_echo "$ac_cv_host" >&6; }
-case $ac_cv_host in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
-esac
-host=$ac_cv_host
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_host
-shift
-host_cpu=$1
-host_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-host_os=$*
-IFS=$ac_save_IFS
-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
-
-
-
-default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
-
-# Check whether --with-target-hosts was given.
-if test "${with_target_hosts+set}" = set; then :
-  withval=$with_target_hosts; target_hosts=$withval
-else
-  target_hosts=${default_target}
-fi
-
-
-TARGET_HOSTS=${target_hosts}
-
-
-for i in $(echo $target_hosts | sed "s/,/ /g")
-do
-	# call your procedure/other scripts here below
-	lib_arch=$(echo $i | sed -r "s/:(.*)//g")
-	lib_config=$(echo $i | sed -r "s/(.*)://g")
-	lib_dir="libcfa-${lib_arch}-${lib_config}"
-
-	LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
-	LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
-
-	mkdir -p libcfa-${lib_arch}-${lib_config}
-	echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
-	echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
-	echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
-done
-
-
-
-
 
 #==============================================================================
@@ -3395,32 +3271,162 @@
 #==============================================================================
 # Create variables for commonly used targets
-DRIVER_DIR='$(top_builddir)/driver'
-CFACC=${DRIVER_DIR}/cfa
-CFACPP=${DRIVER_DIR}/cfa-cpp
-
-
+
+TOP_SRCDIR=$ac_pwd/$ac_confdir/
+TOP_BUILDDIR=$ac_pwd/
+PRELUDE_BUILDDIR=$ac_pwd/libcfa-x86_64-debug/prelude/
 
 
 cat >>confdefs.h <<_ACEOF
-#define TOP_SRCDIR "$ac_pwd/$ac_confdir/"
+#define TOP_SRCDIR "$TOP_SRCDIR"
 _ACEOF
 
 
 cat >>confdefs.h <<_ACEOF
-#define TOP_BUILDDIR "$ac_pwd/"
+#define TOP_BUILDDIR "$TOP_BUILDDIR"
 _ACEOF
 
 
 cat >>confdefs.h <<_ACEOF
-#define PRELUDE_BUILDDIR "$ac_pwd/libcfa/prelude/"
-_ACEOF
+#define PRELUDE_BUILDDIR "$PRELUDE_BUILDDIR"
+_ACEOF
+
+
+DRIVER_DIR=${TOP_BUILDDIR}driver/
+CFACC=${DRIVER_DIR}cfa
+CFACPP=${DRIVER_DIR}cfa-cpp
+
+
 
 
 #==============================================================================
 # Flag variables needed to build in tree
-LIBCFA_SRC='$(top_srcdir)/libcfa/src'
-LIBCFA_BUILD='$(top_builddir)/libcfa/src'
-BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}"
-BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr"
+LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src'
+BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}"
+
+
+#==============================================================================
+# handle the list of hosts to build for
+for var in $ac_configure_args
+do
+	#strip quotes surrouding values
+	var=$(echo $var | sed s/\'//g)
+	case $var in
+		# skip cross compilation related arguments
+		--host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
+
+		# skip the target hosts
+		--with-target-hosts=*) ;;
+
+		# append all other arguments to the sub configure arguments
+		*) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
+	esac
+done
+
+#==============================================================================
+# handle the list of hosts to build for
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test "x$host_alias" = x; then
+  ac_cv_host=$ac_cv_build
+else
+  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+
+default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
+
+# Check whether --with-target-hosts was given.
+if test "${with_target_hosts+set}" = set; then :
+  withval=$with_target_hosts; target_hosts=$withval
+else
+  target_hosts=${default_target}
+fi
+
+
+TARGET_HOSTS=${target_hosts}
+
+
+LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}"
+
+for i in $(echo $target_hosts | sed "s/,/ /g")
+do
+	# call your procedure/other scripts here below
+	lib_arch=$(echo $i | sed -r "s/:(.*)//g")
+	lib_config=$(echo $i | sed -r "s/(.*)://g")
+	lib_dir="libcfa-${lib_arch}-${lib_config}"
+
+	LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
+	LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
+
+	mkdir -p libcfa-${lib_arch}-${lib_config}
+	echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "${LIBCFA_PATHS} " >> libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
+done
+
 
 
Index: configure.ac
===================================================================
--- configure.ac	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ configure.ac	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -28,52 +28,4 @@
 
 AC_SUBST(CFA_NAME, ${cfa_name})
-
-#==============================================================================
-# handle the list of hosts to build for
-for var in $ac_configure_args
-do
-	#strip quotes surrouding values
-	var=$(echo $var | sed s/\'//g)
-	case $var in
-		# skip cross compilation related arguments
-		--host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
-
-		# append all other arguments to the sub configure arguments
-		*) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
-	esac
-done
-
-echo $LIBCFA_GENERAL_ARGS
-
-#==============================================================================
-# handle the list of hosts to build for
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-
-default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
-AC_ARG_WITH(target-hosts,
-	[  --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:[debug|nodebug|nolib]],
-	target_hosts=$withval, target_hosts=${default_target})
-
-AC_SUBST(TARGET_HOSTS, ${target_hosts})
-
-for i in $(echo $target_hosts | sed "s/,/ /g")
-do
-	# call your procedure/other scripts here below
-	lib_arch=$(echo $i | sed -r "s/:(.*)//g")
-	lib_config=$(echo $i | sed -r "s/(.*)://g")
-	lib_dir="libcfa-${lib_arch}-${lib_config}"
-
-	LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
-	LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
-
-	mkdir -p libcfa-${lib_arch}-${lib_config}
-	echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
-	echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
-	echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
-done
-
-AC_SUBST(LIBCFA_TARGET_DIRS)
-AC_SUBST(LIBCFA_TARGET_MAKEFILES)
 
 
@@ -163,22 +115,77 @@
 #==============================================================================
 # Create variables for commonly used targets
-DRIVER_DIR='$(top_builddir)/driver'
-CFACC=${DRIVER_DIR}/cfa
-CFACPP=${DRIVER_DIR}/cfa-cpp
+
+TOP_SRCDIR=$ac_pwd/$ac_confdir/
+TOP_BUILDDIR=$ac_pwd/
+PRELUDE_BUILDDIR=$ac_pwd/libcfa-x86_64-debug/prelude/
+
+AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory])
+AC_DEFINE_UNQUOTED(TOP_BUILDDIR, "$TOP_BUILDDIR", [Top build directory])
+AC_DEFINE_UNQUOTED(PRELUDE_BUILDDIR, "$PRELUDE_BUILDDIR", [Directory where the prelude files are built])
+
+DRIVER_DIR=${TOP_BUILDDIR}driver/
+CFACC=${DRIVER_DIR}cfa
+CFACPP=${DRIVER_DIR}cfa-cpp
 AC_SUBST(DRIVER_DIR)
 AC_SUBST(CFACC)
 AC_SUBST(CFACPP)
-AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$ac_pwd/$ac_confdir/", [Top src directory])
-AC_DEFINE_UNQUOTED(TOP_BUILDDIR, "$ac_pwd/", [Top build directory])
-AC_DEFINE_UNQUOTED(PRELUDE_BUILDDIR, "$ac_pwd/libcfa/prelude/", [Directory where the prelude files are built])
 
 #==============================================================================
 # Flag variables needed to build in tree
-LIBCFA_SRC='$(top_srcdir)/libcfa/src'
-LIBCFA_BUILD='$(top_builddir)/libcfa/src'
-BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}"
-BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr"
-AC_SUBST(BUILD_IN_TREE_FLAGS_NOLIB)
+LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src'
+BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}"
 AC_SUBST(BUILD_IN_TREE_FLAGS)
+
+#==============================================================================
+# handle the list of hosts to build for
+for var in $ac_configure_args
+do
+	#strip quotes surrouding values
+	var=$(echo $var | sed s/\'//g)
+	case $var in
+		# skip cross compilation related arguments
+		--host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
+
+		# skip the target hosts
+		--with-target-hosts=*) ;;
+
+		# append all other arguments to the sub configure arguments
+		*) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
+	esac
+done
+
+#==============================================================================
+# handle the list of hosts to build for
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+
+default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
+AC_ARG_WITH(target-hosts,
+	[  --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:[debug|nodebug|nolib]],
+	target_hosts=$withval, target_hosts=${default_target})
+
+AC_SUBST(TARGET_HOSTS, ${target_hosts})
+
+LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}"
+
+for i in $(echo $target_hosts | sed "s/,/ /g")
+do
+	# call your procedure/other scripts here below
+	lib_arch=$(echo $i | sed -r "s/:(.*)//g")
+	lib_config=$(echo $i | sed -r "s/(.*)://g")
+	lib_dir="libcfa-${lib_arch}-${lib_config}"
+
+	LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
+	LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
+
+	mkdir -p libcfa-${lib_arch}-${lib_config}
+	echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "${LIBCFA_PATHS} " >> libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
+	echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
+done
+
+AC_SUBST(LIBCFA_TARGET_DIRS)
+AC_SUBST(LIBCFA_TARGET_MAKEFILES)
 
 #==============================================================================
Index: driver/Makefile.in
===================================================================
--- driver/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ driver/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -179,5 +179,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CC@
 CCAS = @CCAS@
Index: libcfa/Makefile.in
===================================================================
--- libcfa/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -89,4 +89,6 @@
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -159,6 +161,9 @@
 am__DIST_COMMON = $(srcdir)/Makefile.in \
 	$(top_srcdir)/./automake/compile \
+	$(top_srcdir)/./automake/config.guess \
+	$(top_srcdir)/./automake/config.sub \
 	$(top_srcdir)/./automake/install-sh \
 	$(top_srcdir)/./automake/missing ./automake/compile \
+	./automake/config.guess ./automake/config.sub \
 	./automake/depcomp ./automake/install-sh ./automake/missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -216,5 +221,12 @@
 CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
+CFACC = @CFACC@
+CFACPP = @CFACPP@
+CFA_BINDIR = @CFA_BINDIR@
+CFA_INCDIR = @CFA_INCDIR@
+CFA_LIBDIR = @CFA_LIBDIR@
+CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = @CFLAGS@
+CONFIGURATION = @CONFIGURATION@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
@@ -224,4 +236,5 @@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
+DRIVER_DIR = @DRIVER_DIR@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
@@ -265,5 +278,9 @@
 am__untar = @am__untar@
 bindir = @bindir@
+build = @build@
 build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
 builddir = @builddir@
 datadir = @datadir@
@@ -272,5 +289,9 @@
 dvidir = @dvidir@
 exec_prefix = @exec_prefix@
+host = @host@
 host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
 htmldir = @htmldir@
 includedir = @includedir@
Index: libcfa/automake/config.guess
===================================================================
--- libcfa/automake/config.guess	(revision ff1e0f38b2bf523763024876e746508c1928685e)
+++ libcfa/automake/config.guess	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -0,0 +1,1 @@
+/usr/share/automake-1.15/config.guess
Index: libcfa/automake/config.sub
===================================================================
--- libcfa/automake/config.sub	(revision ff1e0f38b2bf523763024876e746508c1928685e)
+++ libcfa/automake/config.sub	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -0,0 +1,1 @@
+/usr/share/automake-1.15/config.sub
Index: libcfa/configure
===================================================================
--- libcfa/configure	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/configure	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -618,4 +618,20 @@
 CXXFLAGS
 CXX
+CFA_LIBDIR
+CFA_BINDIR
+CFA_INCDIR
+CFA_PREFIX
+CFACPP
+CFACC
+DRIVER_DIR
+CONFIGURATION
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
 AM_BACKSLASH
 AM_DEFAULT_VERBOSITY
@@ -693,4 +709,6 @@
 host_alias
 target_alias
+CONFIGURATION
+DRIVER_DIR
 CXX
 CXXFLAGS
@@ -1315,4 +1333,8 @@
   --program-suffix=SUFFIX            append SUFFIX to installed program names
   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
+
+System types:
+  --build=BUILD     configure for building on BUILD [guessed]
+  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 _ACEOF
 fi
@@ -1336,4 +1358,8 @@
 
 Some influential environment variables:
+  CONFIGURATION
+              The configuration to use when building libcfa, options are:
+              deubg, nodebug, nolib (prelude-only)
+  DRIVER_DIR  The path to the cforall driver directory
   CXX         C++ compiler command
   CXXFLAGS    C++ compiler flags
@@ -2467,4 +2493,138 @@
 # Allow program name tansformation
 # will fill program_transform_name with appropriate sed regex
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test "x$host_alias" = x; then
+  ac_cv_host=$ac_cv_build
+else
+  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+
+
+
+
+CFACC=${DRIVER_DIR}cfa
+CFACPP=${DRIVER_DIR}cfa-cpp
+
+
+
+#==============================================================================
+# Installation paths
+if test "x$prefix" = "xNONE"; then
+	cfa_prefix=${ac_default_prefix}
+else
+	cfa_prefix=${prefix}
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define CFA_PREFIX "${cfa_prefix}"
+_ACEOF
+
+CFA_PREFIX=${cfa_prefix}
+
+
+if test "$includedir" = '${prefix}/include'; then
+ 	cfa_incdir="${cfa_prefix}/include/${cfa_name}"
+else
+ 	cfa_incdir=${includedir}
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define CFA_INCDIR "${cfa_incdir}"
+_ACEOF
+
+CFA_INCDIR=${cfa_incdir}
+
+
+if test "$bindir" = '${exec_prefix}/bin'; then
+ 	cfa_bindir="${cfa_prefix}/bin"
+else
+ 	cfa_bindir=${bindir}
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define CFA_BINDIR "${cfa_bindir}"
+_ACEOF
+
+CFA_BINDIR=${cfa_bindir}
+
+
+if test "$libdir" = '${exec_prefix}/lib'; then
+ 	cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
+else
+ 	cfa_libdir=${libdir}
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define CFA_LIBDIR "${cfa_libdir}"
+_ACEOF
+
+CFA_LIBDIR=${cfa_libdir}
 
 
Index: libcfa/configure.ac
===================================================================
--- libcfa/configure.ac	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/configure.ac	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -16,4 +16,44 @@
 
 AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
+AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
+
+CFACC=${DRIVER_DIR}cfa
+CFACPP=${DRIVER_DIR}cfa-cpp
+AC_SUBST(CFACC)
+AC_SUBST(CFACPP)
+
+#==============================================================================
+# Installation paths
+if test "x$prefix" = "xNONE"; then
+	cfa_prefix=${ac_default_prefix}
+else
+	cfa_prefix=${prefix}
+fi
+AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa install.])
+AC_SUBST(CFA_PREFIX, ${cfa_prefix})
+
+if test "$includedir" = '${prefix}/include'; then
+ 	cfa_incdir="${cfa_prefix}/include/${cfa_name}"
+else
+ 	cfa_incdir=${includedir}
+fi
+AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
+AC_SUBST(CFA_INCDIR, ${cfa_incdir})
+
+if test "$bindir" = '${exec_prefix}/bin'; then
+ 	cfa_bindir="${cfa_prefix}/bin"
+else
+ 	cfa_bindir=${bindir}
+fi
+AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
+AC_SUBST(CFA_BINDIR, ${cfa_bindir})
+
+if test "$libdir" = '${exec_prefix}/lib'; then
+ 	cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
+else
+ 	cfa_libdir=${libdir}
+fi
+AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
+AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
 
 # Checks for programs.
Index: libcfa/prelude/Makefile.am
===================================================================
--- libcfa/prelude/Makefile.am	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/prelude/Makefile.am	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -33,12 +33,12 @@
 # create extra forward types/declarations to reduce inclusion of library files
 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
+	${AM_V_GEN}gcc -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
 
 # create forward declarations for gcc builtins
 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
+	${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
 
 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
+	${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
 
 prelude.cf : prelude-gen.cc
Index: libcfa/prelude/Makefile.in
===================================================================
--- libcfa/prelude/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/prelude/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -90,4 +90,6 @@
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
 subdir = prelude
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -162,5 +164,12 @@
 CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
+CFACC = @CFACC@
+CFACPP = @CFACPP@
+CFA_BINDIR = @CFA_BINDIR@
+CFA_INCDIR = @CFA_INCDIR@
+CFA_LIBDIR = @CFA_LIBDIR@
+CFA_PREFIX = @CFA_PREFIX@
 CFLAGS = @CFLAGS@
+CONFIGURATION = @CONFIGURATION@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
@@ -170,4 +179,5 @@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
+DRIVER_DIR = @DRIVER_DIR@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
@@ -211,5 +221,9 @@
 am__untar = @am__untar@
 bindir = @bindir@
+build = @build@
 build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
 builddir = @builddir@
 datadir = @datadir@
@@ -218,5 +232,9 @@
 dvidir = @dvidir@
 exec_prefix = @exec_prefix@
+host = @host@
 host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
 htmldir = @htmldir@
 includedir = @includedir@
@@ -472,12 +490,12 @@
 # create extra forward types/declarations to reduce inclusion of library files
 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
+	${AM_V_GEN}gcc -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
 
 # create forward declarations for gcc builtins
 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
+	${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
 
 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c
-	${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
+	${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
 
 prelude.cf : prelude-gen.cc
Index: libcfa/src/Makefile.am
===================================================================
--- libcfa/src/Makefile.am	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/src/Makefile.am	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -23,14 +23,14 @@
 
 libcfa-prelude.o : libcfa-prelude.c
-	 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -Wall -O2 -c -o $@ $<
+	 ${AM_V_GEN}gcc  -Wall -O2 -c -o $@ $<
 
-EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ $(DEFAULT_INCLUDES)
+EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c  $(DEFAULT_INCLUDES)
 
-AM_CCASFLAGS = @CFA_FLAGS@
+AM_CCASFLAGS =
 
 #CFLAGS for most libcfa src
 #use -no-include-stdhdr to prevent rebuild cycles
 #The built sources must not depend on the installed headers
-CFLAGS = -quiet -no-include-stdhdr @BUILD_IN_TREE_FLAGS@ ${EXTRA_FLAGS}
+CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ ${EXTRA_FLAGS}
 CC = @CFACC@
 
@@ -60,11 +60,11 @@
 
 concurrency/invoke.o : concurrency/invoke.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 exception.o : exception.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 virtual.o : virtual.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 ${libobjs} : @CFACPP@ ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
Index: libcfa/src/Makefile.in
===================================================================
--- libcfa/src/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ libcfa/src/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -91,4 +91,6 @@
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
 subdir = src
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -242,9 +244,16 @@
 CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
+CFACC = @CFACC@
+CFACPP = @CFACPP@
+CFA_BINDIR = @CFA_BINDIR@
+CFA_INCDIR = @CFA_INCDIR@
+CFA_LIBDIR = @CFA_LIBDIR@
+CFA_PREFIX = @CFA_PREFIX@
 
 #CFLAGS for most libcfa src
 #use -no-include-stdhdr to prevent rebuild cycles
 #The built sources must not depend on the installed headers
-CFLAGS = -quiet -no-include-stdhdr @BUILD_IN_TREE_FLAGS@ ${EXTRA_FLAGS}
+CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ ${EXTRA_FLAGS}
+CONFIGURATION = @CONFIGURATION@
 CPPFLAGS = @CPPFLAGS@
 CXX = @CXX@
@@ -254,4 +263,5 @@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
+DRIVER_DIR = @DRIVER_DIR@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
@@ -295,5 +305,9 @@
 am__untar = @am__untar@
 bindir = @bindir@
+build = @build@
 build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
 builddir = @builddir@
 datadir = @datadir@
@@ -302,5 +316,9 @@
 dvidir = @dvidir@
 exec_prefix = @exec_prefix@
+host = @host@
 host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
 htmldir = @htmldir@
 includedir = @includedir@
@@ -332,6 +350,6 @@
 ARFLAGS = cr
 lib_LIBRARIES = libcfa.a
-EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ $(DEFAULT_INCLUDES)
-AM_CCASFLAGS = @CFA_FLAGS@
+EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c  $(DEFAULT_INCLUDES)
+AM_CCASFLAGS = 
 
 # not all platforms support concurrency, add option do disable it
@@ -1188,5 +1206,5 @@
 
 libcfa-prelude.o : libcfa-prelude.c
-	 ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -Wall -O2 -c -o $@ $<
+	 ${AM_V_GEN}gcc  -Wall -O2 -c -o $@ $<
 
 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
@@ -1202,11 +1220,11 @@
 
 concurrency/invoke.o : concurrency/invoke.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 exception.o : exception.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 virtual.o : virtual.c
-	${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
+	${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
 
 ${libobjs} : @CFACPP@ ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
Index: src/Makefile.in
===================================================================
--- src/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ src/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -321,5 +321,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CC@
 CCAS = @CCAS@
Index: tests/Makefile.in
===================================================================
--- tests/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ tests/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -179,5 +179,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CFACC@
 CCAS = @CCAS@
Index: tests/preempt_longrun/Makefile.in
===================================================================
--- tests/preempt_longrun/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ tests/preempt_longrun/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -338,5 +338,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CFACC@
 CCAS = @CCAS@
Index: tools/Makefile.in
===================================================================
--- tools/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ tools/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -187,5 +187,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @BACKEND_CC@
 CCAS = @CCAS@
Index: tools/prettyprinter/Makefile.in
===================================================================
--- tools/prettyprinter/Makefile.in	(revision c59712ef719214c06c49604e482d89f51c7745d4)
+++ tools/prettyprinter/Makefile.in	(revision ff1e0f38b2bf523763024876e746508c1928685e)
@@ -211,5 +211,4 @@
 BACKEND_CC = @BACKEND_CC@
 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
-BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
 CC = @CC@
 CCAS = @CCAS@
