X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libmudflap%2Fconfigure.ac;h=83aba5a5ba87750a8c52ec39bdf5176d6da78511;hb=1e1a2ac6404675c91ff15a11750d693651a9b274;hp=c7d69d549c37606f7b17beb2bcff06dc885a6c9b;hpb=9abe4a663b3c2836c281d0431381e850b3feb174;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libmudflap/configure.ac b/libmudflap/configure.ac index c7d69d549c3..83aba5a5ba8 100644 --- a/libmudflap/configure.ac +++ b/libmudflap/configure.ac @@ -1,13 +1,13 @@ # Process this file with autoconf to produce a configure script, like so: # 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 +AM_INIT_AUTOMAKE([no-dist]) AC_MSG_CHECKING([for --enable-version-specific-runtime-libs]) AC_ARG_ENABLE(version-specific-runtime-libs, @@ -62,7 +62,7 @@ enable_shared=no]) AC_CHECK_HEADERS(stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \ netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \ - sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h) + sys/mnttab.h sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h) AC_CHECK_FUNCS(backtrace backtrace_symbols gettimeofday signal) AC_CHECK_FUNCS(fopen64 fseeko64 ftello64 stat64 freopen64) @@ -75,7 +75,9 @@ 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(mmap64) AC_CHECK_FUNCS(__libc_freeres) +AC_CHECK_FUNCS(rawmemchr stpcpy mempcpy) AC_TRY_COMPILE([#include #include @@ -110,12 +112,6 @@ else fi AC_SUBST(MF_HAVE_UINTPTR_T) -if test ! -d pth -then - # libmudflapth objects are built in this subdirectory - mkdir pth -fi - AC_CHECK_HEADERS(pthread.h) AC_MSG_CHECKING([for thread model used by GCC]) @@ -147,6 +143,9 @@ AC_SUBST(build_libmudflapth) AC_CHECK_LIB(dl, dlsym) +AC_CHECK_FUNC(connect,, AC_CHECK_LIB(socket, connect)) +AC_CHECK_FUNC(sched_yield,, AC_CHECK_LIB(rt, sched_yield)) + # Calculate toolexeclibdir # Also toolexecdir, though it's only used in toolexeclibdir case ${version_specific_libs} in