📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script. -*- m4 -*-dnldnl $Id: configure.in,v 1.7 1999/10/03 22:03:52 erikm Exp $dnlAC_REVISION([$Id: configure.in,v 1.7 1999/10/03 22:03:52 erikm Exp $])dnl Init autoconfAC_INIT(src/start.S)AC_CONFIG_AUX_DIR(tools)dnl Init automakePACKAGE=blobBLOB_MAJOR_VERSION=1BLOB_MINOR_VERSION=0BLOB_MICRO_VERSION=0BLOB_VERSION=$BLOB_MAJOR_VERSION.$BLOB_MINOR_VERSION.$BLOB_MICRO_VERSIONVERSION=$BLOB_VERSIONAM_INIT_AUTOMAKE($PACKAGE, $VERSION)AM_CONFIG_HEADER(include/config.h)dnl Init maintainer modeAM_MAINTAINER_MODEdnl Guess the host OSAC_CANONICAL_HOSTdnl Checks for programs.AC_PROG_CCAC_CHECK_PROG(OBJCOPY, objcopy, objcopy, echo)AC_ISC_POSIXAC_PROG_INSTALLAC_PROG_LN_Sdnl Checks for libraries.dnl Checks for header files.dnl Find out where the Linux headers areAC_ARG_WITH(linux-prefix,[ --with-linux-prefix=PFX Prefix where the ArmLinux sources live], linux_prefix="$withval", linux_prefix="/usr/src/linux")CFLAGS=`echo $CFLAGS -I${linux_prefix}/include`dnl Check for extra debug infoAC_ARG_ENABLE(blob-debug,[ --enable-blob-debug Enable run-time debug information],[blob_debug_flag=$enable_blob_debug],[blob_debug_flag=no])if test "x$blob_debug_flag" = "xyes" ; then AC_DEFINE(BLOB_DEBUG)fidnl Checks for typedefs, structures, and compiler characteristics.AC_C_INLINEdnl Checks for library functions.dnl Add C flags to display more warningsAC_MSG_CHECKING(for C flags to get more warnings)ac_save_CFLAGS="$CFLAGS"AC_LANG_SAVEif test "x$ac_cv_prog_gcc" = "xyes" ; then dnl gcc is the easiest C compiler warning_CFLAGS="-Wall"else dnl Vendor supplied C compilers are a bit tricky case "$host_os" in dnl SGI IRIX with the MipsPRO C compiler irix*) AC_LANG_C CFLAGS="$CFLAGS -fullwarn" AC_TRY_COMPILE([#include <stdio.h>],[printf("test");], warning_CFLAGS="-fullwarn",) ;; dnl SunOS 4.x with the SparcWorks(?) acc compiler sunos*) if "$CC" = "acc" ; then AC_LANG_C CFLAGS="$CFLAGS -vc" AC_TRY_COMPILE([#include <stdio.h>],[printf("test");], warning_CFLAGS="-vc",) fi ;; dnl Unknown, do nothing *) warning_CFLAGS="none" ;; esacfiAC_LANG_RESTORECFLAGS="$ac_save_CFLAGS"if test "$warning_CFLAGS" = "none" ; then AC_MSG_RESULT(none)else CFLAGS="$CFLAGS $warning_CFLAGS" AC_MSG_RESULT($warning_CFLAGS)fi dnl Remove the "-g" flag from CFLAGS and LDFLAGSCFLAGS=`echo $CFLAGS | sed 's/\ *-g\ */\ /'`LDFLAGS=`echo $LDFLAGS | sed 's/\ *-g\ */\ /'`dnl Add some StrongARM specific flagsCFLAGS=`echo $CFLAGS -nostdinc -mcpu=strongarm110 -mapcs-32 -fomit-frame-pointer -fPIC`LDFLAGS=`echo $LDFLAGS -static -nostdlib`OCFLAGS="-O binary -R .note -R .comment -S"AC_SUBST(OCFLAGS)AC_OUTPUT(Makefileinclude/Makefilesrc/Makefiletools/Makefile)echo ""echo "Configuration"echo "------------------------------------------------------------------------"echo "Host OS ${host}"echo "Target ${target}"echo "Run-time debug information ${blob_debug_flag}"echo "C compiler ${CC}"echo "C flags ${CFLAGS}"echo "Linker flags ${LDFLAGS}"echo "Objcopy tool ${OBJCOPY}"echo "Objcopy flags ${OCFLAGS}"echo ""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -