--- configure.orig	2021-08-31 05:02:15.000000000 +1000
+++ configure	2021-10-10 03:36:43.000000000 +1100
@@ -3225,6 +3225,8 @@
 			;;
 		esac
 
+		FRAMEWORKINSTALLAPPSPREFIX="@@APPLICATIONS_DIR@@"
+
 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
 
 		# Add files for Mac specific code to the list of output
@@ -6502,7 +6504,7 @@
 # non-suffixed name in their versioned llvm directory.
 
 llvm_bin_dir=''
-llvm_path="${PATH}"
+llvm_path="/bin:/sbin:/usr/bin:/usr/sbin"
 if test "${CC}" = "clang"
 then
   clang_bin=`which clang`
@@ -7519,6 +7521,11 @@
                ;;
             esac
 
+            UNIVERSAL_ARCH_FLAGS="@@UNIVERSAL_ARCH_FLAGS@@"
+            LIPO_32BIT_FLAGS="@@LIPO_32BIT_FLAGS@@"
+            LIPO_INTEL64_FLAGS="@@LIPO_INTEL64_FLAGS@@"
+            ARCH_RUN_32BIT="@@ARCH_RUN_32BIT@@"
+
             if test "${UNIVERSALSDK}" != "/"
             then
                 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
