Changeset 2b0b78882c9015f35a69b70dfdb9f04597002182

Show
Ignore:
Timestamp:
10/04/02 15:13:54 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1033737234 +0000
git-parent:

[80b15699ead10f9b1aa4687cd22c1bdcc866eb6d]

git-author:
Sam Hocevar <sam@videolan.org> 1033737234 +0000
Message:
  • ./bootstrap: we use the proper linker for plugin compilation.
  • ./modules/misc/testsuite/*: moved the null module into three test modules
    that are only built when --enable-testsuite is activated. This directory
    can be a good place for compilation tests or performance benchmarks.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bootstrap

    r537cf3a r2b0b788  
    22 
    33##  bootstrap file for vlc, the VideoLAN Client 
    4 ##  $Id: bootstrap,v 1.17 2002/10/03 08:44:11 sam Exp $ 
     4##  $Id: bootstrap,v 1.18 2002/10/04 13:13:54 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    7474  sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | while read mod 
    7575  do 
     76    LINKER="LINK" 
    7677    if echo "$ALL_FLAGS" | grep '^CPPFLAGS_'${mod}'=$' >/dev/null 2>&1; then 
    7778        echo "AC_SUBST(CPPFLAGS_${mod})" >> configure.ac; fi 
     
    7980        echo "AC_SUBST(CFLAGS_${mod})" >> configure.ac; fi 
    8081    if echo "$ALL_FLAGS" | grep '^CXXFLAGS_'${mod}'=$' >/dev/null 2>&1; then 
     82        LINKER="CXXLINK" 
    8183        echo "AC_SUBST(CXXFLAGS_${mod})" >> configure.ac; fi 
    8284    if echo "$ALL_FLAGS" | grep '^OBJCFLAGS_'${mod}'=$' >/dev/null 2>&1; then 
     85        LINKER="OBJCLINK" 
    8386        echo "AC_SUBST(OBJCFLAGS_${mod})" >> configure.ac; fi 
    8487    if echo "$ALL_FLAGS" | grep '^LDFLAGS_'${mod}'=$' >/dev/null 2>&1; then 
     
    151154${PRIVATE}noinst_LIBRARIES += \$(L_${mod}_p) 
    152155${PRIVATE}${dir}/lib${mod}_plugin\$(LIBEXT): \$(${sym}_lib${mod}_plugin_a_OBJECTS) 
    153 ${PRIVATE}  \$(CC) \$^ -o \$@ -shared \$(LDFLAGS) \$(LDFLAGS_plugins) \$(LDFLAGS_${mod}) 
     156${PRIVATE}  \$(${LINKER}) \$^ -o \$@ -shared \$(LDFLAGS_plugins) \$(LDFLAGS_${mod}) 
    154157 
    155158 
  • configure.ac.in

    r80b1569 r2b0b788  
    508508dnl  default modules 
    509509dnl 
    510 PLUGINS="${PLUGINS} dummy null" 
    511 PLUGINS="${PLUGINS} rc logger access_file memcpy" 
     510PLUGINS="${PLUGINS} dummy rc logger access_file memcpy" 
    512511PLUGINS="${PLUGINS} es audio mpeg_system ps ts" 
    513512PLUGINS="${PLUGINS} idct idctclassic motion mpeg_video spudec mpeg_audio" 
     
    20932092 
    20942093dnl 
     2094dnl  test plugins 
     2095dnl 
     2096AC_ARG_ENABLE(testsuite, 
     2097  [  --enable-testsuite      build test modules (default disabled)]) 
     2098if test "x${enable_testsuite}" = "xyes" 
     2099then 
     2100  TESTS="test1 test2 test3" 
     2101  dnl  we define those so that bootstrap sets the right linker 
     2102  CXXFLAGS_test2="${CXXFLAGS_test2}" 
     2103  OBJCFLAGS_test3="${OBJCFLAGS_test3}" 
     2104  dnl  this one is needed until automake knows what to do 
     2105  LDFLAGS_test3="${LDFLAGS_test3} -lobjc" 
     2106  PLUGINS="${PLUGINS} ${TESTS}" 
     2107  BUILTINS="${BUILTINS} ${TESTS}" 
     2108fi 
     2109 
     2110dnl 
    20952111dnl  gtk_main plugin 
    20962112dnl 
     
    20982114then 
    20992115    PLUGINS="${PLUGINS} gtk_main" 
    2100     CFLAGS_gtk = "${CFLAGS_gtk} -DNEED_GTK_MAIN" 
     2116    CFLAGS_gtk="${CFLAGS_gtk} -DNEED_GTK_MAIN" 
    21012117    CFLAGS_gtk_main="${CFLAGS_gtk_main} ${CFLAGS_gtk} ${CFLAGS_familiar}" 
    21022118    LDFLAGS_gtk_main="${LDFLAGS_gtk_main} ${LDFLAGS_gtk} ${LDFLAGS_familiar}" 
     
    21242140   fi]) 
    21252141 
    2126 dnl Automagically disable plugins if there is no system support for .so files 
    2127 dnl don't forget vlc-win32 still can load .so as plugins 
     2142dnl Automagically disable plugins if there is no system support for 
     2143dnl dynamically loadable files (.so, .dll, .dylib). 
     2144dnl don't forget vlc-win32 still can load .dll as plugins 
    21282145if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32" 
    21292146then 
  • modules/Makefile.am

    r8641281 r2b0b788  
    5050    misc/memcpy/Modules.am \ 
    5151    misc/network/Modules.am \ 
     52    misc/testsuite/Modules.am \ 
    5253    video_chroma/Modules.am \ 
    5354    video_filter/Modules.am \ 
  • modules/misc/Modules.am

    r8641281 r2b0b788  
    1 SOURCES_null = modules/misc/null.c 
    21SOURCES_gtk_main = modules/misc/gtk_main.c 
    32SOURCES_gnome_main = modules/misc/gtk_main.c 
  • modules/misc/gtk_main.c

    r145b196 r2b0b788  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: gtk_main.c,v 1.7 2002/10/03 13:21:55 sam Exp $ 
     5 * $Id: gtk_main.c,v 1.8 2002/10/04 13:13:54 sam Exp $ 
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    140140} 
    141141 
    142 static gint foo(gpointer foo) 
    143 
    144     return TRUE; 
    145 
     142static gint foo( gpointer bar ) { return TRUE; } 
    146143 
    147144/***************************************************************************** 
     
    175172    vlc_thread_ready( p_this ); 
    176173 
    177     /* If we don't add this simple timeout, gtk_main remains stuck ... */ 
     174    /* If we don't add this simple timeout, gtk_main remains stuck if 
     175     * we try to close the window without having sent any gtk event. */ 
    178176    gtk_timeout_add( INTF_IDLE_SLEEP / 1000, foo, p_this ); 
    179177 
  • modules/misc/network/ipv6.c

    r7689bc9 r2b0b788  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: ipv6.c,v 1.2 2002/08/08 00:35:11 sam Exp $ 
     5 * $Id: ipv6.c,v 1.3 2002/10/04 13:13:54 sam Exp $ 
    66 * 
    77 * Authors: Alexis Guillard <alexis.guillard@bt.com> 
     
    147147#endif 
    148148#if 0 
    149             msg_Warn( p_this, " = #%i\n", p_socket->sin6_scope_id ); 
     149            msg_Warn( p_this, " = #%i", p_socket->sin6_scope_id ); 
    150150#endif 
    151151        }