X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure.ac;h=71109089c6b9065ecfc65617d17382bbd65e9a3f;hb=5baeb7adbb892d71ead14a2fc3d71bae2d45d38e;hp=5af54e6da0de9b77d98fd0b9ee1064432c4fec4d;hpb=6c6dfca45f28f797b7926a310be12b2f9754d8cf;p=libfirm diff --git a/configure.ac b/configure.ac index 5af54e6da..71109089c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,12 @@ dnl configure.ac file for libfirm, author Matthias Braun dnl Process this file with autoconf to produce a configure script. AC_PREREQ([2.60]) -AC_REVISION([$Id$]) dnl Firm Versions dnl * Increment major/minor/micro version as you see fit. These 3 numbers dnl are intended for humans and are independent from the libtool versions m4_define([firm_major_version], [1]) -m4_define([firm_minor_version], [19]) +m4_define([firm_minor_version], [21]) m4_define([firm_micro_version], [0]) m4_define([firm_version], [firm_major_version.firm_minor_version.firm_micro_version]) @@ -30,7 +29,9 @@ m4_define([lt_release], [firm_major_version]) AC_INIT([libfirm], [firm_version], [firm@ipd.info.uni-karlsruhe.de]) AC_CONFIG_SRCDIR([ir/common/firm.c]) -AM_INIT_AUTOMAKE([foreign dist-bzip2 1.9]) +AM_INIT_AUTOMAKE([foreign dist-bzip2 silent-rules 1.11]) + +AM_SILENT_RULES([yes]) AC_DEFINE([libfirm_VERSION_MAJOR], [firm_major_version], [Firms major version number]) AC_DEFINE([libfirm_VERSION_MINOR], [firm_minor_version], [Firms minor version number]) @@ -38,8 +39,8 @@ AC_DEFINE([libfirm_VERSION_MICRO], [firm_micro_version], [Firms micro version nu LT_VERSION="lt_current:lt_revision:lt_age" AC_SUBST([LT_VERSION]) -LT_RELEASE="lt_release" -AC_SUBST([LT_RELEASE]) +#LT_RELEASE="lt_release" +#AC_SUBST([LT_RELEASE]) dnl enable libtool LT_INIT([win32-dll]) @@ -48,11 +49,11 @@ AC_SUBST([LIBTOOL_DEPS]) dnl generate the config header file AC_CONFIG_HEADER([config.h]) -dnl enable visibility hidden -CFLAGS="-fvisibility=hidden" AC_DEFINE([FIRM_BUILD], [], [Defined when firm library is built]) AC_DEFINE([FIRM_DLL], [], [Define when a dynamically loadable shared library is built]) +AC_CONFIG_MACRO_DIR([m4]) + dnl Package options dnl =============== @@ -81,24 +82,6 @@ if test "$enable_assert" = no; then fi AC_SUBST([enable_assert]) -dnl enable ILP solver support -dnl -------------------------------- -AC_ARG_ENABLE([ilp], -[AS_HELP_STRING([--enable-ilp], [enable ilp solver])], -[enable_ilp="$enableval"], [enable_ilp="no"]) - -if test "$enable_ilp" = yes; then - AC_DEFINE([WITH_ILP], [], [enable to build code using ilp solvers]) -fi - -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 ==================== @@ -106,6 +89,10 @@ dnl check for a C compiler dnl ---------------------- AC_PROG_CC +dnl enable visibility hidden (if supported) +AX_CFLAGS_GCC_OPTION([-fvisibility=hidden]) + + AC_PATH_PROGS(PERL, perl perl5) dnl check for awk @@ -117,7 +104,6 @@ dnl ======================== AC_HEADER_STDC AC_CHECK_HEADERS([math.h], , AC_MSG_ERROR("math header file not found")) -AC_CHECK_HEADERS([alloca.h]) dnl Checks for libraries. dnl ===================== @@ -134,12 +120,6 @@ AC_C_CONST AC_C_VOLATILE AC_C_INLINE AC_C_BIGENDIAN(,,,) -AC_C_LONG_DOUBLE - -dnl Checks for library functions. -dnl ============================= - -AC_FUNC_STRTOLD dnl Error messaging dnl =============== @@ -153,20 +133,4 @@ AC_CONFIG_FILES([ libfirm.pc ]) -BACKENDS="" -if test "$enable_backend" = yes; then - BACKENDS="arm ia32 mips sparc amd64" -fi -AC_SUBST([BACKENDS]) - 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" -echo " ilp $enable_ilp" -echo ""