configure.in

来自「eCos操作系统源码」· IN 代码 · 共 97 行

IN
97
字号
dnl Process this file with autoconf to produce a configure script.dnl ====================================================================dnldnl     configure.indnldnl     configure script for eCos synthetic target ethernetdnl	host-side supportdnldnl ====================================================================dnl####COPYRIGHTBEGIN####dnl                                                                         dnl ----------------------------------------------------------------------------dnl Copyright (C) 2002 Bart Veerdnldnl This file is part of the eCos synthetic target support.dnldnl This program is free software; you can redistribute it and/or modify it dnl under the terms of the GNU General Public License as published by the Free dnl Software Foundation; either version 2 of the License, or (at your option) dnl any later version.dnl dnl This program is distributed in the hope that it will be useful, but WITHOUT dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for dnl more details.dnl dnl You should have received a copy of the GNU General Public License along withdnl this program; if not, write to the Free Software Foundation, Inc., dnl 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.dnl ----------------------------------------------------------------------------dnl                                                                          dnl####COPYRIGHTEND####dnl ====================================================================dnl#####DESCRIPTIONBEGIN####dnldnl Author(s):	bartvdnl Contact(s):	bartvdnl Date:	2002/08/07dnl Version:	0.01dnldnl####DESCRIPTIONEND####dnl ====================================================================AC_INIT(rawether.c)dnl Pick up the support files from the top-level acsupport directory.AC_CONFIG_AUX_DIR(../../../../../../../acsupport)ECOS_CHECK_BUILD_ne_SRCAC_CANONICAL_HOSTAM_INIT_AUTOMAKE(eCos_synthetic_target_ethernet,0.1,0)AM_MAINTAINER_MODEdnl The current version of the synthetic target is implemented only fordnl x86 Linux platforms, so a test is appropriate here. Howeverdnl it is not a good idea for the configure script to report an error:dnl that would prevent any top-level configury working for otherdnl platforms. Instead an automake conditional is used to suppress addingdnl targets to the build.case "${host}" in    i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;    * ) SUPPORTED="no"esacif test "${SUPPORTED}" = "no" ; then    AC_MSG_WARN([Synthetic target ethernet support is only available on x86 Linux hosts])fi   if test "${SUPPORTED}" = "yes" ; then    AC_PROG_CC    AC_PROG_CXX    AC_OBJEXT    AC_EXEEXT    ECOS_PROG_MSVC    ECOS_PROG_STANDARD_COMPILER_FLAGS    ECOS_PACKAGE_DIRS    dnl Old kernels may not have tun/tap support. rawether can    dnl still operate via a spare ethernet interface.    AC_CHECK_HEADERS("linux/if_tun.h",TAP_SUPPORTED="yes",TAP_SUPPORTED="no")    if test "${TAP_SUPPORTED}" = "no" ; then        AC_MSG_WARN([No <linux/if_tun.h> header, ethertap support disabled.])    fifiif test "${SUPPORTED}" = "no" ; then    AC_MSG_WARN([The synthetic ethernet support cannot be built on this platform.])fiAM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")dnl There is no real need for a config.h file at this time, since the codednl is specific to x86 Linux. This may change in future.dnl AM_CONFIG_HEADER(config.h:config.h.in)AC_OUTPUT(Makefile:Makefile.in)

⌨️ 快捷键说明

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