X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=5abc16fde932a6d18e14530ea180f15e286773a8;hb=f17f2942d77a9a00a1b6e15e5d4d582b0ba8eb61;hp=cd25b449f3979c47f0827f64e775836a470b1ad9;hpb=f143dc1566ff13bcfa812b854b245c45099c1102;p=libfirm diff --git a/configure.in b/configure.in index cd25b449f..5abc16fde 100644 --- a/configure.in +++ b/configure.in @@ -2,17 +2,17 @@ dnl \ dnl Project: libFIRM dnl File name: configure.in dnl Purpose: -dnl Author: Till Riedel, Matthias Braun +dnl Author: Matthias Braun dnl CVS-ID: $Id$ dnl Copyright: (c) 2002-2007 University of Karlsruhe dnl Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. dnl AC_PREREQ([2.54]) AC_REVISION([$Id$]) -AC_INIT([libfirm],[1.3.0],[firm@info.uni-karlsruhe.de]) +AC_INIT([libfirm],[1.9.0],[firm@ipd.info.uni-karlsruhe.de]) dnl generate the config header file -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADER([config.h]) AH_TOP([]) @@ -161,18 +161,6 @@ AC_ARG_ENABLE([libcore], [AS_HELP_STRING([--disable-libcore], [disable libcore support])], [enable_libcore="$enableval"],[enable_libcore="yes"]) -#if test "$enable_libcore" = yes; then -# AC_MSG_CHECKING([for libcore]) -# PKG_CHECK_MODULES([libcore], -# LIBS="$LIBS -lcore" -# AC_LINK_IFELSE( -# AC_LANG_PROGRAM([#include ], -# [lc_opts_init("", 0, "", 1, 0)]), -# [], -# [AC_MSG_ERROR( -# [Couldn't build libcore testprogramm. Check config.log for details])]) -# AC_DEFINE([WITH_LIBCORE], [], [compile with libcore support]) -#fi AC_SUBST([enable_libcore]) dnl enable ILP solver support @@ -216,6 +204,14 @@ AC_ARG_ENABLE([external-effects], AC_SUBST(enable_external_effects) +dnl disable backend +dnl --------------- +AC_ARG_ENABLE([backend], +[AS_HELP_STRING([--disable-backend], [disable backends])], +[enable_backend="$enableval"], [enable_backend="yes"]) + +AC_SUBST(enable_backend) + dnl Checks for programs. dnl ==================== @@ -379,6 +375,7 @@ fi if test "$enable_libcore" == "yes"; then PKG_CHECK_MODULES([LIBCORE], [libcore]) + AC_DEFINE([WITH_LIBCORE], [], [define to 1 to use the libcore]) fi dnl Checks for typedefs, structures, and compiler characteristics. @@ -408,6 +405,7 @@ dnl Error messaging dnl =============== +dnl Output results AC_CONFIG_FILES([ Makefile MakeRules @@ -438,11 +436,26 @@ AC_CONFIG_COMMANDS([stamp-h], [touch stamp-h]) dnl snip the lower part of config.h and put it to ir/config/firm_config.h AC_CONFIG_COMMANDS([firm_config.h], [awk -f ${ac_top_srcdir}/filter.awk < ${ac_top_builddir}config.h > ${ac_top_builddir}ir/config/firm_config.h]) + +BACKENDS="" +if test "$enable_backend" == yes; then + BACKENDS="arm ia32 mips ppc32" +fi +AC_SUBST([BACKENDS]) + +if test "$BACKENDS"; then + AC_CONFIG_FILES([ir/be/Makefile]) + for backend in $BACKENDS; do + AC_CONFIG_FILES([ir/be/$backend/Makefile]) + done +fi + AC_OUTPUT dnl output summary of firm configuration echo "" echo "firm configuration summary:" +echo " backends $BACKENDS" echo " profiling $enable_profile_libfirm" echo " debug/verifiers $enable_debug_libfirm" echo " assertions $enable_assert"