`configure’ configures python 3.7 to adapt to many kinds of systems.
Usage: ./configure [OPTION]… [VAR=VALUE]…
To assign environment variables (e.g., CC, CFLAGS…), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
参数 | 说明 |
---|---|
–prefix=PREFIX | install architecture-independent files in PREFIX [/usr/local] |
–exec-prefix=EPREFIX | install architecture-dependent files in EPREFIX [PREFIX] |
–bindir=DIR | user executables [EPREFIX/bin] |
–sbindir=DIR | system admin executables [EPREFIX/sbin] |
–libexecdir=DIR | program executables [EPREFIX/libexec] |
–sysconfdir=DIR | read-only single-machine data [PREFIX/etc] |
–sharedstatedir=DIR | modifiable architecture-independent data [PREFIX/com] |
–localstatedir=DIR | modifiable single-machine data [PREFIX/var] |
–libdir=DIR | object code libraries [EPREFIX/lib] |
–includedir=DIR | C header files [PREFIX/include] |
–oldincludedir=DIR | C header files for non-gcc [/usr/include] |
–datarootdir=DIR | read-only arch.-independent data root [PREFIX/share] |
–datadir=DIR | read-only architecture-independent data [DATAROOTDIR] |
–infodir=DIR | info documentation [DATAROOTDIR/info] |
–localedir=DIR | locale-dependent data [DATAROOTDIR/locale] |
–mandir=DIR | man documentation [DATAROOTDIR/man] |
–docdir=DIR | documentation root [DATAROOTDIR/doc/python] |
–htmldir=DIR | html documentation [DOCDIR] |
–dvidir=DIR | dvi documentation [DOCDIR] |
–pdfdir=DIR | pdf documentation [DOCDIR] |
–psdir=DIR | ps documentation [DOCDIR] |
–build=BUILD | configure for building on BUILD [guessed] |
–host=HOST | cross-compile to build programs to run on HOST [BUILD] |
–target=TARGET | configure for building compilers for TARGET [HOST] |
–disable-option-checking | ignore unrecognized --enable/–with options |
–disable-FEATURE | do not include FEATURE (same as --enable-FEATURE=no) |
–enable-FEATURE[=ARG] | include FEATURE [ARG=yes] |
–enable-universalsdk[=SDKDIR] | Build fat binary against Mac OS X SDK |
–enable-framework[=INSTALLDIR] | Build (MacOSX |
–enable-shared | disable/enable building shared python library |
–enable-profiling | enable C-level code profiling |
–enable-optimizations | Enable expensive, stable optimizations (PGO, etc).Disabled by default. |
–enable-loadable-sqlite-extensions | support loadable extensions in _sqlite module |
–enable-ipv6 | Enable ipv6 (with ipv4) support |
–disable-ipv6 | Disable ipv6 support |
–enable-big-digits[=BITS] | use big digits for Python longs [[BITS=30]] |
–with-PACKAGE[=ARG] | use PACKAGE [ARG=yes] |
–without-PACKAGE | do not use PACKAGE (same as --with-PACKAGE=no) |
–with-universal-archs=ARCH | select architectures for universal build (“32-bit”,“64-bit”, “3-way”, “intel”, “intel-32”, “intel-64”, or “all”) |
–with-framework-name=FRAMEWORK | specify an alternate name of the framework built with --enable-framework |
–without-gcc | never use gcc |
–with-icc | build with icc |
–with-cxx-main= | compile main() and link python executable with C++ compiler |
–with-suffix=.exe | set executable suffix |
–with-pydebug | build with Py_DEBUG defined |
–with-assertions | build with C assertions enabled |
–with-lto | Enable Link Time Optimization in any build. Disabled by default. |
–with-hash-algorithm=[fnv | siphash24] |
–with-address-sanitizer | enable AddressSanitizer (asan) |
–with-memory-sanitizer | enable MemorySanitizer (msan) |
–with-undefined-behavior-sanitizer | enable UndefinedBehaviorSanitizer (ubsan) |
–with-libs=‘lib1 …’ | link against additional libs |
–with-system-expat | build pyexpat module using an installed expat library |
–with-system-ffi | build _ctypes module using an installed ffi library |
–with-system-libmpdec | build _decimal module using an installed libmpdec library |
–with-tcltk-includes=’-I…’ | override search for Tcl and Tk include files |
–with-tcltk-libs=’-L…’ | override search for Tcl and Tk libs |
–with-dbmliborder=db1:db2:… | order to check db backends for dbm. Valid value is a colon separated string with the backend names ndbm', gdbm’ and `bdb’. |
–with(out)-doc-strings | disable/enable documentation strings |
–with(out)-pymalloc | disable/enable specialized mallocs |
–with(out)-c-locale-coercion | disable/enable C locale coercion to a UTF-8 based locale |
–with-valgrind | Enable Valgrind support |
–with(out)-dtrace | disable/enable DTrace support |
–with-libm=STRING | math library |
–with-libc=STRING | C library |
–with(out)-computed-gotos | Use computed gotos in evaluation loop (enabled by default on supported compilers) |
–with(out)-ensurepip=[=upgrade] | “install” or “upgrade” using bundled pip |
–with-openssl=DIR | root of the OpenSSL directory |
–with-ssl-default-suites=[python | openssl |