Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
3ae3b721
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ae3b721
编写于
9月 21, 2007
作者:
R
Ramiro Polla
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace one-lined if;elses to && ||
Originally committed as revision 10540 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
3a319ab6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
29 deletion
+15
-29
configure
configure
+15
-29
未找到文件。
configure
浏览文件 @
3ae3b721
...
...
@@ -1447,20 +1447,16 @@ fi
# AltiVec flags: The FSF version of GCC differs from the Apple version
if
enabled altivec
;
then
if
test
-n
"
`
$cc
-v
2>&1 |
grep
version |
grep
Apple
`
"
;
then
add_cflags
"-faltivec"
else
test
-n
"
`
$cc
-v
2>&1 |
grep
version |
grep
Apple
`
"
&&
add_cflags
"-faltivec"
||
add_cflags
"-maltivec -mabi=altivec"
fi
check_header altivec.h
# check if our compiler supports Motorola AltiVec C API
if
enabled altivec_h
;
then
inc_altivec_h
=
"#include <altivec.h>"
else
enabled altivec_h
&&
inc_altivec_h
=
"#include <altivec.h>"
||
inc_altivec_h
=
fi
check_cc
<<
EOF
|| disable altivec
$inc_altivec_h
int main(void) {
...
...
@@ -1551,11 +1547,9 @@ fi
for
thread
in
$THREADS_LIST
;
do
if
enabled
$thread
;
then
if
test
-n
"
$thread_type
"
;
then
die
"ERROR: Only one thread type must be selected."
else
test
-n
"
$thread_type
"
&&
die
"ERROR: Only one thread type must be selected."
||
thread_type
=
"
$thread
"
fi
fi
done
...
...
@@ -1852,11 +1846,9 @@ echo "libvorbis enabled ${libvorbis-no}"
echo
"x264 enabled
${
libx264
-no
}
"
echo
"XviD enabled
${
libxvid
-no
}
"
echo
"zlib enabled
${
zlib
-no
}
"
if
!
enabled gpl
;
then
enabled gpl
&&
echo
"License: GPL"
||
echo
"License: LGPL"
else
echo
"License: GPL"
fi
echo
"Creating config.mak and config.h..."
...
...
@@ -1876,11 +1868,9 @@ echo "CC=$cc" >> config.mak
echo
"AR=
$ar
"
>>
config.mak
echo
"RANLIB=
$ranlib
"
>>
config.mak
echo
"LN_S=
$ln_s
"
>>
config.mak
if
enabled dostrip
;
then
echo
"STRIP=
$strip
"
>>
config.mak
else
enabled dostrip
&&
echo
"STRIP=
$strip
"
>>
config.mak
||
echo
"STRIP=echo ignoring strip"
>>
config.mak
fi
echo
"OPTFLAGS=
$CFLAGS
"
>>
config.mak
echo
"VHOOKCFLAGS=
$VHOOKCFLAGS
"
>>
config.mak
...
...
@@ -1968,19 +1958,15 @@ echo "SRC_PATH_BARE=$source_path" >> config.mak
echo
"BUILD_ROOT=
\"
$PWD
\"
"
>>
config.mak
# Apparently it's not possible to portably echo a backslash.
if
enabled asmalign_pot
;
then
printf
'#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n'
>>
$TMPH
else
enabled asmalign_pot
&&
printf
'#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n'
>>
$TMPH
||
printf
'#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\\n\\t"\n'
>>
$TMPH
fi
# Do not overwrite config.h if unchanged to avoid superfluous rebuilds.
if
!
cmp
-s
$TMPH
config.h
;
then
mv
-f
$TMPH
config.h
else
echo
"config.h is unchanged"
fi
cmp
-s
$TMPH
config.h
&&
echo
"config.h is unchanged"
||
mv
-f
$TMPH
config.h
rm
-f
$TMPO
$TMPC
$TMPE
$TMPS
$TMPH
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录