--- configure.orig	2026-05-19 09:32:07 UTC
+++ configure
@@ -10903,7 +10903,7 @@ g++-* | g++ | ccache*g++ | ccache*g++-* )
     fi
     ;;
 
-*clang++ | clang++*)
+c++ | *clang++ | clang++*)
     # enable the code coverage
     if test "$enable_code_coverage" = yes; then
         CODECOVERAGE_CXXFLAGS="-fprofile-arcs -ftest-coverage"
@@ -10968,7 +10968,7 @@ case "$host" in
 #### 64 bits detection
 IS_64_BITS_CPU=false
 case "$host" in
-         x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd*)
+         x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd* | amd64-*-freebsd* | powerpc64*-*-freebsd*)
                 IS_64_BITS_CPU=true
     ;;
 esac
@@ -10978,7 +10978,7 @@ case "$CC" in
 ############
 
 case "$CC" in
-gcc-* | gcc | ccache*gcc | ccache*gcc-* )
+gcc-* | gcc | ccache*gcc | ccache*gcc-* | cc | clang** )
     ## With GNU Compiler
 
     # enable the code coverage
@@ -11292,11 +11292,11 @@ fi
 fi
 
 
-# check if the compiler supports c++17
+# check if the compiler supports c++20 (required for arrow)
 saved_cppflags="$CXXFLAGS"
 CXXFLAGS=""
 
-  ax_cxx_compile_alternatives="17 1z"    ax_cxx_compile_cxx17_required=true
+  ax_cxx_compile_alternatives="20 1z"    ax_cxx_compile_cxx17_required=true
   ac_ext=cpp
 ac_cpp='$CXXCPP $CPPFLAGS'
 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -12152,7 +12152,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
   if test x$ax_cxx_compile_cxx17_required = xtrue; then
     if test x$ac_success = xno; then
-      as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
+      as_fn_error $? "*** A compiler with support for C++20 language features is required." "$LINENO" 5
     fi
   fi
   if test x$ac_success = xno; then
@@ -15104,7 +15104,7 @@ printf "%s\n" "$ac_cv_java_jvm_jni_working" >&6; }
         JAVA_JNI_INCLUDE=$ac_java_jvm_jni_include_flags
 
 
-    machine=`uname -m`
+    machine=`uname -p`
     case "$machine" in
         i?86)
           machine=i386
@@ -15120,10 +15120,10 @@ printf "%s\n" "$ac_cv_java_jvm_jni_working" >&6; }
         powerpc)
           machine=ppc
           ;;
-        ppc64le)
+        powerpc64le|ppc64le)
           machine=ppc64le
           ;;
-        ppc64)
+        powerpc64|ppc64)
           machine=ppc64
           ;;
         armv*)
@@ -36925,7 +36925,7 @@ if test "$with_openmp" != no; then
 #   AC_OPENMP
     OPENMP_CFLAGS="-fopenmp"
     OPENMP_CXXFLAGS="-fopenmp"
-    OPENMP_LIBS="-lgomp"
+    OPENMP_LIBS="-lomp"
 
            for ac_header in omp.h
 do :
