Changeset e3401d578754e7fd0dd49ba18b95b527420f1630

Show
Ignore:
Timestamp:
08/26/02 22:49:50 (6 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1030394990 +0000
git-parent:

[86f23938c10f4823f3389912f898dedd62c73ab7]

git-author:
Sam Hocevar <sam@videolan.org> 1030394990 +0000
Message:
  • ./configure.in: we now require autoconf 2.5x because previous versions
    don't seem to work very well if you are using autopoint, although
    gettext 0.11.5 claims to be fully backwards compatible. Welcome to
    automake hell.
  • ./bootstrap: workaround which uses gettextize if you do not have
    autopoint. We'll probably stay like this for a while, until gettext
    0.11.x (which replaces gettextize with autopoint) becomes more
    widespread. Currently this workaround seems to work, but don't expect
    a clean tarball if you make dist without having used autopoint. Welcome
    to automake hell.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • HACKING

    r0df4659 re3401d5  
    1 $Id: HACKING,v 1.2 2002/08/26 09:38:19 sam Exp $ 
     1$Id: HACKING,v 1.3 2002/08/26 20:49:49 sam Exp $ 
    22 
    33Hacking vlc 
     
    66You will need the following tools if you plan to use the CVS version of vlc: 
    77 
    8  - autoconf version 2.13 or later 
    9  - automake version 1.4 or later 
     8 - autoconf version 2.50 or later 
     9 - automake version 1.6 or later 
    1010 - gettext version 0.10.4 or later 
    1111 
  • Makefile.am

    r0df4659 re3401d5  
    44ACLOCAL_AMFLAGS = -I m4 
    55 
    6 EXTRA_DIST = config.rpath mkinstalldirs 
     6EXTRA_DIST = BUGS FAQ HACKING MAINTAINERS STATUS \ 
     7             INSTALL.win32 README.MacOSX.rtf \ 
     8             config.rpath mkinstalldirs 
  • bootstrap

    r0df4659 re3401d5  
    22 
    33##  bootstrap.sh file for vlc, the VideoLAN Client 
    4 ##  $Id: bootstrap,v 1.3 2002/08/26 09:38:20 sam Exp $ 
     4##  $Id: bootstrap,v 1.4 2002/08/26 20:49:49 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    3030###  classic stuff 
    3131### 
    32 rm -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh configure.in~ Makefile.am~ ChangeLog~ po/ChangeLog~ 
     32set -x 
     33rm -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh 
    3334 
    34 aclocal 
    35 autoheader 
     35if expr `gettextize --version | head -1 | sed 's/[^0-9]*//'` \ 
     36        '>' 0.11.3 >/dev/null 2>&1 
     37then 
     38  autopoint --force 
     39else 
     40  # What?! User is not using a recent version of gettext? We'll have to 
     41  # cheat a bit, then. 
     42  rm -f po/ChangeLog~ 
     43  aclocaldir=`gettextize --copy --force | grep '^from the' | cut -f3 -d' '` 
     44  # Yuck! 
     45  test -f po/ChangeLog~ && mv po/ChangeLog~ po/ChangeLog 
     46  mkdir -p m4 
     47  # Yuck! 
     48  for file in codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 \ 
     49              lcmessage.m4 progtest.m4 
     50    do cp ${aclocaldir}/${file} m4/ 
     51  done 
     52  # Yuck! 
     53  echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/gettext.m4 
     54fi 
    3655 
    37 # run gettextize and then fix its cruft 
    38 gettextize --force --intl --copy --no-changelog || gettextize --force --copy 
    39 test -f configure.in~ && mv configure.in~ configure.in 
    40 test -f Makefile.am~ && mv Makefile.am~ Makefile.am 
    41 test -f ChangeLog~ && mv ChangeLog~ ChangeLog 
    42 test -f po/ChangeLog~ && mv po/ChangeLog~ po/ChangeLog 
    43  
     56aclocal -I m4 
    4457automake --foreign --add-missing --copy 
    4558autoconf 
    46 aclocal -I m4 
     59autoheader 
    4760 
    4861# nuahahahahaha !! overwriting Makefile.in with what *I* want! 
     
    5366## 
    5467file=src/misc/modules_plugin.h 
    55 echo -n " + creating headers: " 
    5668rm -f $file 
    5769sed 's#.*\$[I][d]:.*# * Automatically generated from '$file'.in by bootstrap.sh#' < $file.in > $file 
     
    6072       sed 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/    (p_symbols)->\2_inner = \2; \\/' >> $file 
    6173echo '' >> $file 
    62 echo -n "$file " 
    6374 
    6475file=include/vlc_symbols.h 
     
    7788echo '#endif /* __PLUGIN__ */' >> $file 
    7889echo '' >> $file 
    79 echo "$file." 
    8090 
    8191 
     
    8393##  Glade sometimes sucks 
    8494## 
    85 echo -n " + fixing glade bugs: " 
    8695for file in gnome_interface.c gtk_interface.c 
    8796do 
     
    103112    mv -f /tmp/$$.$file.bak modules/gui/gtk/$file 
    104113fi 
    105 echo -n "$file " 
    106114done 
    107115 
     
    113121    mv -f /tmp/$$.$file.bak modules/gui/gtk/$file 
    114122fi 
    115 echo "$file." 
    116123 
    117124 
     
    123130  echo "not updating potfiles. use --update-po to force doing it." 
    124131else 
    125   echo -n " + updating potfiles: " 
    126132  cd po 
    127133  make update-po 2>&1 | grep '^[^:]*:$' | cut -f1 -d: | tr '\n' ' ' | sed 's/ $//' 
    128134  cd .. 
    129   echo "." 
    130135fi 
    131136 
  • configure.in

    reb395af re3401d5  
    11dnl Autoconf settings for vlc 
    22AC_INIT(configure.in) 
    3 AM_CONFIG_HEADER(config.h) 
     3 
     4AC_PREREQ(2.50) 
    45AC_CANONICAL_SYSTEM 
    56 
     
    1011CODENAME="Natalya" 
    1112 
     13AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) 
     14AM_CONFIG_HEADER(config.h) 
     15 
    1216dnl 
    1317dnl  Save *FLAGS 
     
    2024dnl Check for tools 
    2125dnl 
    22 AC_PROG_MAKE_SET 
    2326AC_PROG_CC 
    2427AC_PROG_CPP 
     28AC_PROG_MAKE_SET 
     29AC_PROG_INSTALL 
    2530 
    2631dnl Find the right ranlib, even when cross-compiling 
     
    5257AC_DEFINE_UNQUOTED(VLC_PACKAGE, "${PACKAGE}", [Package name]) 
    5358AC_DEFINE_UNQUOTED(VLC_VERSION, "${VERSION}", [Package version]) 
     59AM_GNU_GETTEXT_VERSION(0.10.40) 
    5460AM_GNU_GETTEXT 
    5561 
     
    21682174AC_SUBST(id3tag_LDFLAGS) 
    21692175         
    2170 AC_OUTPUT([Makefile Makefile.config Makefile.opts po/Makefile.in vlc-config m4/Makefile intl/Makefile]) 
    2171 chmod a+x vlc-config 
     2176AC_OUTPUT([ 
     2177  Makefile 
     2178  Makefile.config 
     2179  Makefile.opts 
     2180  m4/Makefile 
     2181  intl/Makefile 
     2182  po/Makefile.in 
     2183  vlc-config 
     2184],[ 
     2185  chmod a+x vlc-config 
     2186]) 
    21722187 
    21732188echo "