X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gprofng%2Fconfigure.ac;h=63b505c5e14005a443f7899d9357498436e721a1;hb=e02f53e50ebebfb8f020516a48d5581793748c6f;hp=95bffe0e4e22a7841068ab3e18eb30e042f29ac5;hpb=6c924cf21caae1d6f277d281eb276b2bab2ef4ba;p=binutils-gdb.git diff --git a/gprofng/configure.ac b/gprofng/configure.ac index 95bffe0e4e2..63b505c5e14 100644 --- a/gprofng/configure.ac +++ b/gprofng/configure.ac @@ -17,6 +17,7 @@ dnl along with this program; see the file COPYING3. If not see dnl . m4_include([../bfd/version.m4]) +m4_include([../config/zlib.m4]) AC_INIT([gprofng], BFD_VERSION) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([subdir-objects]) @@ -28,6 +29,10 @@ AC_PROG_CXX AC_PROG_INSTALL AC_PROG_RANLIB AM_PROG_AR +gl_PROG_BISON([BISON],[3.0.4]) +if test x$BISON = "x:"; then + AC_MSG_ERROR([Building gprofng requires bison 3.0.4 or later.]) +fi AC_DISABLE_SHARED LT_INIT @@ -49,18 +54,13 @@ gprofng_cppflags="-U_ASM" build_collector= build_src= -# This is annoying: it means we have to pass --enable-shared explicitly to -# get gprofng, while the configure default is supposed to be that shared libs -# are on by default. But as long as libiberty has code like this, so must -# we... - - case "${target}" in + case "${host}" in x86_64-*-linux*) build_src=true build_collector=true ;; i?86-*-linux*) - build_collector=true + build_src=true build_collector=true ;; aarch64-*-linux*) @@ -182,6 +182,7 @@ fi` ]) AM_CONDITIONAL(TCL_TRY, test "${ac_cv_libctf_tcl_try}" = yes) +AM_ZLIB # Generate manpages, if possible. if test $cross_compiling = no; then