⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readline.m4

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 M4
字号:
# SYNOPSIS##   AMANDA_CHECK_READLINE## OVERVIEW##   Check for readline support.  Defines HAVE_READLINE if readline#   is available, and also checks for a number of readline headers and#   adds readline libraries to READLINE_LIBS.##   See common-src/util.{c,h}.#AC_DEFUN([AMANDA_CHECK_READLINE], [    AC_ARG_WITH(readline,    dnl no initial space here, so the results line up properlyAS_HELP_STRING([--with-readline], [require readline support (for amrecover)])AS_HELP_STRING([--without-readline], [don't search for readline]),        [             case "$withval" in                y | ye | yes | n | no) : ;;                *) AC_MSG_ERROR([*** --with-readline does not take a value])            esac            want_readline="$withval"        ], [            want_readline="maybe" # meaning "only if we can find it"        ])    # unless the user said "no", look for readline.    if test x"$want_readline" != x"no"; then        # we need a tgetent() somewhere..        proceed="false"        AC_CHECK_LIB(termcap, tgetent, [            READLINE_LIBS="-ltermcap"            proceed="true"        ], [            AC_CHECK_LIB(curses, tgetent, [                READLINE_LIBS="-lcurses"                proceed="true"            ], [                AC_CHECK_LIB(ncurses, tgetent, [                    READLINE_LIBS="-lncurses"                    proceed="true"                ])            ])        ])        if $proceed; then            proceed="false"            AC_CHECK_HEADERS( history.h readline.h readline/history.h readline/readline.h, [                # found at least one of the headers, so we can proceed.                proceed="true"            ])        fi        if $proceed; then            proceed="false"            AC_CHECK_LIB(readline,readline, [                READLINE_LIBS="-lreadline $READLINE_LIBS"                proceed="true"            ],,$READLINE_LIBS)        fi        if $proceed; then            # we have readline!            AC_DEFINE(HAVE_READLINE, 1, [System has readline support (headers and libraries)])        else            # no readline.  if the user *really* wanted it, bail out.            if test x"$want_readline" = x"yes"; then                AC_MSG_ERROR([*** No readline implementation found.  Try using --with-libraries and --with-includes])            fi            READLINE_LIBS=""        fi    fi    AC_SUBST(READLINE_LIBS)])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -