Branch: Tag:

2015-04-14

2015-04-14 09:45:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Configure: TEST_BUILTIN{,_VOID} now know about the configure cache.

2315:      define(TEST_BUILTIN, [    AC_MSG_CHECKING(for $1) +  AC_CACHE_VAL(translit([pike_cv_builtin_$1], [A-Z], [a-z]), [    AC_TRY_LINK([   $3   ],[
2323:   foo = (int)$1($2);   return 0;   ], -  AC_MSG_RESULT(yes) +  translit([pike_cv_builtin_$1], [A-Z], [a-z])="yes", +  translit([pike_cv_builtin_$1], [A-Z], [a-z])="no") +  ]) +  AC_MSG_RESULT($$translit([pike_cv_builtin_$1], [A-Z], [a-z])) +  if test "$$translit([pike_cv_builtin_$1], [A-Z], [a-z])" = "yes"; then    AC_DEFINE(translit([HAS_$1], [a-z], [A-Z]), 1, [Whether $1 is available]) -  , -  AC_MSG_RESULT(no) -  ) +  fi   ])         define(TEST_BUILTIN_VOID, [    AC_MSG_CHECKING(for $1) -  +  AC_CACHE_VAL(translit([pike_cv_builtin_$1], [A-Z], [a-z]), [    AC_TRY_LINK([   $3   ],[
2340:   $1($2);   return 0;   ], -  AC_MSG_RESULT(yes) +  translit([pike_cv_builtin_$1], [A-Z], [a-z])="yes", +  translit([pike_cv_builtin_$1], [A-Z], [a-z])="no") +  ]) +  AC_MSG_RESULT($$translit([pike_cv_builtin_$1], [A-Z], [a-z])) +  if test "$$translit([pike_cv_builtin_$1], [A-Z], [a-z])" = "yes"; then    AC_DEFINE(translit([HAS_$1], [a-z], [A-Z]), 1, [Whether $1 is available]) -  , -  AC_MSG_RESULT(no) -  ) +  fi   ])      # RDRND hardware random support