Author: Helmut Grohne Subject: Patch fixes a bug in blt's configure script which makes it FTBFS when the CC variable is exported. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136377 Last-Modified: Thu, 11 Jun 2026 13:09:16 +0300 --- a/configure.in +++ b/configure.in @@ -83,34 +83,20 @@ # # ----------------------------------------------------------------------- -BLT_ENV_CC=$CC - # # CC search order # # 1. command line (--with-cc) # 2. environment variable ($CC) # 3. cached variable ($blt_cv_prog_cc) -# 4. check for program (AC_PROG_CC) -# 4. default to cc +# Discover using AC_PROG_CC # -AC_MSG_CHECKING([which C compiler]) if test "x${blt_with_cc}" != "x" ; then CC=${blt_with_cc} - unset ac_cv_prog_CPP - unset ac_cv_prog_CC -elif test "x${BLT_ENV_CC}" != "x" ; then - unset ac_cv_prog_CPP - unset ac_cv_prog_CC -elif test "x${blt_cv_prog_cc}" != "x" ; then - CC=${blt_cv_prog_cc} - unset ac_cv_prog_CC -else - AC_PROG_CC fi -if test "x${CC}" = "x" ; then - CC=cc +if test "x$CC" = x && test "x${blt_cv_prog_cc}" != "x" ; then + CC=${blt_cv_prog_cc} fi case $target in @@ -121,7 +107,7 @@ ;; esac -AC_MSG_RESULT([$CC]) +AC_PROG_CC unset blt_cv_prog_cc AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC)