diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-03-19 20:54:26 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-04-05 10:11:57 +0200 |
commit | 9b4d9d8795b02688b7140b82d716b3885284efc1 (patch) | |
tree | 04b82269c35fdd979fd16feaf9390cadc2bfc5bb /configure | |
parent | 702e7438275aee2990ee6943a66c17302cda08d9 (diff) | |
download | ffmpeg-9b4d9d8795b02688b7140b82d716b3885284efc1.tar.gz |
doc: enable compilation of -all tool pages
In particular, add documentation configuration system, through the
doc/config.texi file.
Fix trac issue #2374.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -658,6 +658,12 @@ print_config(){ } else if (file ~ /\\.mak\$/) { n = -v ? \"\" : \"!\"; printf(\"%s%s=yes\\n\", n, c) >>file; + } else if (file ~ /\\.texi\$/) { + pre = -v ? \"\" : \"@c \"; + yesno = \$2; + c2 = tolower(c); + gsub(/_/, \"-\", c2); + printf(\"%s@set %s %s\\n\", pre, c2, yesno) >>file; } } }" @@ -4406,13 +4412,13 @@ fi echo "License: $license" -echo "Creating config.mak and config.h..." +echo "Creating config.mak, config.h, and doc/config.texi..." test -e Makefile || $ln_s "$source_path/Makefile" . enabled stripping || strip="echo skipping strip" -config_files="$TMPH config.mak" +config_files="$TMPH config.mak doc/config.texi" cat > config.mak <<EOF # Automatically generated by configure - do not modify! @@ -4564,6 +4570,9 @@ if enabled yasm; then printf '' >$TMPASM fi +mkdir -p doc +echo "@c auto-generated by configure" > doc/config.texi + print_config ARCH_ "$config_files" $ARCH_LIST print_config HAVE_ "$config_files" $HAVE_LIST print_config CONFIG_ "$config_files" $CONFIG_LIST \ |