Skip to content

Commit

Permalink
Configure: Fix failure of FSEvents to configure with --disable-binary
Browse files Browse the repository at this point in the history
FSEvents uses AC_CHECK_DECLS in its configure script.  AC_CHECK_DECLS
has an internal test where it tries to figure out what flag to pass
to the compiler to make compilation of a certain piece of code _fail_.
But nobinary_dummy "succeeds" at compiling anything, which makes it
impossible for this configure test to succeed.  Work around the issue
by pre-seeding the cache with the desired outcome for the internal test.

Also, fix the incorrect test guarding the assignment of CC to
$BINDIR/nobinary_dummy.
  • Loading branch information
zeldin authored and grubba committed Nov 2, 2024
1 parent 1fc6b22 commit dd92b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,12 @@ define([MY_AC_PROG_CC],
AC_PROG_CC
undefine([ac_cv_prog_CC])
AC_PROG_CPP
if test "x$enable_binary" = "no"; then
if test "x$enable_binary" = x"no"; then
# Do the check above even when --disable-binary is used, since we
# need a real $CPP, and AC_PROG_CPP wants AC_PROG_CC to be called
# earlier.
CC="$BINDIR/nobinary_dummy cc"
ac_cv_c_undeclared_builtin_options='none needed'
fi
])

Expand Down

0 comments on commit dd92b9f

Please sign in to comment.