configure.in
来自「基于4个mips核的noc设计」· IN 代码 · 共 178 行
IN
178 行
dnl ***************************************************************************dnldnl The following code is derived, directly or indirectly, from the SystemCdnl source code Copyright (c) 1996-2002 by all Contributors.dnl All Rights reserved.dnldnl The contents of this file are subject to the restrictions and limitationsdnl set forth in the SystemC Open Source License Version 2.3 (the "License");dnl You may not use this file except in compliance with such restrictions anddnl limitations. You may obtain instructions on how to receive a copy of thednl License at http://www.systemc.org/. Software distributed by Contributorsdnl under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OFdnl ANY KIND, either express or implied. See the License for the specificdnl language governing rights and limitations under the License.dnldnl ***************************************************************************dnldnl configure.in --dnl Process this file with autoconf to produce a configure script.dnldnl Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21dnldnl ***************************************************************************dnldnl MODIFICATION LOG - modifiers, enter your name, affiliation, date anddnl changes you are making here.dnldnl Name, Affiliation, Date:dnl Description of Modification:dnldnl ***************************************************************************dnldnl Initialization.dnlAC_INIT(NEWS)AC_CONFIG_AUX_DIR(config)dnldnl Some simple checks.dnlAC_CANONICAL_SYSTEMAM_INIT_AUTOMAKE(package,version,do-no-define)AC_PROG_CCAC_PROG_CXXAC_PROG_RANLIBAC_PROG_INSTALLdnldnl Set the compiler flags and target architecture.dnlCXX_COMP=`basename $CXX`AR_TOOL="ar cru"case "$target" in sparc-sun-solaris*) case "$CXX_COMP" in CC) EXTRA_CXXFLAGS="" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="sparcOS5" AR_TOOL="$CXX -xar -o" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="gccsparcOS5" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="sparc-os2" ;; *linux*) case "$CXX_COMP" in c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="linux" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="iX86" ;; *cygwin*) case "$CXX_COMP" in c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="cygwin" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="iX86" ;; *hpux11*) case "$CXX_COMP" in aCC) EXTRA_CXXFLAGS="-Aa -ext +DA2.0 +DS2.0" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="+O1" TARGET_ARCH="hpux11" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS -Wa,-w36" ;; c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g" OPT_CXXFLAGS="-O3" TARGET_ARCH="gcchpux11" CC="$CXX" CFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="hppa" ;; *) AC_MSG_ERROR("sorry...architecture not supported") ;;esacdnldnl The fixed-point datatypes "package" is included.dnlEXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -DSC_INCLUDE_FX"CXXFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS"dnldnl Set the default prefix and make sure the prefix is absolute.dnltest "x$prefix" = xNONE && prefix=$srcdircurrent_dir=`pwd`; cd $prefix; prefix=`pwd`; cd $current_dirdnldnl Substitution variables.dnlAC_SUBST(EXTRA_CXXFLAGS)AC_SUBST(DEBUG_CXXFLAGS)AC_SUBST(OPT_CXXFLAGS)AC_SUBST(TARGET_ARCH)AC_SUBST(QT_ARCH)AC_SUBST(AR_TOOL)dnldnl Create the Makefiles.dnlAC_OUTPUT(Makefile src/Makefile src/systemc/Makefile src/systemc/communication/Makefile src/systemc/datatypes/Makefile src/systemc/datatypes/bit/Makefile src/systemc/datatypes/fx/Makefile src/systemc/datatypes/int/Makefile src/systemc/kernel/Makefile src/systemc/tracing/Makefile src/systemc/qt/Makefile src/systemc/utils/Makefile examples/Makefile examples/systemc/Makefile) dnl Taf!
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?