$NetBSD: patch-ad,v 1.13 2025/02/20 14:34:52 manu Exp $ --- configure.orig 2025-02-10 16:22:04.000000000 +0100 +++ configure 2025-02-18 15:57:17.613190582 +0100 @@ -4310,15 +4310,15 @@ printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then + if test "X${GCC}" = "Xyes" ; then CFLAGS="-g -O2" else CFLAGS="-g" fi else - if test "$GCC" = yes; then + if test "X${GCC}" = "Xyes" ; then CFLAGS="-O2" else CFLAGS= fi @@ -9057,9 +9057,9 @@ fi fi if test x"$objc_threaded" = x""; then - LIBS="$OBJCRT $saved_LIBS -lthread " + LIBS="$OBJCRT $saved_LIBS ${OBJC_THREAD} " if test "$cross_compiling" = yes then : objc_threaded="" else $as_nop @@ -9068,9 +9068,9 @@ #include "config_thread.m" _ACEOF if ac_fn_c_try_run "$LINENO" then : - objc_threaded="-lthread" + objc_threaded="${OBJC_THREAD}" else $as_nop objc_threaded="" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \