--- configure.orig 2013-04-19 06:47:00.000000000 +0800 +++ configure 2022-02-19 18:24:14.000000000 +0800 @@ -5965,6 +5965,11 @@ IGNORE_LINKER_LD_FLAGS="$IGNORE_LINKER_LD_FLAGS -arch x86_64" CPPFLAGS="$CPPFLAGS -m64" ;; + powerpc-apple-darwin) + CFLAGS="$CFLAGS -m32" + LDFLAGS="$LDFLAGS -m32" + CPPFLAGS="$CPPFLAGS -m32" + ;; alpha-*) # For now, to suppress the gcc warning "call-clobbered # register used for global register variable", we simply @@ -6022,6 +6027,12 @@ CONF_LD_LINKER_OPTS_STAGE0="$CONF_LD_LINKER_OPTS_STAGE0 -arch x86_64" CONF_CPP_OPTS_STAGE0="$CONF_CPP_OPTS_STAGE0 -m64" ;; + powerpc-apple-darwin) + CONF_CC_OPTS_STAGE0="$CONF_CC_OPTS_STAGE0 -m32" + CONF_GCC_LINKER_OPTS_STAGE0="$CONF_GCC_LINKER_OPTS_STAGE0 -m32" + CONF_LD_LINKER_OPTS_STAGE0="$CONF_LD_LINKER_OPTS_STAGE0 -arch ppc" + CONF_CPP_OPTS_STAGE0="$CONF_CPP_OPTS_STAGE0 -m32" + ;; alpha-*) # For now, to suppress the gcc warning "call-clobbered # register used for global register variable", we simply @@ -6079,6 +6090,12 @@ CONF_LD_LINKER_OPTS_STAGE1="$CONF_LD_LINKER_OPTS_STAGE1 -arch x86_64" CONF_CPP_OPTS_STAGE1="$CONF_CPP_OPTS_STAGE1 -m64" ;; + powerpc-apple-darwin) + CONF_CC_OPTS_STAGE1="$CONF_CC_OPTS_STAGE1 -m32" + CONF_GCC_LINKER_OPTS_STAGE1="$CONF_GCC_LINKER_OPTS_STAGE1 -m32" + CONF_LD_LINKER_OPTS_STAGE1="$CONF_LD_LINKER_OPTS_STAGE1 -arch ppc" + CONF_CPP_OPTS_STAGE1="$CONF_CPP_OPTS_STAGE1 -m32" + ;; alpha-*) # For now, to suppress the gcc warning "call-clobbered # register used for global register variable", we simply @@ -6137,6 +6154,12 @@ CONF_LD_LINKER_OPTS_STAGE2="$CONF_LD_LINKER_OPTS_STAGE2 -arch x86_64" CONF_CPP_OPTS_STAGE2="$CONF_CPP_OPTS_STAGE2 -m64" ;; + powerpc-apple-darwin) + CONF_CC_OPTS_STAGE2="$CONF_CC_OPTS_STAGE2 -m32" + CONF_GCC_LINKER_OPTS_STAGE2="$CONF_GCC_LINKER_OPTS_STAGE2 -m32" + CONF_LD_LINKER_OPTS_STAGE2="$CONF_LD_LINKER_OPTS_STAGE2 -arch ppc" + CONF_CPP_OPTS_STAGE2="$CONF_CPP_OPTS_STAGE2 -m32" + ;; alpha-*) # For now, to suppress the gcc warning "call-clobbered # register used for global register variable", we simply @@ -10945,8 +10968,6 @@ - - for ac_func in __mingw_vfprintf do : ac_fn_c_check_func "$LINENO" "__mingw_vfprintf" "ac_cv_func___mingw_vfprintf" @@ -10971,7 +10992,7 @@ then BUILD_DOCBOOK_HTML=NO else - BUILD_DOCBOOK_HTML=YES + BUILD_DOCBOOK_HTML=NO fi @@ -10980,13 +11001,12 @@ BUILD_DOCBOOK_PS=NO BUILD_DOCBOOK_PDF=NO else - BUILD_DOCBOOK_PS=YES - BUILD_DOCBOOK_PDF=YES + BUILD_DOCBOOK_PS=NO + BUILD_DOCBOOK_PDF=NO fi - dir=base LIBRARY_base_VERSION=`grep -i "^version:" libraries/${dir}/base.cabal | sed "s/.* //"`