aboutsummaryrefslogtreecommitdiff
path: root/gprofng/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'gprofng/configure.ac')
-rw-r--r--gprofng/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/gprofng/configure.ac b/gprofng/configure.ac
index d7a2c38..deb3ed5 100644
--- a/gprofng/configure.ac
+++ b/gprofng/configure.ac
@@ -33,6 +33,7 @@ gl_PROG_BISON([BISON],[3.0.4])
AC_DISABLE_SHARED
LT_INIT
+AC_C_BIGENDIAN
GPROFNG_LIBADD="-L../../libiberty -liberty"
if test "$enable_shared" = "yes"; then
@@ -244,6 +245,10 @@ AC_SUBST(GPROFNG_CPPFLAGS, [${gprofng_cppflags}])
AC_CHECK_DECLS([basename])
AC_CHECK_FUNCS(clock_gettime strsignal)
+# For riscv builds inside incomplete environments such as during intermediate
+# steps of cross toolchain building, or with outdated Linux headers.
+AC_CHECK_HEADERS(asm/hwprobe.h)
+
clock_gettime_link=
# At least for glibc, clock_gettime is in librt. But don't
# pull that in if it still doesn't give us the function we want. This