Add constructor to signal_catchpoint
[binutils-gdb.git] / gprofng / configure.ac
index 95bffe0e4e22a7841068ab3e18eb30e042f29ac5..63b505c5e14005a443f7899d9357498436e721a1 100644 (file)
@@ -17,6 +17,7 @@ dnl along with this program; see the file COPYING3.  If not see
 dnl <http://www.gnu.org/licenses/>.
 
 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