#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59.
+# Generated by GNU Autoconf 2.58.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHARED CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO STRIP ac_ct_STRIP EGREP LIBTOOL UNCOMPRESS AR SLEXT target target_cpu target_vendor target_os WORDS_BIGENDIAN SYSTEM_BACKTICKS PACKAGE VERSION HAVE_UNISTD_H FREETYPE_CONFIG lame_objects AVIFILE_CONFIG VIDEO_LIBS VIDEO_CFLAGS USE_GZIP PYTHON_LIB PYTHON_INCLUDES JPEG2SWF PNG2SWF LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
-
-# Do not use `cd foo && pwd` to compute absolute paths, because
-# the directories may not exist.
-case `pwd` in
-.) ac_abs_builddir="$ac_dir";;
+case "$ac_dir" in
+.) ac_abs_builddir=$ac_builddir;;
*)
- case "$ac_dir" in
- .) ac_abs_builddir=`pwd`;;
- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
- *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ case $ac_builddir in
+ .) ac_abs_builddir="$ac_dir";;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
+ *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
- .) ac_abs_top_builddir=$ac_abs_builddir;;
+ .) ac_abs_top_builddir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
- .) ac_abs_srcdir=$ac_abs_builddir;;
+ .) ac_abs_srcdir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
- .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ .) ac_abs_top_srcdir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
esac;;
esac
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.59. Invocation command line was
+generated by GNU Autoconf 2.58. Invocation command line was
$ $0 $@
fi;
PACKAGE=swftools
-VERSION=2004-09-02-2157
+VERSION=2004-11-07-1822
+
# ------------------------------------------------------------------
export PACKAGE VERSION CFLAGS CXXFLAGS
- ac_aux_dir=
+
+ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+SHARED="-shared"
MACOSX=
case $host_os in
*darwin* )
MACOSX=yes
CFLAGS="$CFLAGS -fno-rtti"
CXXFLAGS="$CXXFLAGS -fno-rtti"
+ SHARED="-bundle"
;;
esac
+
+
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4796 "configure"' > conftest.$ac_ext
+ echo '#line 4801 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
libsuff=
case "$host_cpu" in
x86_64*)
- echo '#line 6605 "configure"' > conftest.$ac_ext
+ echo '#line 6610 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7353 "configure"
+#line 7358 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7451 "configure"
+#line 7456 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
if test "x$AVIFILE_CONFIG" '!=' "x";then
OLDCPPFLAGS="$CPPFLAGS"
- #OLDLDFLAGS="$LDFLAGS"
+ # temporarily add avifile paths to CPPFLAGS...
CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
- #LDFLAGS="$LDFLAGS `$AVIFILE_CONFIG --libs`"
for ac_header in avifile/version.h version.h
done
- #LDFLAGS="$OLDLDFLAGS"
+ # ... and reset
CPPFLAGS="$OLDCPPFLAGS"
fi
EOF
if test "x$AVIFILE_CONFIG" '!=' "x";then
- ac_link='$CXX $CPPFLAGS $CXXFLAGS `$AVIFILE_CONFIG --cflags` conftest.cpp `$AVIFILE_CONFIG --libs` -o conftest${ac_exeext}'
- if { (eval echo avi2swf.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
+ AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
+ AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
+ avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
+ if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
AVIFILE=true
fi
rm -f conftest*
+if test "x${AVIFILE}" = "xtrue"; then
+ VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
+ VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_AVIFILE 1
+_ACEOF
+
+fi
+
+if test "x${WIN32}" != "x"; then
+ #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
+ #if test "x${AVIFIL32}" != "x"; then
+ # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
+ #fi
+ VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
+ AVIFIL32=true
+fi
+
+
# ------------------------------------------------------------------
echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6
-# should we support python versions below 2.2?
-if test -f "/usr/lib/python2.2/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.2/Python.h";then
- PY_VERSION=2.2
-fi
-if test -f "/usr/lib/python2.3/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.3/Python.h";then
- PY_VERSION=2.3
-fi
-if test -f "/usr/lib/python2.4/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.4/Python.h";then
- PY_VERSION=2.4
+
+if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
+ PY_VERSION=unknown
+else
+ if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
+ echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
+ fi
+ # iterate through version 2.2 to 2.4
+ for v in 2 3 4; do
+ # Linux
+ if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
+ PY_VERSION=2.$v
+ PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
+ PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
+ fi
+ # Mac OS X
+ if test -f "/Library/Python/2.$v/PIL/_imaging.so" \
+ -a "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
+ PY_VERSION=2.$v
+ #PYTHON_LIB="-lpython$PY_VERSION /Library/Python/2.$v/PIL/_imaging.so"
+ PYTHON_LIB="-framework Python /Library/Python/2.$v/PIL/_imaging.so"
+ PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
+ fi
+ done
fi
if test "x$PY_VERSION" "!=" "x"; then
- echo "$as_me:$LINENO: result: python$PY_VERSION" >&5
-echo "${ECHO_T}python$PY_VERSION" >&6
- if test "x$PYTHON_LIB" = "x";then
- PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
- fi
- if test "x$PYTHON_INCLUDES" = "x";then
- PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
- fi
+ echo "$as_me:$LINENO: result: $PY_VERSION" >&5
+echo "${ECHO_T}$PY_VERSION" >&6
export PYTHON_INCLUDES PYTHON_LIB
#include <Python.h>
#include <Imaging.h>
-int main(int argn, char*argv)
+int main()
{
- return Py_Main(argn, argv);
+ int ret;
+ ret = Py_Main(0, 0);
+ int x; // check also for gcc 2.95.x incompatibilities
+ return ret;
}
-bli bla blo
EOF
ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if test "x$ZLIBMISSING" = "xtrue";then
MISSINGLIBS="${MISSINGLIBS} zlib"
- DISABLEPNG2SWF=true;
+ DISABLEPNG2SWF=true
+ PARTIAL=true
fi
if test "x$JPEGLIBMISSING" = "xtrue";then
MISSINGLIBS="${MISSINGLIBS} jpeglib"
- DISABLEPDF2SWF=true;
- DISABLEJPEG2SWF=true;
+ DISABLEPDF2SWF=true
+ DISABLEJPEG2SWF=true
+ PARTIAL=true
fi
if test "x$T1LIBMISSING" = "xtrue";then
MISSINGLIBS="${MISSINGLIBS} t1lib"
fi
-if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
- DISABLEPDF2SWF=true;
- DISABLEJPEG2SWF=true;
- MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
+if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
+ DISABLEPDF2SWF=true;
+ DISABLEJPEG2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
+ PARTIAL=true
fi
-if test "x$HAVE_FREETYPE" != "x1"; then
- DISABLEPDF2SWF=true;
- MISSINGLIBS="${MISSINGLIBS} freetype"
+if test "x$HAVE_FREETYPE" '!=' "x1"; then
+ DISABLEPDF2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} freetype"
+ PARTIAL=true
fi
-if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
- DISABLEPDF2SWF=true;
- MISSINGLIBS="${MISSINGLIBS} t1lib.h"
+if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
+ MISSINGLIBS="${MISSINGLIBS} t1lib.h"
fi
-if test "x${ac_cv_header_zlib_h}" != "xyes"; then
- DISABLEPNG2SWF=true;
- MISSINGLIBS="${MISSINGLIBS} zlib.h"
+if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
+ DISABLEPNG2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} zlib.h"
+ PARTIAL=true
fi
-if test "x${AVIFILE}" != "xtrue"; then
- MISSINGLIBS="${MISSINGLIBS} avifile"
+if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
+ MISSINGLIBS="${MISSINGLIBS} avifile"
+ PARTIAL=true
fi
echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
fi
avi2swf="avi2swf/Makefile"
-if test "x${AVIFILE}" != "xtrue"; then
+if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
echo "* Disabling avi2swf tool..."
echo all install uninstall clean: > avi2swf/Makefile
avi2swf=
if test "x${MISSINGLIBS}" '!=' "x"; then
+ if test "x${PARTIAL}" '=' "x"; then
+ echo "* (never mind)"
+ fi
echo "***************************************************"
fi
cat >&5 <<_CSEOF
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.59. Invocation command line was
+generated by GNU Autoconf 2.58. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.59,
+configured by $0, generated by GNU Autoconf 2.58,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Copyright (C) 2003 Free Software Foundation, Inc.
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
+s,@SHARED@,$SHARED,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@FREETYPE_CONFIG@,$FREETYPE_CONFIG,;t t
s,@lame_objects@,$lame_objects,;t t
s,@AVIFILE_CONFIG@,$AVIFILE_CONFIG,;t t
+s,@VIDEO_LIBS@,$VIDEO_LIBS,;t t
+s,@VIDEO_CFLAGS@,$VIDEO_CFLAGS,;t t
s,@USE_GZIP@,$USE_GZIP,;t t
s,@PYTHON_LIB@,$PYTHON_LIB,;t t
s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
-
-# Do not use `cd foo && pwd` to compute absolute paths, because
-# the directories may not exist.
-case `pwd` in
-.) ac_abs_builddir="$ac_dir";;
+case "$ac_dir" in
+.) ac_abs_builddir=$ac_builddir;;
*)
- case "$ac_dir" in
- .) ac_abs_builddir=`pwd`;;
- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
- *) ac_abs_builddir=`pwd`/"$ac_dir";;
+ case $ac_builddir in
+ .) ac_abs_builddir="$ac_dir";;
+ [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
+ *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
- .) ac_abs_top_builddir=$ac_abs_builddir;;
+ .) ac_abs_top_builddir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+ *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
- .) ac_abs_srcdir=$ac_abs_builddir;;
+ .) ac_abs_srcdir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+ *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
esac;;
esac
-case $ac_abs_builddir in
+case "$ac_dir" in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
- .) ac_abs_top_srcdir=$ac_abs_builddir;;
+ .) ac_abs_top_srcdir="$ac_dir";;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+ *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
esac;;
esac