$NetBSD: patch-configure,v 1.7 2025/09/29 21:57:06 gutteridge Exp $ * Do not include -std=gnu11 in CC and PTHREAD_CC to fix compile. * POSIX shell portability. --- configure.orig 2025-09-26 19:28:23.000000000 +0000 +++ configure @@ -5171,7 +5171,8 @@ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do - CC="$ac_save_CC $ac_arg" + CC="$ac_save_CC" + CFLAGS="$CFLAGS $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg @@ -5196,7 +5197,8 @@ printf "%s\n" "none needed" >&6; } else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" ;; + CC="$CC" + CFLAGS="$CFLAGS $ac_cv_prog_cc_c11" ;; esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 @@ -19806,7 +19808,7 @@ fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi -(test -z "$LEX" || test "$LEX" == ':') && +(test -z "$LEX" || test "$LEX" = ':') && as_fn_error $? "No flex/lex program found. Please install the \"flex\" or \"btyacc\" package." "$LINENO" 5 @@ -28227,7 +28229,7 @@ else printf "%s\n" fi -if test "x${ASpellFound}" == "xyes"; then +if test "x${ASpellFound}" = "xyes"; then printf %s " ---------- Caution: Aspell version 0.60.8 and possibly others leak memory!