diff --git a/ChangeLog b/ChangeLog index 9578518057..4fca2c433b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Dec 29 10:10:39 2012 Nobuyoshi Nakada + + * configure.in (crt_externs.h): use standard macro AC_CHECK_HEADERS. + Fri Dec 28 23:12:44 2012 Charlie Somerville * configure.in: check for the whether crt_externs.h is present when compiling diff --git a/configure.in b/configure.in index 9e97d6113d..ee297ef371 100644 --- a/configure.in +++ b/configure.in @@ -1220,12 +1220,7 @@ main() LINK_SO="$LINK_SO $POSTLINK" fi - AC_CACHE_CHECK(whether crt_externs.h is present for extern macro, rb_cv_crt_externs, - [AC_TRY_COMPILE([ #include ], [return 0;], - rb_cv_crt_externs=yes, rb_cv_crt_externs=no)]) - if test "$rb_cv_crt_externs" = yes; then - AC_DEFINE(HAVE_CRT_EXTERNS_H) - fi + AC_CHECK_HEADERS(crt_externs.h) ], [hpux*], [ LIBS="-lm $LIBS" ac_cv_c_inline=no],