📄 config.txt
字号:
usage: ./configure [ variable=value ]...
This configure script generates the file 'makefile' and the file
'../include/NTL/config.h', based upon the values assigned to the
variables on the command line.
Note that all of these configuration options can also be set
by editing these two (well documented) files by hand.
This command is intended only to provide a slightly more convenient
and (perhaps more importantly) non-interactive way to do this.
This script does not perform any 'magic', like finding out what
the local C compiler is called, etc. If the defaults are not
correct for your platform, you have to set an appropriate variable.
########### Here are the most important variables, and their default values.
CC=gcc # The C compiler
CXX=g++ # The C++ compiler
CFLAGS=-O2 # C complilation flags
CXXFLAGS=$(CFLAGS) # C++ compilation flags (by default, same as CFLAGS)
PREFIX=/usr/local # Directory in which to install NTL library components
NTL_STD_CXX=on # ISO Mode switch
NTL_GMP_LIP=off # Switch to enable the use of GMP as primary
# long integer package
GMP_PREFIX=undefined # Directory in which GMP components have been installed
########## Here are more detailed description of these variables.
########## Basic compilation variables:
CC=gcc
# A C or C++ compiler, e. g., gcc, cc, xlc.
# There are a few components written in C which may be compiled
# under C++, but C compilers tend to generate slightly better code.
# The C++ and C compilers (if different) must generate
# compatible code.
CXX=g++
# A C++ compiler, e.g., g++, CC, xlC
# Note that NTL appends a ".c" siffix to both C and C++ files,
# so you must, for example, use g++ (rather than gcc) as your C++
# compiler.
CFLAGS=-O2
# Flags for the C compiler
# Some useful flags:
# -O2 -- recommended level of optimization
# -g -- debugging
# -mcpu=v8 -- needed with gcc/g++ to get the full instruction set
# of a SparcStation
# -qarch=ppc -- needed with xlc/C to get the full instruction set
# of a PowerPC
CXXFLAGS=$(CFLAGS)
# Flags for the C++ compiler (usually the same as CFLAGS)
# Some useful flags:
# -+ -- needed with xlC to make it treat .c files as C++ files
########## Installation path:
PREFIX=/usr/local
# Set this to the directory in which you want NTL components to be
# installed. When 'make install' is executed, the header
# files are copied into $(PREFIX)/include/NTL, the library itself is
# copied to $(PREFIX)/lib/libntl.a, and the documentation files
# are copied into $(PREFIX)/doc/NTL.
# Unless you have root permissions when running 'make install',
# you will have to override the default PREFIX value with the
# name of your own local directory.
# If you want finer-grained control over where the different
# library components are installed, set the variables
# INCLUDEDIR, LIBDIR, and DOCDIR (see below).
########## ISO mode switch:
NTL_STD_CXX=on
# Set to 'off' if you do not want to use the "Standard C++" version of NTL.
# In this version, all of NTL is "wrapped" inside the namespace NTL,
# and are no longer directly accessible---you must either use
# explicit qualification, or using directives, or using declarations.
# However, note that all names that begin with "NTL_" are macros,
# and as such do not belong to any namespace.
# Additionally, instead of including the traditional headers
# <stdlib.h>, <math.h>, and <iostream.h>, the standard headers
# <cstdlib>, <cmath>, and <iostream> are included.
# These "wrap" some (but not all) names in namespace std.
# If your compiler is not yet up to date, but you want some
# of the benefits of Standard C++, you might try the "partial Standard C++"
# switches NTL_PSTD_NNS, NTL_PSTD_NHF, NTL_PSTD_NTN (see below).
########## GMP variables:
NTL_GMP_LIP=off
# Set to 'on' if you want to use GMP, the GNU Multi-Precision package,
# as the primary long integer package.
# This will typically yield significantly faster long integer arithmetic
# compared to the traditional long integer package, and will yield somewhat
# faster long integer arithmetic compared the traditinal package
# supplemented by GMP (i.e., the NTL_GMP_HACK flag, see below).
# If you set this flag, please note the following.
# If you have installed GMP in a standard "system" location, this is
# all you have to do. Otherwise, if GMP is built, but not installed
# in a standard place, you have to set the variable GMP_PREFIX.
GMP_PREFIX=undefined
# If GMP was installed in a standard system directory, e.g., /usr/local,
# then do not set this variable.
# Otherwise, if you want to use GMP and GMP was installed in
# a directory <gmp_prefix>, then set GMP_PREFIX=<gmp_prefix>.
# This works if the directory <gmp_prefix>/include contains gmp.h
# and <gmp_prefix>/lib contains libgmp.a.
# For finer-grained control, set the variables GMP_INCDIR and GMP_LIBDIR
# instead (see below).
########### Examples:
# If you are happy with all the default values:
./configure
# Actually, the initially installed makefile and config.h files
# already reflect the default values.
# If your C/C++ compilers are called cc/CC:
./configure CC=cc CXX=CC
# If GMP is installed in a standard system directory, and you want to use it:
./configure NTL_GMP_LIP=on
# If GMP was installed in a non-standard directory, say, $HOME/sw:
./configure NTL_GMP_LIP=on GMP_PREFIX=$HOME/sw
# If you want to use the options -g and -O for compiling C and C++,
# just execute
./configure "CFLAGS=-g -O"
# Note the use of quotes to keep the argument in one piece.
# If you want to use GMP as well as traditional (non-ISO) mode:
./configure NTL_GMP_LIP=on NTL_STD_CXX=off
########### Here is a complete list of the remaining variables,
########### with their default values. These variables are pretty
########### esoteric, and you will probably never change their
########### default values.
AR=ar
ARFLAGS=ruv
RANLIB=ranlib
LDFLAGS=
LDFLAGS_CXX=$(LDFLAGS)
LDLIBS=-lm
LDLIBS_CXX=$(LDLIBS)
CPPFLAGS=
LIBDIR=$(PREFIX)/lib
INCLUDEDIR=$(PREFIX)/include
DOCDIR=$(PREFIX)/include
NTL_PSTD_NNS=off
NTL_PSTD_NHF=off
NTL_PSTD_NTN=off
NTL_LONG_LONG_TYPE=undefined
NTL_UNSIGNED_LONG_LONG_TYPE=undefined
NTL_CXX_ONLY=off
NTL_CLEAN_INT=off
NTL_CLEAN_PTR=off
NTL_RANGE_CHECK=off
NTL_X86_FIX=off
NTL_NO_X86_FIX=off
NTL_NO_INIT_TRANS=off
WIZARD=on
NTL_LONG_LONG=off
NTL_AVOID_FLOAT=off
NTL_SPMM_UL=off
NTL_SPMM_ULL=off
NTL_SPMM_ASM=off
NTL_TBL_REM=off
NTL_AVOID_BRANCHING=off
NTL_GF2X_NOINLINE=off
NTL_GF2X_ALTCODE=off
NTL_GF2X_ALTCODE1=off
NTL_GMP_HACK=off
GMP_INCDIR=undefined
GMP_LIBDIR=undefined
########### Here is a more detailed description of these variables.
########### Further compilation variables:
AR=ar
# command to make a library
ARFLAGS=ruv
# arguments for AR
RANLIB=ranlib
# set to echo if you want to disable it completely
LDFLAGS=
# arguments for linker for C++ programs
LDFLAGS_CXX=$(LDFLAGS)
# libraries for linking C programs
LDLIBS=-lm
# libraries for linking C++ programs
LDLIBS_CXX=$(LDLIBS)
# libraries for linking C++ programs
CPPFLAGS=
# arguments for the C preprocessor
########### Details of the compilation process:
# When a C file foo.c is compiled:
$(CC) -I../include $(CPPFLAGS) $(CFLAGS) -c foo.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -