1 # FP_PROG_LD_NO_COMPACT_UNWIND
2 # ----------------------------
3 # Sets the output variable LdHasNoCompactUnwind to YES if ld supports
4 # -no_compact_unwind, or NO otherwise.
5 AC_DEFUN([FP_PROG_LD_NO_COMPACT_UNWIND],
7 AC_CACHE_CHECK([whether ld understands -no_compact_unwind], [fp_cv_ld_no_compact_unwind],
11 echo 'int foo() { return 0; }' > conftest.c
12 "${CC-cc}" -c conftest.c
13 if "$LD" -r -no_compact_unwind -o conftest2.o conftest.o > /dev/null 2>&1; then
14 fp_cv_ld_no_compact_unwind=yes
16 fp_cv_ld_no_compact_unwind=no
20 fp_cv_ld_no_compact_unwind=no ;;
23 FP_CAPITALIZE_YES_NO(["$fp_cv_ld_no_compact_unwind"], [LdHasNoCompactUnwind])
24 AC_SUBST([LdHasNoCompactUnwind])
25 ])# FP_PROG_LD_NO_COMPACT_UNWIND