X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libmudflap%2Fconfigure.ac;h=9352760170c5cb422087be81bd275e992103ae4a;hb=db899978cbb5a0ffe7e7ddf741c5c61f949f28d2;hp=039ff4e5f5c44774fa5c6331bd08bc4ff877408d;hpb=83703eea9ce67d68f2e051fcb6391000f9aebcc0;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libmudflap/configure.ac b/libmudflap/configure.ac index 039ff4e5f5c..9352760170c 100644 --- a/libmudflap/configure.ac +++ b/libmudflap/configure.ac @@ -1,10 +1,11 @@ # Process this file with autoconf to produce a configure script, like so: -# aclocal && autoconf && autoheader && automake +# aclocal -I .. -I ../config && autoconf && autoheader && automake -AC_PREREQ(2.59) +AC_PREREQ(2.64) AC_INIT(libmudflap, 1.0) AC_CONFIG_SRCDIR(mf-runtime.c) AC_CANONICAL_SYSTEM +ACX_NONCANONICAL_TARGET AM_INIT_AUTOMAKE @@ -38,7 +39,7 @@ AC_LANG_C m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) m4_define([_AC_ARG_VAR_PRECIOUS],[]) AC_PROG_CC -m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) +m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) AC_SUBST(CFLAGS) @@ -74,6 +75,7 @@ AC_CHECK_FUNCS(getservent getservbyname getservbyport getaddrinfo gai_strerror) AC_CHECK_FUNCS(getprotoent getprotobyname getprotobynumber) AC_CHECK_FUNCS(getmntent setmntent addmntent) AC_CHECK_FUNCS(inet_ntoa mmap munmap) +AC_CHECK_FUNCS(__libc_freeres) AC_TRY_COMPILE([#include #include @@ -175,6 +177,9 @@ esac AC_SUBST(toolexecdir) AC_SUBST(toolexeclibdir) +includedir=${toolexecdir}/include +AC_SUBST(includedir) + pthread_create_version='""' if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then # NB: don't check for -lpthread here, because then it would be @@ -241,7 +246,7 @@ AC_SUBST(SECTION_FLAGS) AC_CACHE_CHECK([for the name of the symbol used for the entry point], [mudflap_cv_entry_point], [ for name in _start __start unknown; do - AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name;], [$name = 0;])], + AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name@<:@@:>@;], [$name@<:@0@:>@ = 0;])], [break]) done mudflap_cv_entry_point="$name"]) @@ -260,6 +265,7 @@ fi # See if we support thread-local storage. GCC_CHECK_TLS +GCC_CHECK_EMUTLS AC_CONFIG_FILES([Makefile testsuite/Makefile testsuite/mfconfig.exp]) AC_OUTPUT