--- configure.orig	2026-04-25 15:55:28 UTC
+++ configure
@@ -3208,7 +3208,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 CXXFLAGS="${CXXFLAGS:=}"
 DSOFLAGS="${DSOFLAGS:=}"
 LDFLAGS="${LDFLAGS:=}"
-LIBS="${LDFLAGS:=}"
+LIBS="${LIBS:=}"
 
 
 
@@ -5619,7 +5619,7 @@ then :
   printf %s "(cached) " >&6
 else $as_nop
   case $NROFF in
-  [\\/]* | ?:[\\/]*)
+  [\\/]* | ?:[\\/]* | echo)
   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
   ;;
   *)
@@ -10520,20 +10520,11 @@ then :
         #       They all seem to make either no difference or enlarge
         #       the code by a few hundred bytes.
         #
-        #       "-Os" seems to be the best compromise between speed and
-        #       code size.  "-O3" and higher seem to make no effective
-        #       difference in the speed of the code, but does bloat the
-        #       library 10+%.
-        #
 
         if test "x$with_optim" != x
 then :
 
             OPTIM="$with_optim $OPTIM"
-
-else $as_nop
-
-            OPTIM="-Os $OPTIM"
 
 fi
 
