dnl Process this file with autoconf to produce a configure script.
dnl
-dnl Copyright (C) 2012-2018 Free Software Foundation, Inc.
+dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
dnl
dnl This file is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl <http://www.gnu.org/licenses/>.
dnl
-AC_PREREQ(2.59)
m4_include([../bfd/version.m4])
AC_INIT([binutils], BFD_VERSION)
AC_CONFIG_SRCDIR(ar.c)
AC_HEADER_SYS_WAIT
ACX_HEADER_STRING
AC_FUNC_ALLOCA
+AC_FUNC_MMAP
AC_CHECK_FUNCS(sbrk utimes setmode getc_unlocked strcoll setlocale)
AC_CHECK_FUNC([mkstemp],
AC_DEFINE([HAVE_MKSTEMP], 1,
fi
done
+
+AC_MSG_CHECKING([for libctf support])
+case "${target}" in
+ *-*-pe | *-*-*vms* | *-*-darwin | *-*-*coff* | *-*-wince | *-*-mingw*)
+ AC_CACHE_VAL(bu_cv_libctf_support, bu_cv_libctf_support=no)
+ ;;
+ *-*-aout | *-*-osf* | *-*-go32 | *-*-macos* | *-*-rhapsody*)
+ AC_CACHE_VAL(bu_cv_libctf_support, bu_cv_libctf_support=no)
+ ;;
+ *-*-netbsdpe | *-*-cygwin* | *-*-pep | *-*-msdos | *-*-winnt)
+ AC_CACHE_VAL(bu_cv_libctf_support, bu_cv_libctf_support=no)
+ ;;
+ ns32k-*-* | pdp11-*-* | *-*-aix* | *-*-netbsdaout)
+ AC_CACHE_VAL(bu_cv_libctf_support, bu_cv_libctf_support=no)
+ ;;
+ *)
+ AC_CACHE_VAL(bu_cv_libctf_support, bu_cv_libctf_support=yes)
+ ;;
+esac
+AC_MSG_RESULT($bu_cv_libctf_support)
+if test $bu_cv_libctf_support = yes; then
+ AC_DEFINE(HAVE_LIBCTF, 1, [Is libctf available?])
+fi
+LIBCTF=
+if test $bu_cv_libctf_support = yes; then
+ LIBCTF=../libctf/libctf.a
+fi
+
+
# Uniq objdump private vector, build objdump target ofiles.
od_files=
f=""
AC_SUBST(BUILD_INSTALL_MISC)
AC_SUBST(OBJDUMP_DEFS)
AC_SUBST(OBJDUMP_PRIVATE_OFILES)
+AC_SUBST(LIBCTF)
AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])