diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 030b79e3c9..973445f56f 100644 --- a/configure.in +++ b/configure.in @@ -2079,14 +2079,19 @@ main(int argc, char *argv[]) test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD) fi -AS_CASE(["$target_os"], -[freebsd*], [ +AS_CASE(["$target_cpu-$target_os"], +[*-freebsd*], [ AC_CHECK_HEADERS([/usr/local/include/execinfo.h]) if test "x$ac_cv_header__usr_local_include_execinfo_h" = xyes; then : RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include) LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib" DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }-L/usr/local/lib" AC_CHECK_LIB([execinfo], [backtrace]) + fi], +[x86_64-netbsd*], [ + AC_CHECK_HEADERS([execinfo.h]) + if test "x$ac_cv_header_execinfo_h" = xyes; then : + AC_CHECK_LIB([execinfo], [backtrace]) fi]) AC_CHECK_FUNCS(backtrace) |