+ esac
+
+ if [ $sbcl_arch = "x86-64" ]; then
+ link_or_copy Config.x86_64-linux Config
+ else
+ link_or_copy Config.$sbcl_arch-linux Config
+ fi
+ link_or_copy $sbcl_arch-linux-os.h target-arch-os.h
+ link_or_copy linux-os.h target-os.h
+ ;;
+ osf1)
+ printf ' :unix' >> $ltf
+ printf ' :elf' >> $ltf
+ printf ' :osf1' >> $ltf
+ link_or_copy Config.$sbcl_arch-osf1 Config
+ link_or_copy $sbcl_arch-osf1-os.h target-arch-os.h
+ link_or_copy osf1-os.h target-os.h
+ ;;
+ hpux)
+ printf ' :unix' >> $ltf
+ printf ' :elf' >> $ltf
+ printf ' :hpux' >> $ltf
+ link_or_copy Config.$sbcl_arch-hpux Config
+ link_or_copy $sbcl_arch-hpux-os.h target-arch-os.h
+ link_or_copy hpux-os.h target-os.h
+ ;;
+ *bsd)
+ printf ' :unix' >> $ltf
+ printf ' :bsd' >> $ltf
+ link_or_copy $sbcl_arch-bsd-os.h target-arch-os.h
+ link_or_copy bsd-os.h target-os.h
+ case "$sbcl_os" in
+ freebsd)
+ printf ' :elf' >> $ltf
+ printf ' :freebsd' >> $ltf
+ printf ' :gcc-tls' >> $ltf
+ if [ $sbcl_arch = "x86" ]; then
+ printf ' :restore-tls-segment-register-from-context' >> $ltf
+ fi
+ link_or_copy Config.$sbcl_arch-freebsd Config
+ ;;
+ openbsd)
+ printf ' :elf' >> $ltf
+ printf ' :openbsd' >> $ltf
+ link_or_copy Config.$sbcl_arch-openbsd Config
+ ;;
+ netbsd)
+ printf ' :netbsd' >> $ltf
+ printf ' :elf' >> $ltf
+ link_or_copy Config.$sbcl_arch-netbsd Config
+ ;;
+ *)
+ echo unsupported BSD variant: `uname`
+ exit 1
+ ;;
+ esac
+ ;;
+ darwin)
+ printf ' :unix' >> $ltf
+ printf ' :mach-o' >> $ltf
+ printf ' :bsd' >> $ltf
+ printf ' :darwin' >> $ltf
+ if [ $sbcl_arch = "x86" ]; then
+ printf ' :mach-exception-handler :sb-lutex :restore-fs-segment-register-from-tls :ud2-breakpoints' >> $ltf
+ fi
+ if [ $sbcl_arch = "x86-64" ]; then
+ printf ' :mach-exception-handler :sb-lutex :ud2-breakpoints' >> $ltf
+ fi
+ link_or_copy $sbcl_arch-darwin-os.h target-arch-os.h
+ link_or_copy bsd-os.h target-os.h
+ link_or_copy Config.$sbcl_arch-darwin Config
+ ;;
+ sunos)
+ printf ' :unix' >> $ltf
+ printf ' :elf' >> $ltf