bfin-xxx-gcc-4.3.1中config.status的生成及运行(7):创建临时目录
来源:互联网 发布:python 当前时间 编辑:程序博客网 时间:2024/05/17 01:37
快乐虾
http://blog.csdn.net/lights_joy/
lights@hb165.com
本文适用于
gcc-
Blackfin系列DSP
Visual Studio 2005
欢迎转载,但请保留作者信息
cat >>$CONFIG_STATUS <</_ACEOF
for ac_config_target in $ac_config_targets
do
case "$ac_config_target" in
# Handling of arguments.
"as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
"collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
"nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
"$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
"auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
done
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
{
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=./confstat$$-$RANDOM
(umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in ." >&2
{ (exit 1); exit 1; }
}
_ACEOF
在输出的这一段代码中,由于$ac_config_targets为空,因此第一个for循环将不会执行。再下来,由于$ac_needs_defaults非空,因此对$CONFIG_FILES, $CONFIG_HEADERS, $CONFIG_COMMANDS三个变量进行赋值,经过这一步后,有如下几个值:
$CONFIG_FILES=" as:exec-tool.in collect-ld:exec-tool.in nm:exec-tool.in Makefile gccbug libada-mk "
$CONFIG_HEADERS =" auto-host.h:config.in"
$CONFIG_COMMANDS =" default"
在这段代码的最后,创建了一个临时目录。
参考资料
无心插柳-在vs2005中编译GCC4(
gcc交叉编译的实现(
在vs2005下编译gcc:工程文件(
从asm_out_file看gcc汇编代码的生成(
gcc4.1中的machine_mode(
gcc 4.3 configure脚本学习(1):前言(
gcc 4.3 configure脚本学习(2):Be Bourne compatible(
gcc 4.3 configure脚本学习(3):NLS nuisances(
bfin-gcc-4.3.1中config.h的生成(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(1):输出注释(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(2):Shell检测(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(3):文件配置(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(4):帮助信息输出(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(5):参数判断(
bfin-xxx-gcc-4.3.1中config.status的生成及运行(6):子目录获取(
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(7):创建临时目录
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(8):配置文件生成
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(1):输出注释
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(2):Shell检测
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(3):文件配置
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(5):参数判断
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(6):子目录获取
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(9):头文件生成
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(4):帮助信息输出
- bfin-gcc-4.3.1中config.h的生成
- bfin-xxx-gcc-4.3.1中auto-host.h的生成
- bfin-xxx-gcc中multilib.h的生成
- bfin-xxx-gcc中tm.h的生成
- bfin-xxx-gcc中options.h的生成
- bfin-xxx-gcc中bconfig.h的生成
- bfin-xxx-gcc中insn-modes.h的生成
- bfin-xxx-gcc中cc1.exe的生成顺序
- bfin-xxx-gcc中cc1.exe的生成
- 自动化测试之---Expect交互实例
- Chapter 2 The first steps in Vim
- 技术站点推荐
- 用jdom解析applicationContext.xml出错
- 用VFP读写*.INI 文件
- bfin-xxx-gcc-4.3.1中config.status的生成及运行(7):创建临时目录
- amoeba for mysql 0.22 发布
- 重写html代码当中的img标签内容,图片地址不变
- Linux 运行级详解
- WinCE BSP中打印信息的实现介绍
- 在C#中如何调用dll文件
- Maven
- maven和ant的比较
- 几点要注意的问题