# Fix OSX build issue.
# See: https://github.com/bioconda/bioconda-recipes/pull/20874
diff -ruN c++/src/build-system/configure c++/src/build-system/configure
--- c++/src/build-system/configure	2023-05-03 08:56:44.398601956 +0200
+++ c++/src/build-system/configure	2023-05-03 09:34:41.470127549 +0200
@@ -9732,10 +9732,12 @@
       CONF_loadable_ext=".dylib"
    fi
    if test "$compiler" = AppleClang \
-      ||  ("$compiler" = GCC  &&  $CXX -v 2>&1 | grep -q Apple) ; then
+      ||  test "$compiler" = LLVMClang \
+      ||  (test "$compiler" = GCC  &&  $CXX -v 2>&1 | grep -i -q Apple) ; then
       CFLAGS="-fpascal-strings $CFLAGS"
       CXXFLAGS="-fpascal-strings $CXXFLAGS"
-      if test "$compiler" = AppleClang; then
+      if test "$compiler" = AppleClang \
+         || test "$compiler" = LLVMClang; then
          try_old_sdks=no
       else
          try_old_sdks=$with_ncbi_public
@@ -10142,7 +10144,7 @@
 else
   ac_cv_header_stdc=no
 fi
-rm -f conftest*
+rm -rf conftest*

 fi

@@ -10159,7 +10161,7 @@
 else
   ac_cv_header_stdc=no
 fi
-rm -f conftest*
+rm -rf conftest*

 fi
