# This file is processed by the configure script.
# See hadrian/src/UserSettings.hs for user-defined settings.
#===========================================================

# Paths to builders:
#===================

alex           = @AlexCmd@
ar             = @ArCmd@
autoreconf     = @AutoreconfCmd@
cc             = @CC@
happy          = @HappyCmd@
hs-cpp         = @HaskellCPPCmd@
ld             = @LdCmd@
make           = @MakeCmd@
nm             = @NmCmd@
merge-objects  = @MergeObjsCmd@
objdump        = @ObjdumpCmd@
ranlib         = @REAL_RANLIB_CMD@
sphinx-build   = @SPHINXBUILD@
system-ar      = @AR_STAGE0@
system-cc      = @CC_STAGE0@
system-ghc     = @WithGhc@
system-ghc-pkg = @GhcPkgCmd@
tar            = @TarCmd@
patch          = @PatchCmd@
xelatex        = @XELATEX@
makeindex      = @MAKEINDEX@
makeinfo       = @MAKEINFO@

# Python 3 is required to run test driver.
# See: https://github.com/ghc/ghc/blob/master/testsuite/mk/boilerplate.mk#L220
python         = @PythonCmd@

# Information about builders:
#============================

ar-supports-at-file = @ArSupportsAtFile@
cc-llvm-backend     = @CcLlvmBackend@
hs-cpp-args         = @HaskellCPPArgs@

# Build options:
#===============

solaris-broken-shld  = @SOLARIS_BROKEN_SHLD@
ghc-unregisterised   = @Unregisterised@
tables-next-to-code  = @TablesNextToCode@
use-libffi-for-adjustors = @UseLibffiForAdjustors@
ghc-source-path      = @hardtop@
leading-underscore   = @LeadingUnderscore@

# Information about build, host and target systems:
#==================================================

build-platform        = @BuildPlatform@
build-arch            = @BuildArch_CPP@
build-os              = @BuildOS_CPP@
build-vendor          = @BuildVendor_CPP@

host-platform         = @HostPlatform@
host-arch             = @HostArch_CPP@
host-os               = @HostOS_CPP@
host-vendor           = @HostVendor_CPP@
host-os-haskell       = @HaskellHostOs@
host-arch-haskell     = @HaskellHostArch@

target-platform       = @TargetPlatform@
target-platform-full  = @TargetPlatformFull@
target-arch           = @TargetArch_CPP@
target-os             = @TargetOS_CPP@
target-vendor         = @TargetVendor_CPP@
target-os-haskell     = @HaskellTargetOs@
target-arch-haskell   = @HaskellTargetArch@
llvm-target           = @LLVMTarget_CPP@

cross-compiling       = @CrossCompiling@

dynamic-extension     = @soext_target@

ghc-version           = @GhcVersion@
ghc-major-version     = @GhcMajVersion@
ghc-minor-version     = @GhcMinVersion@
ghc-patch-level       = @GhcPatchLevel@

bootstrap-threaded-rts      = @GhcThreadedRts@

supports-this-unit-id = @SUPPORTS_THIS_UNIT_ID@

project-name          = @ProjectName@
project-version       = @ProjectVersion@
project-version-int   = @ProjectVersionInt@
project-patch-level   = @ProjectPatchLevel@
project-patch-level1  = @ProjectPatchLevel1@
project-patch-level2  = @ProjectPatchLevel2@
project-git-commit-id = @ProjectGitCommitId@

system-use-distro-mingw  = @SettingsUseDistroMINGW@

# Compilation and linking flags:
#===============================

conf-cc-args-stage0         = @CONF_CC_OPTS_STAGE0@
conf-cc-args-stage1         = @CONF_CC_OPTS_STAGE1@
conf-cc-args-stage2         = @CONF_CC_OPTS_STAGE2@
conf-cc-args-stage3         = @CONF_CC_OPTS_STAGE3@

conf-cpp-args-stage0        = @CONF_CPP_OPTS_STAGE0@
conf-cpp-args-stage1        = @CONF_CPP_OPTS_STAGE1@
conf-cpp-args-stage2        = @CONF_CPP_OPTS_STAGE2@
conf-cpp-args-stage3        = @CONF_CPP_OPTS_STAGE3@

conf-gcc-linker-args-stage0 = @CONF_GCC_LINKER_OPTS_STAGE0@
conf-gcc-linker-args-stage1 = @CONF_GCC_LINKER_OPTS_STAGE1@
conf-gcc-linker-args-stage2 = @CONF_GCC_LINKER_OPTS_STAGE2@
conf-gcc-linker-args-stage3 = @CONF_GCC_LINKER_OPTS_STAGE3@

conf-ld-linker-args-stage0  = @CONF_LD_LINKER_OPTS_STAGE0@
conf-ld-linker-args-stage1  = @CONF_LD_LINKER_OPTS_STAGE1@
conf-ld-linker-args-stage2  = @CONF_LD_LINKER_OPTS_STAGE2@
conf-ld-linker-args-stage3  = @CONF_LD_LINKER_OPTS_STAGE3@

conf-merge-objects-args-stage0  = @MergeObjsArgs@
conf-merge-objects-args-stage1  = @MergeObjsArgs@
conf-merge-objects-args-stage2  = @MergeObjsArgs@
conf-merge-objects-args-stage3  = @MergeObjsArgs@


# Settings:
#==========

# We are in the process of moving the settings file from being entirely
# generated by configure, to generated being by the build system. Many of these
# might become redundant.
# See Note [tooldir: How GHC finds mingw on Windows]

gcc-extra-via-c-opts = @GccExtraViaCOpts@
ld-has-no-compact-unwind = @LdHasNoCompactUnwind@
ld-has-build-id = @LdHasBuildId@
ld-has-filelist = @LdHasFilelist@
ld-is-gnu-ld = @LdIsGNULd@
ar-args = @ArArgs@

settings-c-compiler-command = @SettingsCCompilerCommand@
settings-haskell-cpp-command = @SettingsHaskellCPPCommand@
settings-haskell-cpp-flags = @SettingsHaskellCPPFlags@
settings-c-compiler-flags = @SettingsCCompilerFlags@
settings-cxx-compiler-flags = @SettingsCxxCompilerFlags@
settings-c-compiler-link-flags = @SettingsCCompilerLinkFlags@
settings-c-compiler-supports-no-pie = @SettingsCCompilerSupportsNoPie@
settings-ld-command = @SettingsLdCommand@
settings-ld-flags = @SettingsLdFlags@
settings-merge-objects-command = @SettingsMergeObjectsCommand@
settings-merge-objects-flags = @SettingsMergeObjectsFlags@
settings-ar-command = @SettingsArCommand@
settings-ranlib-command = @SettingsRanlibCommand@
settings-otool-command = @SettingsOtoolCommand@
settings-install_name_tool-command = @SettingsInstallNameToolCommand@
settings-dll-wrap-command = @SettingsDllWrapCommand@
settings-windres-command = @SettingsWindresCommand@
settings-libtool-command = @SettingsLibtoolCommand@
settings-touch-command = @SettingsTouchCommand@
settings-clang-command = @SettingsClangCommand@
settings-llc-command = @SettingsLlcCommand@
settings-opt-command = @SettingsOptCommand@

target-word-size = @TargetWordSize@
target-word-big-endian = @TargetWordBigEndian@
target-has-gnu-nonexec-stack = @TargetHasGnuNonexecStack@
target-has-ident-directive = @TargetHasIdentDirective@
target-has-subsections-via-symbols = @TargetHasSubsectionsViaSymbols@
target-has-rts-linker = @TargetHasRTSLinker@
target-arm-version    = @ARM_ISA@

# Include and library directories:
#=================================

curses-lib-dir    = @CURSES_LIB_DIRS@

iconv-include-dir = @ICONV_INCLUDE_DIRS@
iconv-lib-dir     = @ICONV_LIB_DIRS@

intree-gmp              = @GMP_FORCE_INTREE@
gmp-framework-preferred = @GMP_PREFER_FRAMEWORK@
gmp-include-dir         = @GMP_INCLUDE_DIRS@
gmp-lib-dir             = @GMP_LIB_DIRS@

use-system-ffi    = @UseSystemLibFFI@
ffi-include-dir   = @FFIIncludeDir@
ffi-lib-dir       = @FFILibDir@

libdw-include-dir   = @LibdwIncludeDir@
libdw-lib-dir       = @LibdwLibDir@

libnuma-include-dir   = @LibNumaIncludeDir@
libnuma-lib-dir       = @LibNumaLibDir@

# Optional Dependencies:
#=======================

with-libdw = @UseLibdw@
with-libnuma = @UseLibNuma@
have-lib-mingw-ex = @HaveLibMingwEx@
