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

📄 configure.ac

📁 bash debugger. You can use this tool to debug bash shell script
💻 AC
字号:
dnldnl Configure script for bash-3.x debuggerdnldnldnl Process this file with autoconf to produce a configure script.# Copyright (C) 2002, 2003, 2004, 2005, 2007# 2006 Rocky Bernstein <rockyb@users.sourceforge.net># This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; see the file COPYING.  If not, write to the# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,# MA 02110-1301 USA.dnl TENTATIVE:dnl Use same version as in main bash configure.indefine(OK_BASH_VERS, 3.1)define(relstatus, 0.09)AC_INIT([bashdb],[OK_BASH_VERS-relstatus],[bashdb-devel@lists.sourceforge.net])AM_PATH_LISPDIRAM_MAINTAINER_MODEAM_CONFIG_HEADER(config.h)AC_REVISION([$Id: configure.ac,v 1.31 2007/10/27 03:23:50 rockyb Exp $])dnlAC_DEFINE([PACKAGE], [bashdb], [Bash Debugger])AC_DEFINE([VERSION], [OK_BASH_VERS-relstatus], [version string])dnl make sure we are using a recent autoconf versionAC_PREREQ(2.53)AC_ARG_PROGRAMAM_INIT_AUTOMAKE([no-define])AC_ARG_ENABLE([gnugetopt],	AC_HELP_STRING([--enable-getopt], [Allow GNU-style long options (default enabled)]))if test "${enable_getopt}" != "no" ; then  TRY_GETOPT=1else  TRY_GETOPT=0fiAC_SUBST(TRY_GETOPT)AC_BASHDB_PACKAGE([bashdb])# Brought over from bash/configure.in to substitute OK_BASH_VERS# and RELSTATUS in dbg-pre.inc.in and version.texiBASHVERS=OK_BASH_VERSRELSTATUS=relstatusAC_SUBST(BASHVERS)AC_SUBST(RELSTATUS)AC_CONFIG_SRCDIR(bashdb.in)if test x$ac_srcdir = x ; then  ac_srcdir=.fiAM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir)AC_PROG_LN_SAC_PATH_PROG(RM, rm, true)AC_PATH_PROG(EMACS, emacs, no)if test x$EMACS = xno ; then  emacs_lisp=noelse   $EMACS -batch -q -no-site-file -eval \  '(if (not (and (= emacs-major-version 21) (<= emacs-minor-version 3))) (error "This gud is for Emacs 21.0 to 21.3."))'  if test $? -ne 0 ; then    emacs_lisp=no  fifi## --with bash can be used to tell the bashdb script and the regression## test which bash to run. It can be omitted too in which case we'll## look for a bash binary.AC_ARG_WITH(bash, AC_HELP_STRING([--with-bash], 		  [location of bash OK_BASH_VERS program]), BASH_PROG=$withval)if test "$BASH_PROG" = "yes" || test "$BASH_PROG" = "no" || test -z "$BASH_PROG"then  AC_PATH_PROG(BASH_PROG, bash, no)fiif test "$BASH_PROG" = no; then  AC_MSG_ERROR([I didn't find the bash executable.\  You might want to use the --with-bash option.])fibash_version=`$BASH_PROG --version`[bash_major=`$BASH_PROG -c 'echo ${BASH_VERSINFO[0]}'`][bash_minor=`$BASH_PROG -c 'echo ${BASH_VERSINFO[1]}'`]case "${bash_major}.${bash_minor}" in  'OK_BASH_VERS'|'3.2')    ;;  *)    AC_MSG_WARN([You have Bash $bash_version installed.])    AC_MSG_ERROR([This package is only known to work with Bash 3.1 or 3.2.])    ;; esacAC_ARG_WITH(bashdb-main, AC_HELP_STRING([--with-bashdb-main], 		  [location of bashdb-main.inc]), BASHDB_MAIN=$withval)# See if we build readarray.cAC_ARG_WITH(bash-src, AC_HELP_STRING([--with-bash-src], 		  [location of bash OK_BASH_VERS source code]), 		  BASH_SRC=$withval)AC_SUBST(BASH_SRC)dnl We run a C compiler to get macro EXEEXT set and possibly readarray.c.AC_PROG_CCAM_PROG_CC_C_OAM_PROG_LIBTOOLPIC=$lt_prog_compiler_pic_CXXWL=$lt_prog_compiler_wl_CXXAC_SUBST(PIC)AC_SUBST(WL)if test -z "$BASHDB_MAIN" ; then  BASHDB_MAIN=`strings $BASH_PROG$EXEEXT | grep bashdb-main.inc`  if test -z "$BASHDB_MAIN" ; then     AC_MSG_ERROR([I didn't find bashdb-main.inc in your bash. If you have the right version of bash, set it with the --with-bashdb-main option])  fifiAC_SUBST(BASHDB_MAIN)# Create a suitable transform ( without the $ -> $$ escaping added# because of $program_transform_name being used in a Makefile# This transform is needed because bashbd must be executed by the# bashdb-bash regardless if a program transform has taken placeac_transform=`echo "$program_transform_name" | sed 's/\\$\\$/\\$/g'`# Fully expanded name of bash executable to be substituted into# bashdb.This allow us to move this package into any suitable location# by using --prefix as an option to configure.AC_SUBST_DIR(INTERPRETER_NAME,"${bindir}/"`echo bash | sed "$ac_transform"`)# WARNING: The configure-correct name for architecture-independent# directory (the place for the bash source for the debugger) is # datadir. The automake file seem to want to use pkgdatadir instead.# I'm not sure how to get these to agree.# Also, I'd like to set the default to the name that's been coded# inside of the bash program rather than some autoconf standard; I# don't know how to change the autoconf default that which is# determined dynamically below.# Get the fully expanded name of pkgdatadir. This is used in bashdb.in# and dbg-main.inc.in and for installing debugger files.pkgdatadir=$datadir/bashdbAC_SUBST_DIR(PKGDATADIR, $pkgdatadir)dnl We use a diff in regression testingAC_PATH_PROG(DIFF, diff, no)DIFF_OPTS=if test "$DIFF" = no ; then   AC_PATH_PROG(DIFF, cmp, no)else    dnl Try for GNU diff options.  # MSDOG output uses \r\n rather than \n in tests  for diff_opt in -w --unified ; do     if $DIFF $diff_opt . . > /dev/null 2>&1; then      AC_MSG_RESULT([adding $diff_opt to diff in regression tests])      DIFF_OPTS="$DIFF_OPTS $diff_opt"    fi  donefiAC_SUBST(DIFF)AC_SUBST(DIFF_OPTS)AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir" != "x")build_readarray=$BASH_SRCif test x"$build_readarray" != x; then   AC_CHECK_HEADERS(unistd.h string.h,,   [AC_MSG_WARN([Missing some C headers. Disabling readarray])   build_readarray=])   AC_CHECK_FUNCS(getline)fiAM_CONDITIONAL(BUILD_READARRAY, test x"$build_readarray" != x)#MakefilesAC_CONFIG_FILES([Makefile \	doc/Makefile \	emacs/Makefile \	test/Makefile])# Additional files needing substitution of values (not Makefiles).AC_CONFIG_FILES([bashdb], [chmod +x bashdb])AC_CONFIG_FILES([test/bugIFS.sh], [chmod +x test/bugIFS.sh])AC_CONFIG_FILES([test/hanoi.sh], [chmod +x test/hanoi.sh])AC_CONFIG_FILES([test/interrupt.sh], [chmod +x test/interrupt.sh])AC_CONFIG_FILES([test/bug-args.sh], [chmod +x test/bug-args.sh])AC_CONFIG_FILES([test/dbg-test1.sh], [chmod +x test/dbg-test1.sh])AC_CONFIG_FILES([ \	bashdb-trace \	dbg-pre.inc \	dbg-main.inc \        emacs/bashdb-test.el \	test/check_common \	doc/macros.texi \	])AC_CONFIG_COMMANDS([default],[[# Keep old dates on these files to prevent rebuilding.touch -cr $ac_srcdir/configure.ac doc/bashdb.1touch -cr $ac_srcdir/configure.ac doc/bashdb-man.htmlif test -e $ac_srcdir/doc/version-bashdb.texi ; then	echo timestamp > $ac_srcdir/doc/stamp-vti	touch -cr $ac_srcdir/configure.ac $ac_srcdir/doc/version-bashdb.texi \	$ac_srcdir/doc/stamp-vti \	$ac_srcdir/doc/bashdb.info*fi]],[[]])AC_OUTPUTechoecho "========================================================="echo "Bash version: $bash_version"echo "Location: $BASH_PROG"if test x"$build_readarray" != x; then   echo "We will try to build the readarray builtin to speed up loading"   echo "located at $BASH_SRC."else   echo "We will not try to build the readarray builtin to speed up loading."fi

⌨️ 快捷键说明

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