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

📄 aclocal.m4

📁 ncurses-5.4 需要的就来下把 一定会有用的哦
💻 M4
📖 第 1 页 / 共 5 页
字号:
			echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED			NAME=ncurses.h		fi		echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED	done	;;*)	echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED	;;esacCF_EOFficat >>headers.sh <<CF_EOFrm -f \$TMPSRCsed -f \$TMPSED \$SRC > \$TMPSRCNAME=\`basename \$SRC\`CF_EOFif test $WITH_CURSES_H != yes; then	cat >>headers.sh <<CF_EOFtest "\$NAME" = "curses.h" && NAME=ncurses.hCF_EOFficat >>headers.sh <<CF_EOF# Just in case someone gzip'd manpages, remove the conflicting copy.test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gzeval \$PRG \$TMPSRC \$DST/\$NAMErm -f \$TMPSRC \$TMPSEDCF_EOFchmod 0755 headers.shfor cf_dir in $SRC_SUBDIRSdo	if test -f $srcdir/$cf_dir/headers; then	cat >>$cf_dir/Makefile <<CF_EOF\$(DESTDIR)\$(includedir) :	sh \$(srcdir)/../mkinstalldirs \[$]@install \\install.libs \\install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\CF_EOF		j=""		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`		do			test -n "$j" && echo "		$j \\" >>$cf_dir/Makefile			j=$i		done		echo "		$j" >>$cf_dir/Makefile		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`		do			echo "	@ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile			test $i = curses.h && test $WITH_CURSES_H = yes && echo "	@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile		done	cat >>$cf_dir/Makefile <<CF_EOFuninstall \\uninstall.libs \\uninstall.includes ::CF_EOF		for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`		do			i=`basename $i`			echo "	-@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile			test $i = curses.h && echo "	-@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile		done	fi	if test -f $srcdir/$cf_dir/modules; then		if test "$cf_dir" != "c++" ; then			cat >>$cf_dir/Makefile <<"CF_EOF"depend : $(AUTO_SRC)	makedepend -- $(CPPFLAGS) -- $(C_SRC)# DO NOT DELETE THIS LINE -- make depend depends on it.CF_EOF		fi	fidone])dnldnl ---------------------------------------------------------------------------dnl CF_LIB_SUFFIX version: 13 updated: 2003/11/01 16:09:07dnl -------------dnl Compute the library file-suffix from the given model namednl $1 = model namednl $2 = variable to setdnl The variable $LIB_SUFFIX, if set, prepends the variable to set.AC_DEFUN([CF_LIB_SUFFIX],[	AC_REQUIRE([CF_SUBST_NCURSES_VERSION])	case $1 in	libtool) $2='.la'  ;;	normal)  $2='.a'   ;;	debug)   $2='_g.a' ;;	profile) $2='_p.a' ;;	shared)		case $cf_cv_system_name in		cygwin*) $2='.dll' ;;		darwin*) $2='.dylib' ;;		hpux*)			case $target in			ia64*)	$2='.so' ;;			*)	$2='.sl' ;;			esac			;;		*)	$2='.so'  ;;		esac	esac	test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"])dnldnl ---------------------------------------------------------------------------dnl CF_LIB_TYPE version: 4 updated: 2000/10/20 22:57:49dnl -----------dnl Compute the string to append to -library from the given model namednl $1 = model namednl $2 = variable to setdnl The variable $LIB_SUFFIX, if set, prepends the variable to set.AC_DEFUN([CF_LIB_TYPE],[	case $1 in	libtool) $2=''   ;;	normal)  $2=''   ;;	debug)   $2='_g' ;;	profile) $2='_p' ;;	shared)  $2=''   ;;	esac	test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"])dnldnl ---------------------------------------------------------------------------dnl CF_LINK_DATAONLY version: 6 updated: 2003/02/02 01:41:46dnl ----------------dnl Some systems have a non-ANSI linker that doesn't pull in modules that havednl only data (i.e., no functions), for example NeXT.  On those systems we'lldnl have to provide wrappers for global tables to ensure they're linkeddnl properly.AC_DEFUN([CF_LINK_DATAONLY],[AC_MSG_CHECKING([if data-only library module links])AC_CACHE_VAL(cf_cv_link_dataonly,[	rm -f conftest.a	cat >conftest.$ac_ext <<EOF#line __oline__ "configure"int	testdata[[3]] = { 123, 456, 789 };EOF	if AC_TRY_EVAL(ac_compile) ; then		mv conftest.o data.o && \		( $AR $AR_OPTS conftest.a data.o ) 2>&AC_FD_CC 1>/dev/null	fi	rm -f conftest.$ac_ext data.o	cat >conftest.$ac_ext <<EOF#line __oline__ "configure"int	testfunc(){#if defined(NeXT)	exit(1);	/* I'm told this linker is broken */#else	extern int testdata[[3]];	return testdata[[0]] == 123	   &&  testdata[[1]] == 456	   &&  testdata[[2]] == 789;#endif}EOF	if AC_TRY_EVAL(ac_compile); then		mv conftest.o func.o && \		( $AR $AR_OPTS conftest.a func.o ) 2>&AC_FD_CC 1>/dev/null	fi	rm -f conftest.$ac_ext func.o	( eval $RANLIB conftest.a ) 2>&AC_FD_CC >/dev/null	cf_saveLIBS="$LIBS"	LIBS="conftest.a $LIBS"	AC_TRY_RUN([	int main()	{		extern int testfunc();		exit (!testfunc());	}	],	[cf_cv_link_dataonly=yes],	[cf_cv_link_dataonly=no],	[cf_cv_link_dataonly=unknown])	LIBS="$cf_saveLIBS"	])AC_MSG_RESULT($cf_cv_link_dataonly)if test "$cf_cv_link_dataonly" = no ; then	AC_DEFINE(BROKEN_LINKER)	BROKEN_LINKER=1fi])dnldnl ---------------------------------------------------------------------------dnl CF_LINK_FUNCS version: 5 updated: 2003/02/02 01:41:46dnl -------------dnl Most Unix systems have both link and symlink, a few don't have symlink.dnl A few non-Unix systems implement symlink, but not link.dnl A few non-systems implement neither (or have nonfunctional versions).AC_DEFUN([CF_LINK_FUNCS],[AC_CHECK_FUNCS( \	remove \	unlink )if test "$cross_compiling" = yes ; then	AC_CHECK_FUNCS( \		link \		symlink )else	AC_CACHE_CHECK(if link/symlink functions work,cf_cv_link_funcs,[		cf_cv_link_funcs=		for cf_func in link symlink ; do			AC_TRY_RUN([#include <sys/types.h>#include <sys/stat.h>#ifdef HAVE_UNISTD_H#include <unistd.h>#endifint main(){	int fail = 0;	char *src = "config.log";	char *dst = "conftest.chk";	struct stat src_sb;	struct stat dst_sb;	stat(src, &src_sb);	fail = ($cf_func("config.log", "conftest.chk") < 0)	    || (stat(dst, &dst_sb) < 0)	    || (dst_sb.st_mtime != src_sb.st_mtime);#ifdef HAVE_UNLINK	unlink(dst);#else	remove(dst);#endif	exit (fail);}			],[			cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"			eval 'ac_cv_func_'$cf_func'=yes'],[			eval 'ac_cv_func_'$cf_func'=no'],[			eval 'ac_cv_func_'$cf_func'=error'])		done		test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no	])	test "$ac_cv_func_link"    = yes && AC_DEFINE(HAVE_LINK)	test "$ac_cv_func_symlink" = yes && AC_DEFINE(HAVE_SYMLINK)fi])dnldnl ---------------------------------------------------------------------------dnl CF_MAKEFLAGS version: 9 updated: 2001/12/30 18:17:27dnl ------------dnl Some 'make' programs support $(MAKEFLAGS), some $(MFLAGS), to pass 'make'dnl options to lower-levels.  It's very useful for "make -n" -- if we have it.dnl (GNU 'make' does both, something POSIX 'make', which happens to make thednl $(MAKEFLAGS) variable incompatible because it adds the assignments :-)AC_DEFUN([CF_MAKEFLAGS],[AC_CACHE_CHECK(for makeflags variable, cf_cv_makeflags,[	cf_cv_makeflags=''	for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'	do		cat >cf_makeflags.tmp <<CF_EOFSHELL = /bin/shall :	@ echo '.$cf_option'CF_EOF		cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`		case "$cf_result" in		.*k)			cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`			case "$cf_result" in			.*CC=*)	cf_cv_makeflags=				;;			*)	cf_cv_makeflags=$cf_option				;;			esac			break			;;		*)	echo no match "$cf_result"			;;		esac	done	rm -f cf_makeflags.tmp])AC_SUBST(cf_cv_makeflags)])dnldnl ---------------------------------------------------------------------------dnl CF_MAKE_TAGS version: 2 updated: 2000/10/04 09:18:40dnl ------------dnl Generate tags/TAGS targets for makefiles.  Do not generate TAGS if we havednl a monocase filesystem.AC_DEFUN([CF_MAKE_TAGS],[AC_REQUIRE([CF_MIXEDCASE_FILENAMES])AC_CHECK_PROG(MAKE_LOWER_TAGS, ctags, yes, no)if test "$cf_cv_mixedcase" = yes ; then	AC_CHECK_PROG(MAKE_UPPER_TAGS, etags, yes, no)else	MAKE_UPPER_TAGS=nofiif test "$MAKE_UPPER_TAGS" = yes ; then	MAKE_UPPER_TAGS=else	MAKE_UPPER_TAGS="#"fiAC_SUBST(MAKE_UPPER_TAGS)if test "$MAKE_LOWER_TAGS" = yes ; then	MAKE_LOWER_TAGS=else	MAKE_LOWER_TAGS="#"fiAC_SUBST(MAKE_LOWER_TAGS)])dnldnl ---------------------------------------------------------------------------dnl CF_MANPAGE_FORMAT version: 7 updated: 2003/12/20 19:30:34dnl -----------------dnl Option to allow user to override automatic configuration of manpage format.dnl There are several special cases:dnldnl	gzip - man checks for, can display gzip'd filesdnl	compress - man checks for, can display compressed filesdnl	BSDI - files in the cat-directories are suffixed ".0"dnl	formatted - installer should format (put files in cat-directory)dnl	catonly - installer should only format, e.g., for a turnkey system.dnldnl There are other configurations which this macro does not test, e.g., HPUX'sdnl compressed manpages (but uncompressed manpages are fine, and HPUX's namingdnl convention would not match our use).AC_DEFUN([CF_MANPAGE_FORMAT],[AC_REQUIRE([CF_PATHSEP])AC_MSG_CHECKING(format of man-pages)AC_ARG_WITH(manpage-format,	[  --with-manpage-format   specify manpage-format: gzip/compress/BSDI/normal and                          optionally formatted/catonly, e.g., gzip,formatted],	[MANPAGE_FORMAT=$withval],	[MANPAGE_FORMAT=unknown])test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknownMANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`cf_unknown=case $MANPAGE_FORMAT inunknown)  if test -z "$MANPATH" ; then    MANPATH="/usr/man:/usr/share/man"  fi  # look for the 'date' man-page (it's most likely to be installed!)  MANPAGE_FORMAT=  cf_preform=no  cf_catonly=yes  cf_example=date  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"  for cf_dir in $MANPATH; do    test -z "$cf_dir" && cf_dir=/usr/man    for cf_name in $cf_dir/man*/$cf_example.[[01]]* $cf_dir/cat*/$cf_example.[[01]]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example    do      cf_test=`echo $cf_name | sed -e 's/*//'`      if test "x$cf_test" = "x$cf_name" ; then	case "$cf_name" in	*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;	*.Z)  MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;	*.0)	MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;	*)    MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;	esac	case "$cf_name" in	$cf_dir/man*)	  cf_catonly=no	  ;;	$cf_dir/cat*)	  cf_preform=yes	  ;;	esac	break      fi      # if we found a match in either man* or cat*, stop looking      if test -n "$MANPAGE_FORMAT" ; then	cf_found=no	test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"	test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"	case "$cf_name" in	$cf_dir/cat*)	  cf_found=yes	  ;;	esac	test $cf_found=yes && break      fi    done    # only check the first directory in $MANPATH where we find manpages    if test -n "$MANPAGE_FORMAT" ; then       break    fi  done  # if we did not find the example, just assume it is normal  test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal  IFS="$ac_save_ifs"  ;;*)  for cf_option in $MANPAGE_FORMAT; do     case $cf_option in #(vi     gzip|compress|BSDI|normal|formatted|catonly)       ;;     *)       cf_unknown="$cf_unknown $cf_option"       ;;     esac  done  ;;esacAC_MSG_RESULT($MANPAGE_FORMAT)if test -n "$cf_unknown" ; then  AC_MSG_WARN(Unexpected manpage-format $cf_unknown)fi])dnldnl ---------------------------------------------------------------------------dnl CF_MANPAGE_RENAMES version: 6 updated: 2002/01/19 22:51:32dnl ------------------dnl The Debian people have their own naming convention for manpages.  Thisdnl option lets us override the name of the file containing renaming, ordnl disable it altogether.AC_DEFUN([CF_MANPAGE_RENAMES],[AC_MSG_CHECKING(for manpage renaming)AC_ARG_WITH(manpage-renames,	[  --with-manpage-renames  specify manpage-renaming],	[MANPAGE_RENAMES=$withval],	[MANPAGE_RENAMES=yes])case ".$MANPAGE_RENAMES" in #(vi.no) #(vi  ;;.|.yes)  # Debian 'man' program?  if test -f /etc/debian_version ; then    MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames  else    MANPAGE_RENAMES=no  fi  ;;esacif test "$MANPAGE_RENAMES" != no ; then  if test -f $srcdir/man/$MANPAGE_RENAMES ; then    MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES  elif test ! -f $MANPAGE_RENAMES ; then    AC_MSG_ERROR(not a filename: $MANPAGE_RENAMES)  fi  test ! -d man && mkdir man  # Construct a sed-script to perform renaming within man-pages  if test -n "$MANPAGE_RENAMES" ; then    test ! -d man && mkdir man    sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >man/edit_man.sed  fi

⌨️ 快捷键说明

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