X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi_decl.m4;h=3bc2558d593cbf60cc23a121c29cff6a71ef64bb;hp=a08197e6b2947f48530bc220ff9e9773febadeb4;hb=ff9d77817b7feffd43dacd8e5b1d5f644a35ae7d;hpb=bd7cdec42afa560883c47f3803a30cb580cf152f diff --git a/m4/psi_decl.m4 b/m4/psi_decl.m4 index a08197e..3bc2558 100644 --- a/m4/psi_decl.m4 +++ b/m4/psi_decl.m4 @@ -7,7 +7,7 @@ AC_DEFUN(PSI_FUNC_LIBC_MAIN, [ 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" *|@" '/^\s+U / {print$[]3; exit}'` + psi_libc_main=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^@<:@@<:@:space:@:>@@:>@+U / {print$[]3; exit}'` ]) psi_cv_libc_main=$psi_libc_main ]) @@ -22,7 +22,7 @@ AC_DEFUN(PSI_FUNC, [ AC_TRY_LINK(PSI_INCLUDES, [ void (*fn)(void) = (void (*)(void)) $psi_symbol; ], [ - psi_symbol_redirect=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^\s+U '$psi_cv_libc_main'/ {next} /^\s+U / {print$[]3; exit}'` + psi_symbol_redirect=`$NM -g conftest$ac_exeext | $AWK -F" *|@" '/^@<:@@<:@:space:@:>@@:>@+U '$psi_cv_libc_main'/ {next} /^@<:@@<:@:space:@:>@@:>@+U / {print$[]3; exit}'` ]) psi_cv_fn_$1=$psi_symbol_redirect ])