-dnl PSI_FUNC_LIBC_MAIN()
-dnl Check for the platforms default stub in executables.
-AC_DEFUN(PSI_FUNC_LIBC_MAIN, [
- AC_REQUIRE([AC_PROG_AWK])
- AC_CACHE_CHECK(for libc start main symbol, psi_cv_libc_main, [
- psi_libc_main=
- AC_TRY_LINK(PSI_INCLUDES, [(void)0;], [
- psi_libc_main=`nm -g conftest$ac_exeext | $AWK -F ' *|@' '/^@<:@@<:@:space:@:>@@:>@+U / {print$[]3; exit}'`
- ])
- psi_cv_libc_main=$psi_libc_main
- ])
-])
-
-dnl PSI_DECL_ARGS(decl args)