diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-14 11:05:06 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-14 11:05:06 +0000 |
commit | 5fae1a428c0a53b507b63cac0f08153f7560a6a2 (patch) | |
tree | 0a3639fe618157c4528ef298415df4bbc6e1dcec /mediaplugin/src/plugins/media/ffmpeg/configure | |
parent | 8d33b3ef918a7fdaa17db0a34d5f2f9a411c896c (diff) | |
download | usdx-5fae1a428c0a53b507b63cac0f08153f7560a6a2.tar.gz usdx-5fae1a428c0a53b507b63cac0f08153f7560a6a2.tar.xz usdx-5fae1a428c0a53b507b63cac0f08153f7560a6a2.zip |
now configure/make works with ming32 to build plugin dlls
- replaced AC_CANONICAL_SYSTEM with AC_CANONICAL_SYSTEM to define $target_os
- moved mac os x specific -dynamic to the mac os x section of configure.ac
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2740 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | mediaplugin/src/plugins/media/ffmpeg/configure.ac | 65 |
1 files changed, 27 insertions, 38 deletions
diff --git a/mediaplugin/src/plugins/media/ffmpeg/configure.ac b/mediaplugin/src/plugins/media/ffmpeg/configure.ac index 1e350c63..a130225f 100644 --- a/mediaplugin/src/plugins/media/ffmpeg/configure.ac +++ b/mediaplugin/src/plugins/media/ffmpeg/configure.ac @@ -21,34 +21,33 @@ AC_CONFIG_AUX_DIR(../../../../dists/autogen) # show features and packages in one list AC_PRESERVE_HELP_ORDER +AC_CANONICAL_SYSTEM + # ----------------------------------------- # find tools # ----------------------------------------- +AM_INIT_AUTOMAKE([foreign]) + # options for make command AC_PROG_MAKE_SET -# find tool for ln -s (e.g. uses cp -p for FAT-filesystems) -#AC_LN_S -# find a program for recursive dir creation -#AC_PROG_MKDIR_P -# find the best install tool -#AC_PROG_INSTALL -# some other useful tools -#AC_PROG_AWK -#AC_PROG_SED -#AC_PROG_GREP -AC_PROG_LIBTOOL -#AC_PROG_RANLIB -#AC_PROG_EGREP +AM_PROG_LIBTOOL -AM_INIT_AUTOMAKE([foreign]) +# ----------------------------------------- +# functions +# ----------------------------------------- + +# ADD_DEFINE(DEFINE) +# adds a preprocessor definition +AC_DEFUN([ADD_DEFINE], +[ + CPPFLAGS="-D$1 $CPPFLAGS" +]) # ----------------------------------------- # check for compilers # ----------------------------------------- -AC_CANONICAL_HOST - # find and test the C compiler (for C-libs and wrappers) AC_PROG_CC AC_LANG([C]) @@ -57,30 +56,16 @@ AC_LANG([C]) AC_PROG_CXX AC_LANG([C++]) -# find pkg-config -PKG_PROG_PKG_CONFIG() -if [[ x$PKG_CONFIG = x ]]; then - AC_MSG_ERROR([ -!!! pkg-config was not found on your system. -!!! It is needed to determine the versions of your libraries. -!!! Install it and try again.]) -fi - -# ADD_DEFINE(DEFINE) -# adds a preprocessor definition -AC_DEFUN([ADD_DEFINE], -[ - CPPFLAGS="-D$1 $CPPFLAGS" -]) - -case "${host_os}" in +case "${target_os}" in darwin*) - CPPFLAGS="-arch i386" - CFLAGS="-arch i386" - CXXFLAGS="-arch i386" + CPPFLAGS="$CPPFLAGS -arch i386" + CFLAGS="$CFLAGS -arch i386" + CXXFLAGS="$CXXFLAGS -arch i386" + LDFLAGS="$LDFLAGS -dynamic" LIB_EXT=.dylib ;; - cygwin*) + cygwin*|mingw*) + LDFLAGS="$LDFLAGS -no-undefined" LIB_EXT=.dll ;; *) @@ -96,9 +81,13 @@ AC_SUBST(PLUGIN_DIR) # check for libraries # ----------------------------------------- +# find pkg-config +PKG_PROG_PKG_CONFIG() + # find FFmpeg PKG_CHECK_MODULES([ffmpeg], [libavcodec libavformat libavutil], [ CPPFLAGS="$ffmpeg_CFLAGS $CPPFLAGS" + #AC_CHECK_LIB([avcodec], [img_convert], [HAVE_IMG_CONVERT="yes"]) AC_CHECK_HEADERS(ffmpeg/avformat.h, [ # old include layout ADD_DEFINE(HAVE_FFMPEG_INCLUDE_DIR) @@ -109,7 +98,7 @@ PKG_CHECK_MODULES([libswscale], [libswscale], [ ADD_DEFINE(HAVE_SWSCALE) ], []) - + # ----------------------------------------- # create output files # ----------------------------------------- |