X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=configure.ac;h=863d0c662ef8295d0bfb3943ff12272a25c0abb0;hb=04321ea9f9ac1185bd7092813c34683aa15cd05f;hp=84e629300c77c3afbef836b5a3d4e43c5cf09abb;hpb=b04699046ef5719331e05f5f9bf41d44d3ea7a4e;p=libfirm diff --git a/configure.ac b/configure.ac index 84e629300..863d0c662 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ dnl AC_PREREQ([2.54]) AC_REVISION([$Id$]) m4_define([firm_major_version], [1]) -m4_define([firm_minor_version], [13]) +m4_define([firm_minor_version], [18]) m4_define([firm_micro_version], [0]) m4_define([firm_version], [firm_major_version.firm_minor_version.firm_micro_version]) @@ -26,11 +26,14 @@ AC_DEFINE([libfirm_VERSION_MAJOR], [firm_major_version], [Firms major version nu AC_DEFINE([libfirm_VERSION_MINOR], [firm_minor_version], [Firms minor version number]) AC_DEFINE([libfirm_VERSION_MICRO], [firm_micro_version], [Firms micro version number]) +dnl enable libtool +LT_INIT([win32-dll]) + dnl generate the config header file AC_CONFIG_HEADER([config.h]) dnl keep track of the environment set by the user -libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}" +libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS -lm'}" AC_SUBST(libfirm_conf_env) dnl Package options @@ -92,18 +95,6 @@ if test "$enable_ilp" = yes; then AC_DEFINE([WITH_ILP], [], [enable to build code using ilp solvers]) fi -dnl enable wchar_t support for identifiers -dnl -------------------------------- -AC_ARG_ENABLE([wchar_support], -[AS_HELP_STRING([--enable-wchar-support], [enable wchar_t support for identifiers (needed for java)])], -[enable_wchar_support="$enableval"], [enable_wchar_support="no"]) - -if test "$enable_wchar_support" = yes; then - FIRMCONFIG_FIRM_ENABLE_WCHAR="#define FIRM_ENABLE_WCHAR" -fi -AC_SUBST([FIRMCONFIG_FIRM_ENABLE_WCHAR]) -AC_SUBST([enable_wchar_support]) - dnl disable backend dnl --------------- AC_ARG_ENABLE([backend], @@ -118,7 +109,6 @@ dnl ==================== dnl check for a C compiler dnl ---------------------- AC_PROG_CC -AC_PROG_LIBTOOL AC_PATH_PROGS(PERL, perl perl5) @@ -131,6 +121,7 @@ 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 ===================== @@ -152,17 +143,7 @@ AC_C_LONG_DOUBLE dnl Checks for library functions. dnl ============================= -dnl check for strerror - -AC_CHECK_FUNC(strerror,, - AC_MSG_ERROR("need strerror function") -) - -dnl we use the gnu extension obstack_printf -AC_DEFINE([_GNU_SOURCE], [], [we use gnu extensions]) -AC_CHECK_FUNC(strerror,, - AC_MSG_ERROR("need obstack_printf function") -) +AC_FUNC_STRTOLD dnl Error messaging dnl =============== @@ -170,7 +151,6 @@ dnl =============== dnl Output results AC_CONFIG_FILES([ - firm_config.h Makefile ir/Makefile include/libfirm/Makefile @@ -181,8 +161,8 @@ AC_CONFIG_FILES([ AC_DEFINE([INLINE], [inline], [define inline to compiler inline keyword]) BACKENDS="" -if test "$enable_backend" == yes; then - BACKENDS="arm ia32 mips ppc32" +if test "$enable_backend" = yes; then + BACKENDS="arm ia32 mips ppc32 sparc" fi AC_SUBST([BACKENDS]) @@ -197,6 +177,4 @@ echo " debug/verifiers $enable_debug_libfirm" echo " assertions $enable_assert" echo " statistics $enable_statistics" echo " ilp $enable_ilp" -echo " jvm $enable_jvm" -echo " wide char support $enable_wchar_support" echo ""