Skip to content

Commit

Permalink
small build system fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskramm committed Jun 1, 2009
1 parent 4ba1e68 commit fe0bf96
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
15 changes: 4 additions & 11 deletions configure
Expand Up @@ -1311,11 +1311,6 @@ Optional Features:
--enable-optimizations turn on compiler optimizations (recommended for avi2swf)
--disable-lame don't compile any L.A.M.E. mp3 encoding code in
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-poppler use poppler instead of internal xpdf (currently broken)
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
Expand Down Expand Up @@ -1779,13 +1774,11 @@ fi
# Check whether --enable-lame was given.
if test "${enable_lame+set}" = set; then
enableval=$enable_lame; DISABLE_LAME=true
enableval=$enable_lame; if test "x$enable_lame" = "xno";then
DISABLE_LAME=yes
fi
# Check whether --with-poppler was given.
if test "${with_poppler+set}" = set; then
withval=$with_poppler; USE_POPPLER=true
else
DISABLE_LAME=
fi
Expand Down
7 changes: 4 additions & 3 deletions configure.in
Expand Up @@ -18,9 +18,10 @@ AC_ARG_ENABLE(warnings,
AC_ARG_ENABLE(optimizations,
[ --enable-optimizations turn on compiler optimizations (recommended for avi2swf)], OPTIMIZE=true)
AC_ARG_ENABLE(lame,
[ --disable-lame don't compile any L.A.M.E. mp3 encoding code in], DISABLE_LAME=true)
AC_ARG_WITH([poppler],
[ --with-poppler use poppler instead of internal xpdf (currently broken)], [USE_POPPLER=true])
[ --disable-lame don't compile any L.A.M.E. mp3 encoding code in],
if test "x$enable_lame" = "xno";then
DISABLE_LAME=yes
fi,DISABLE_LAME=)

PACKAGE=swftools
VERSION=0.9.0
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -261,7 +261,9 @@ def load(self):
"lib/action/lex.swf4.c", "lib/action/lex.swf5.c", "lib/action/libming.c",
"lib/action/swf4compiler.tab.c",
"lib/as3/abc.c", "lib/as3/code.c", "lib/as3/pool.c", "lib/as3/files.c", "lib/as3/opcodes.c",
"lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c"
"lib/as3/scripts.c", "lib/as3/common.c", "lib/as3/builtin.c", "lib/as3/compiler.c", "lib/as3/expr.c", "lib/as3/import.c",
"lib/as3/initcode.c", "lib/as3/parser.tab.c", "lib/as3/registry.c", "lib/as3/tokenizer.yy.c",
"lib/action/swf5compiler.tab.c", "lib/action/actioncompiler.c",
]
libpdf_sources = [
"lib/pdf/GFXOutputDev.cc", "lib/pdf/InfoOutputDev.cc", "lib/pdf/BitmapOutputDev.cc",
Expand Down
28 changes: 14 additions & 14 deletions src/pdf2swf.c
Expand Up @@ -640,11 +640,6 @@ int main(int argn, char *argv[])
exit(1);
}

if(info_only) {
show_info(driver, filename);
return 0;
}

if(!outputname)
{
if(filename) {
Expand All @@ -662,24 +657,29 @@ int main(int argn, char *argv[])
// test if the page range is o.k.
is_in_range(0x7fffffff, pagerange);

if(pagerange)
driver->set_parameter(driver, "pages", pagerange);

if (!filename) {
args_callback_usage(argv[0]);
exit(0);
}

/* add fonts */
for(t=0;t<fontpathpos;t++) {
driver->set_parameter(driver, "fontdir", fontpaths[t]);
}


char fullname[256];
if(password && *password) {
sprintf(fullname, "%s|%s", filename, password);
filename = fullname;
}

if(pagerange)
driver->set_parameter(driver, "pages", pagerange);

if(info_only) {
show_info(driver, filename);
return 0;
}

/* add fonts */
for(t=0;t<fontpathpos;t++) {
driver->set_parameter(driver, "fontdir", fontpaths[t]);
}

char*u = 0;
if((u = strchr(outputname, '%'))) {
Expand Down

0 comments on commit fe0bf96

Please sign in to comment.