configure.in

来自「基于4个mips核的noc设计」· IN 代码 · 共 296 行

IN
296
字号
dnl Process this file with autoconf to produce a configure script.dnlAC_PREREQ(2.13)AC_INIT(ar.c)AC_CANONICAL_SYSTEMAC_ISC_POSIXchangequote(,)dnlBFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`changequote([,])dnlAM_INIT_AUTOMAKE(binutils, ${BFD_VERSION})AM_PROG_LIBTOOLAC_ARG_ENABLE(targets,[  --enable-targets        alternative target configurations],[case "${enableval}" in  yes | "") AC_ERROR(enable-targets option must specify target names or 'all')            ;;  no)       enable_targets= ;;  *)        enable_targets=$enableval ;;esac])dnlAC_ARG_ENABLE(commonbfdlib,[  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library],[case "${enableval}" in  yes) commonbfdlib=true ;;  no)  commonbfdlib=false ;;  *)   AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;esac])dnlbuild_warnings="-W -Wall"AC_ARG_ENABLE(build-warnings,[  --enable-build-warnings Enable build-time compiler warnings if gcc is used],[case "${enableval}" in  yes)	;;  no)	build_warnings="-w";;  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${build_warnings} ${t}";;  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${t} ${build_warnings}";;  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;esacif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then  echo "Setting warning flags = $build_warnings" 6>&1fi])dnlWARN_CFLAGS=""if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then    WARN_CFLAGS="${build_warnings}"fiAC_SUBST(WARN_CFLAGS)AM_CONFIG_HEADER(config.h:config.in)if test -z "$target" ; then    AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)fiif test -z "$host" ; then    AC_MSG_ERROR(Unrecognized host system type; please check config.sub.)fiAC_PROG_CCAC_PROG_YACCAM_PROG_LEXALL_LINGUAS=CY_GNU_GETTEXTAM_MAINTAINER_MODEAC_EXEEXTif test -n "$EXEEXT"; then  AC_DEFINE(HAVE_EXECUTABLE_SUFFIX, 1,	    [Does the platform use an executable suffix?])fiAC_DEFINE_UNQUOTED(EXECUTABLE_SUFFIX, "${EXEEXT}",		   [Suffix used for executables, if any.])# host-specific stuff:HDEFINES=. ${srcdir}/../bfd/configure.hostAC_SUBST(HDEFINES)AR=${AR-ar}AC_SUBST(AR)AC_PROG_RANLIBAC_PROG_INSTALLBFD_CC_FOR_BUILDDEMANGLER_NAME=c++filtcase "${host}" in  *-*-go32* | *-*-msdos*)    DEMANGLER_NAME=cxxfiltesacAC_SUBST(DEMANGLER_NAME)AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h)AC_HEADER_SYS_WAITAC_FUNC_ALLOCAAC_CHECK_FUNCS(sbrk utimes setmode)# Some systems have frexp only in -lm, not in -lc.AC_SEARCH_LIBS(frexp, m)AC_MSG_CHECKING(for time_t in time.h)AC_CACHE_VAL(bu_cv_decl_time_t_time_h,[AC_TRY_COMPILE([#include <time.h>], [time_t i;],bu_cv_decl_time_t_time_h=yes, bu_cv_decl_time_t_time_h=no)])AC_MSG_RESULT($bu_cv_decl_time_t_time_h)if test $bu_cv_decl_time_t_time_h = yes; then  AC_DEFINE([HAVE_TIME_T_IN_TIME_H], 1,	    [Is the type time_t defined in <time.h>?])fiAC_MSG_CHECKING(for time_t in sys/types.h)AC_CACHE_VAL(bu_cv_decl_time_t_types_h,[AC_TRY_COMPILE([#include <sys/types.h>], [time_t i;],bu_cv_decl_time_t_types_h=yes, bu_cv_decl_time_t_types_h=no)])AC_MSG_RESULT($bu_cv_decl_time_t_types_h)if test $bu_cv_decl_time_t_types_h = yes; then  AC_DEFINE([HAVE_TIME_T_IN_TYPES_H], 1,	    [Is the type time_t defined in <sys/types.h>?])fi# Under Next 3.2 <utime.h> apparently does not define struct utimbuf# by default.AC_MSG_CHECKING([for utime.h])AC_CACHE_VAL(bu_cv_header_utime_h,[AC_TRY_COMPILE([#include <sys/types.h>#ifdef HAVE_TIME_H#include <time.h>#endif#include <utime.h>],[struct utimbuf s;],bu_cv_header_utime_h=yes, bu_cv_header_utime_h=no)])AC_MSG_RESULT($bu_cv_header_utime_h)if test $bu_cv_header_utime_h = yes; then  AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])fiBFD_NEED_DECLARATION(fprintf)BFD_NEED_DECLARATION(strstr)BFD_NEED_DECLARATION(sbrk)BFD_NEED_DECLARATION(getenv)BFD_NEED_DECLARATION(environ)BFD_BINARY_FOPEN# target-specific stuff:# Canonicalize the secondary target names.if test -n "$enable_targets"; then    for targ in `echo $enable_targets | sed 's/,/ /g'`    do	result=`$ac_config_sub $targ 2>/dev/null`	if test -n "$result"; then	    canon_targets="$canon_targets $result"	else	    # Allow targets that config.sub doesn't recognize, like "all".	    canon_targets="$canon_targets $targ"	fi    donefiall_targets=falseBUILD_NLMCONV=NLMCONV_DEFS=BUILD_SRCONV=BUILD_DLLTOOL=DLLTOOL_DEFS=BUILD_WINDRES=BUILD_DLLWRAP=BUILD_MISC=OBJDUMP_DEFS=for targ in $target $canon_targetsdo    if test "x$targ" = "xall"; then        all_targets=true	BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'	BUILD_SRCONV='$(SRCONV_PROG)'	NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"    else	case $targ inchangequote(,)dnl	i[3456]86*-*-netware*) changequote([,])dnl	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"	  ;;	alpha*-*-netware*)	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"	  ;;	powerpc*-*-netware*)	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"	  ;;	sparc*-*-netware*)	  BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'	  NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"	  ;;	esac	case $targ in	*-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;	esac	case $targ in	arm-epoc-pe*)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	arm-*pe* | arm-*-wince)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	thumb-*pe*)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;  	arm*-* | xscale-* | strongarm-* | d10v-*)	  OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"	  ;;changequote(,)dnl	i[3-6]86-*pe* | i[3-6]86-*-cygwin* | i[3-6]86-*-mingw32*)changequote([,])dnl  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'	  ;;	i[3-6]86-*-interix)	  BUILD_DLLTOOL='$(DLLTOOL_PROG)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"	  ;;	powerpc*-*-*pe* | powerpc*-*-cygwin*)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	sh*-*-*pe)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	mips*-*-*pe)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	mcore-*pe)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"	  BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'	  ;;	mcore-*elf)  	  BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'	  DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"	  ;;	esac    fidoneAC_SUBST(NLMCONV_DEFS)AC_SUBST(BUILD_NLMCONV)AC_SUBST(BUILD_SRCONV)AC_SUBST(BUILD_DLLTOOL)AC_SUBST(DLLTOOL_DEFS)AC_SUBST(BUILD_WINDRES)AC_SUBST(BUILD_DLLWRAP)AC_SUBST(BUILD_MISC)AC_SUBST(OBJDUMP_DEFS)AC_DEFINE_UNQUOTED(TARGET, "${target}", [Configured target name.])targ=$target. $srcdir/../bfd/config.bfdif test "x$targ_underscore" = "xyes"; then    UNDERSCORE=1else    UNDERSCORE=0fiAC_SUBST(UNDERSCORE)AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,[case "x$CONFIG_FILES" in*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;esac])

⌨️ 快捷键说明

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