X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=1ee7ae9f89239adb2cb681d79cd3f06e4ccc8cf9;hb=3da30fcd18756e6bbbde241c0d782730e60bdcee;hp=eb036c9e625ac10092cdb631ee0ff4a66f18bfed;hpb=f749fe6d2df29caad1628753cc42828d81926c07;p=vlc diff --git a/configure.ac b/configure.ac index eb036c9e62..1ee7ae9f89 100644 --- a/configure.ac +++ b/configure.ac @@ -3020,19 +3020,20 @@ then AC_MSG_RESULT(${real_twolame_tree}/src/libtwolame/.libs/libtwolame.a) VLC_ADD_BUILTINS([twolame]) VLC_ADD_LDFLAGS([twolame],[${real_twolame_tree}/src/libtwolame/.libs/libtwolame.a]) - VLC_ADD_CPPFLAGS([twolame],[-I${real_twolame_tree}/src/libtwolame]) + VLC_ADD_CPPFLAGS([twolame],[-I${real_twolame_tree}/src/libtwolame -DLIBTWOLAME_STATIC]) else dnl The given libtwolame wasn't built AC_MSG_RESULT(no) AC_MSG_ERROR([cannot find ${real_twolame_tree}/src/libtwolame/.libs/libtwolame.a, make sure you compiled libtwolame in ${with_twolame_tree}]) fi else - CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_twolame}" + CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_twolame} -DLIBTWOLAME_STATIC" LDFLAGS="${LDFLAGS_save} ${LDFLAGS_twolame}" AC_CHECK_HEADERS(twolame.h, , [ AC_MSG_ERROR([Cannot find development header for libtwolame...]) ]) AC_CHECK_LIB(twolame, twolame_init, [ VLC_ADD_PLUGINS([twolame]) + VLC_ADD_CPPFLAGS([twolame],[-DLIBTWOLAME_STATIC]) VLC_ADD_LDFLAGS([twolame],[-ltwolame]) ], [ AC_MSG_ERROR([Cannot find libtwolame library...]) ]) LDFLAGS="${LDFLAGS_save}" @@ -5311,16 +5312,20 @@ then if test "${with_mozilla_sdk_path}" = "" -o "${with_mozilla_sdk_path}" = "no" then dnl New firefox-1.5 SDK api - PKG_CHECK_MODULES([firefox], [firefox-plugin], + PKG_CHECK_MODULES([FIREFOX], [firefox-plugin], [ - firefox_libs=`pkg-config --libs firefox-plugin` - firefox_cflags=`pkg-config --cflags firefox-plugin` - PKG_CHECK_MODULES([nspr], [nspr], [ ], + PKG_CHECK_MODULES([MOZILLA_NSPR], [mozilla-nspr], + [], [ - AC_MSG_ERROR([Please install the nspr development tools.]) + PKG_CHECK_MODULES([NSPR], [nspr], + [], + [ + AC_MSG_ERROR([Please install the nspr development tools.]) + ] + ) ] ) - CPPFLAGS="${CPPFLAGS_save} ${firefox_cflags} ${MOZILLA_CPPFLAGS}" + CPPFLAGS="${CPPFLAGS_save} ${FIREFOX_CFLAGS} ${MOZILLA_NSPR_CFLAGS} ${NSPR_CFLAGS} ${MOZILLA_CPPFLAGS}" MOZILLA_REQUIRED_HEADERS=1 AC_CHECK_HEADERS(mozilla-config.h,,MOZILLA_REQUIRED_HEADERS=0) AC_CHECK_HEADERS(npapi.h,,MOZILLA_REQUIRED_HEADERS=0) @@ -5329,7 +5334,6 @@ then # include #endif ]) - CPPFLAGS="${CPPFLAGS_save}" if test "${MOZILLA_CONFIG_HEADERS}" = "0"; then AC_MSG_ERROR([Please install the Firefox development tools; mozilla-config.h, plugin/npapi.h and plugin/npruntime.h were not found.]) fi @@ -5338,12 +5342,13 @@ then firefox_include=`pkg-config --variable=includedir firefox-plugin` MOZILLA_CONFIG_H="${firefox_include}/mozilla-config.h" if grep '^#define MOZ_X11 1' ${MOZILLA_CONFIG_H} 2>&1 > /dev/null ; then - VLC_ADD_LDFLAGS([mozilla], [-lX11 -lXt ${X_LIBS} ${X_PRE_LIBS}]) + VLC_ADD_LDFLAGS([mozilla], [${X_LIBS} ${X_PRE_LIBS} -lX11 -lXt]) fi - VLC_ADD_CPPFLAGS([mozilla],[${firefox_cflags} ${MOZILLA_CPPFLAGS}]) - VLC_ADD_LDFLAGS([mozilla],[${firefox_libs} ${MOZILLA_LDFLAGS}]) + VLC_ADD_CPPFLAGS([mozilla],[${CPPFLAGS}]) + VLC_ADD_LDFLAGS([mozilla],[${FIREFOX_LIBS} ${MOZILLA_NSPR_LIS} ${NSPR_LIBS} ${MOZILLA_LDFLAGS}]) VLC_ADD_PLUGINS([mozilla]) MOZILLA_CONFIG= + CPPFLAGS="${CPPFLAGS_save}" ], [ AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no) @@ -5610,7 +5615,7 @@ dnl dnl Stuff used by the program dnl AC_DEFINE_UNQUOTED(VERSION_MESSAGE, "${VERSION} ${CODENAME}", [Simple version string]) -AC_DEFINE_UNQUOTED(COPYRIGHT_MESSAGE, "VLC media player - version ${VERSION} ${CODENAME} - (c) 1996-2006 the VideoLAN team", [Copyright string]) +AC_DEFINE_UNQUOTED(COPYRIGHT_MESSAGE, "VLC media player - version ${VERSION} ${CODENAME} - (c) 1996-2007 the VideoLAN team", [Copyright string]) AC_DEFINE_UNQUOTED(CONFIGURE_LINE, "${CONFIGURE_LINE}", [The ./configure command line]) AC_DEFINE_UNQUOTED(PACKAGE_VERSION_MAJOR,"${VERSION_MAJOR}", [version major number]) AC_DEFINE_UNQUOTED(PACKAGE_VERSION_MINOR,"${VERSION_MINOR}", [version minor number])