📄 configure.in
字号:
dnldnl Configure script for readline librarydnldnl report bugs to chet@po.cwru.edudnldnl Process this file with autoconf to produce a configure script.AC_REVISION([for Readline 5.0, version 2.52, from autoconf version] AC_ACVERSION)AC_INIT(readline, 5.0-rc1, bug-readline@gnu.org)dnl make sure we are using a recent autoconf versionAC_PREREQ(2.50)AC_CONFIG_SRCDIR(readline.h)AC_CONFIG_AUX_DIR(./support)AC_CONFIG_HEADERS(config.h)dnl update the value of RL_READLINE_VERSION in readline.h when this changesLIBVERSION=5.0AC_CANONICAL_HOSTdnl configure defaultsopt_curses=nodnl arguments to configureAC_ARG_WITH(curses, AC_HELP_STRING([--with-curses], [use the curses library instead of the termcap library]), opt_curses=$withval)if test "$opt_curses" = "yes"; then prefer_curses=yesfidnl option parsing for optional featuresopt_multibyte=yesopt_static_libs=yesopt_shared_libs=yesAC_ARG_ENABLE(multibyte, AC_HELP_STRING([--enable-multibyte], [enable multibyte characters if OS supports them]), opt_multibyte=$enableval)AC_ARG_ENABLE(shared, AC_HELP_STRING([--enable-shared], [build shared libraries [[default=YES]]]), opt_shared_libs=$enableval)AC_ARG_ENABLE(static, AC_HELP_STRING([--enable-static], [build static libraries [[default=YES]]]), opt_static_libs=$enableval)if test $opt_multibyte = no; thenAC_DEFINE(NO_MULTIBYTE_SUPPORT)fiecho ""echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"echo ""# We want these before the checks, so the checks can modify their values.test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1AC_PROG_MAKE_SETAC_PROG_CCdnl AC_AIXAC_MINIX# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"AC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_CHECK_PROG(AR, ar, , ar)dnl Set default for ARFLAGS, since autoconf does not have a macro for it.dnl This allows people to set it when running configure or maketest -n "$ARFLAGS" || ARFLAGS="cr"AC_PROG_RANLIBMAKE_SHELL=/bin/shAC_SUBST(MAKE_SHELL)AC_C_CONSTAC_C_PROTOTYPESAC_C_CHAR_UNSIGNEDAC_TYPE_SIGNALAC_TYPE_SIZE_TAC_CHECK_TYPE(ssize_t, int)AC_HEADER_STDCAC_HEADER_STATAC_HEADER_DIRENTAC_CHECK_FUNCS(lstat memmove putenv select setenv setlocale \ strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit)AC_FUNC_STRCOLLAC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ termcap.h termios.h termio.h sys/file.h locale.h memory.h )BASH_SYS_SIGNAL_VINTAGEBASH_SYS_REINSTALL_SIGHANDLERSBASH_FUNC_POSIX_SETJMPBASH_FUNC_LSTATBASH_FUNC_STRCOLLBASH_FUNC_CTYPE_NONASCIIBASH_CHECK_GETPW_FUNCSAC_HEADER_TIOCGWINSZBASH_TYPE_SIGHANDLERBASH_HAVE_TIOCSTATBASH_HAVE_FIONREADBASH_CHECK_SPEED_TBASH_STRUCT_WINSIZEBASH_STRUCT_DIRENT_D_INOBASH_STRUCT_DIRENT_D_FILENOdnl yuckcase "$host_os" inaix*) prefer_curses=yes ;;esacBASH_CHECK_LIB_TERMCAPif test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then if test "$prefer_curses" = yes; then TERMCAP_LIB=-lcurses else TERMCAP_LIB=-ltermcap #default fifiBASH_CHECK_MULTIBYTEcase "$host_cpu" in*cray*) LOCAL_CFLAGS=-DCRAY ;;*s390*) LOCAL_CFLAGS=-fsigned-char ;;esaccase "$host_os" inisc*) LOCAL_CFLAGS=-Disc386 ;;esac# shared library configuration section## Shared object configuration section. These values are generated by# ${srcdir}/support/shobj-conf#if test -f ${srcdir}/support/shobj-conf; then AC_MSG_CHECKING(configuration for building shared libraries) eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` AC_SUBST(SHOBJ_CC) AC_SUBST(SHOBJ_CFLAGS) AC_SUBST(SHOBJ_LD) AC_SUBST(SHOBJ_LDFLAGS) AC_SUBST(SHOBJ_XLDFLAGS) AC_SUBST(SHOBJ_LIBS) AC_SUBST(SHOBJ_STATUS) AC_SUBST(SHLIB_STATUS) AC_SUBST(SHLIB_XLDFLAGS) AC_SUBST(SHLIB_LIBSUFF) AC_SUBST(SHLIB_LIBVERSION) AC_SUBST(SHLIB_LIBS) AC_MSG_RESULT($SHLIB_STATUS) # SHLIB_STATUS is either `supported' or `unsupported'. If it's # `unsupported', turn off any default shared library building if test "$SHLIB_STATUS" = 'unsupported'; then opt_shared_libs=no fi # shared library versioning # quoted for m4 so I can use character classes SHLIB_MAJOR=[`expr "$LIBVERSION" : '\([0-9]\)\..*'`] SHLIB_MINOR=[`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`] AC_SUBST(SHLIB_MAJOR) AC_SUBST(SHLIB_MINOR)fiif test "$opt_static_libs" = "yes"; then STATIC_TARGET=static STATIC_INSTALL_TARGET=install-staticfiif test "$opt_shared_libs" = "yes"; then SHARED_TARGET=shared SHARED_INSTALL_TARGET=install-sharedfiAC_SUBST(STATIC_TARGET)AC_SUBST(SHARED_TARGET)AC_SUBST(STATIC_INSTALL_TARGET)AC_SUBST(SHARED_INSTALL_TARGET)case "$host_os" inmsdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file*) BUILD_DIR=`pwd` ;;esacAC_SUBST(BUILD_DIR)AC_SUBST(CFLAGS)AC_SUBST(LOCAL_CFLAGS)AC_SUBST(LOCAL_LDFLAGS)AC_SUBST(LOCAL_DEFS)AC_SUBST(AR)AC_SUBST(ARFLAGS)AC_SUBST(host_cpu)AC_SUBST(host_os)AC_SUBST(LIBVERSION)AC_SUBST(TERMCAP_LIB)AC_OUTPUT([Makefile doc/Makefile examples/Makefile shlib/Makefile],[# Makefile uses this timestamp file to record whether config.h is up to date.echo > stamp-h])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -