Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
799c9e9b
Commit
799c9e9b
authored
18 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
recursive feature dependency checking
Originally committed as revision 7930 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
fa859b4d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure
+30
-0
30 additions, 0 deletions
configure
with
30 additions
and
0 deletions
configure
+
30
−
0
View file @
799c9e9b
...
@@ -216,6 +216,25 @@ set_all(){
...
@@ -216,6 +216,25 @@ set_all(){
done
done
}
}
pushvar
(){
for
var
in
$*
;
do
eval
level
=
\$
{
${
var
}
_level:
=
0
}
eval
${
var
}
_
${
level
}
=
"
\$
$var
"
eval
${
var
}
_level
=
$((
$level
+
1
))
done
}
popvar
(){
for
var
in
$*
;
do
eval
level
=
\$
{
${
var
}
_level:-0
}
test
$level
=
0
&&
continue
eval
level
=
$((
$level
-
1
))
eval
$var
=
"
\$
{
${
var
}
_
${
level
}
}"
eval
${
var
}
_level
=
$level
eval unset
${
var
}
_
${
level
}
done
}
enable
(){
enable
(){
set_all
yes
$*
set_all
yes
$*
}
}
...
@@ -258,10 +277,21 @@ disabled_any(){
...
@@ -258,10 +277,21 @@ disabled_any(){
check_deps
(){
check_deps
(){
for
cfg
;
do
for
cfg
;
do
enabled
${
cfg
}
_checking
&&
die
"Circular dependency for
$cfg
."
disabled
${
cfg
}
_checking
&&
continue
enable
${
cfg
}
_checking
eval
dep_all
=
"
\$
${
cfg
}
_deps"
eval
dep_all
=
"
\$
${
cfg
}
_deps"
eval
dep_any
=
"
\$
${
cfg
}
_deps_any"
eval
dep_any
=
"
\$
${
cfg
}
_deps_any"
pushvar cfg dep_all dep_any
check_deps
$dep_all
$dep_any
popvar cfg dep_all dep_any
enabled_all
$dep_all
||
disable
$cfg
enabled_all
$dep_all
||
disable
$cfg
enabled_any
$dep_any
||
disable
$cfg
enabled_any
$dep_any
||
disable
$cfg
disable
${
cfg
}
_checking
done
done
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment