~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-10-13 14:29:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081013142949-f6qdvnu4mn05ltdc
Tags: 0.8.4~~bzr9980-0ubuntu1
* new upstream release 0.8.4 (LP: #240325)
* ship new lib usr/lib/gnash/libmozsdk.so.* in mozilla-plugin-gnash
  - update debian/mozilla-plugin-gnash.install
* ship new lib usr/lib/gnash/libgnashnet.so.* in gnash-common
  - update debian/gnash-common.install
* add basic debian/build_head script to build latest CVS head packages.
  - add debian/build_head
* new sound architecture requires build depend on libsdl1.2-dev
  - update debian/control
* head build script now has been completely migrated to bzr (upstream +
  ubuntu)
  - update debian/build_head
* disable kde gui until klash/qt4 has been fixed; keep kde packages as empty
  packages for now.
  - update debian/rules
  - debian/klash.install
  - debian/klash.links
  - debian/klash.manpages
  - debian/konqueror-plugin-gnash.install
* drop libkonq5-dev build dependency accordingly
  - update debian/control
* don't install headers manually anymore. gnash doesnt provide a -dev
  package after all
  - update debian/rules
* update libs installed in gnash-common; libgnashserver-*.so is not available
  anymore (removed); in turn we add the new libgnashcore-*.so
  - update debian/gnash-common.install
* use -Os for optimization and properly pass CXXFLAGS=$(CFLAGS) to configure
  - update debian/rules
* touch firefox .autoreg in postinst of mozilla plugin
  - update debian/mozilla-plugin-gnash.postinst
* link gnash in ubufox plugins directory for the plugin alternative switcher
  - add debian/mozilla-plugin-gnash.links
* suggest ubufox accordingly
  - update debian/control
* add new required build-depends on libgif-dev
  - update debian/control
* add Xb-Npp-Description and Xb-Npp-File as new plugin database meta data
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#Always use our macros
27
27
#ACLOCAL_FLAGS="-I macros $ACLOCAL_FLAGS"
28
28
 
 
29
if test "`uname`" = "Darwin"; then
 
30
LIBTOOLIZE=glibtoolize
 
31
fi
 
32
 
29
33
(test -f $srcdir/configure.ac) || {
30
34
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
31
35
    echo " top-level package directory"
112
116
# renamed to gnashconfig,h to be unique. As the files libtoolize copies insist
113
117
# on using config.h, we just edit the name, rather than adding a fixed copy to
114
118
# Gnash.
115
 
if grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null; then
116
 
        if test -z "$NO_LIBTOOLIZE" ; then 
117
 
          echo "Running libtoolize --force --ltdl --copy ..."
118
 
          if ${LIBTOOLIZE:-libtoolize} --force --ltdl --copy; then
119
 
            mv libltdl/ltdl.c libltdl/ltdl.c.orig
120
 
            sed -e 's/include <config.h>/include <gnashconfig.h>/' libltdl/ltdl.c.orig > libltdl/ltdl.c
121
 
            #rm libltdl/ltdl.c.orig
122
 
            chmod a+w libltdl/config-h.in # Darwin needs this
123
 
          else
124
 
            echo
125
 
            echo "**Error**: libtoolize failed, do you have libtool and libltdl3-dev packages installed?"
126
 
            exit 1
127
 
          fi
128
 
        fi
 
119
#
 
120
# This gets more interesting with libtool 2.x, which heavily changed how everything
 
121
# worked. Where libtool 1.5 installed only a header and had a single source file,
 
122
# libtool 2.x has an entire sub directory tree of headers and source files.
 
123
# So for libtool 1.5.x, we do everything the way this has always worked for Gnash.
 
124
# For libtool 2.x, we install in a subdirectory of libbase, because we have to
 
125
# hack the build directory, and everything configures tottally differernt than 1.5.x
 
126
# used to. For more fun, libtoolize has different command line arguments, but one thing
 
127
# that got fixed is for libtool 2.x there is an #define for the config file name, but
 
128
# for libtool 1.5 it expects config.h always, so we change this to gnashconfig.h.
 
129
ltdlver=`${LIBTOOLIZE:-libtoolize} --version | head -1 | cut -d ' ' -f 4`
 
130
ltdlmajor=`echo $ltdlver | cut -d '.' -f 1`
 
131
if test -z "$NO_LIBTOOLIZE" ; then
 
132
  ltbasedir="libltdl"
 
133
  libtoolflags="--force --copy  --ltdl"
 
134
  if test $ltdlmajor -eq 2; then
 
135
    libtoolflags="${libtoolflags} ${ltbasedir} --quiet --recursive"
 
136
  fi
 
137
  echo "Running libtoolize $ltdlver ${libtoolflags} ..."
 
138
  if ${LIBTOOLIZE:-libtoolize} ${libtoolflags}; then
 
139
    # libtool insists on including config.h, but we use gnashconfig.h
 
140
    # to avoid any problems, so we have to change this include
 
141
    # so they all reference the right config header file.
 
142
    if test -d libltdl; then
 
143
      for i in libltdl/*.c; do
 
144
#      echo "Fixing $i..."
 
145
        mv $i $i.orig
 
146
        sed -e 's/include <config.h>/include <gnashconfig.h>/' $i.orig > $i
 
147
      done
 
148
    fi
 
149
#            mv libltdl/ltdl.c libltdl/ltdl.c.orig
 
150
#            sed -e 's/include <config.h>/include <gnashconfig.h>/' libltdl/ltdl.c.orig > libltdl/ltdl.c
 
151
    # for libtool 1.x, we don't build in libltdl, it's built in libbase instead. autoconf doesn't like
 
152
    # conditional output files, so we nuke the original libltdl/Makefile.am and replace it with a zero
 
153
    # sized one to keep autoconf happy.
 
154
    if test $ltdlmajor -eq 1; then
 
155
       mv libltdl/Makefile.am Makefile.am.orig
 
156
       touch libltdl/Makefile.am
 
157
    fi
 
158
    if test -f  ${ltbasedir}/config-h.in; then
 
159
      chmod a+w  ${ltbasedir}/config-h.in # Darwin needs this
 
160
    fi
 
161
  else
 
162
    echo
 
163
    echo "**Error**: libtoolize failed, do you have libtool and libltdl3-dev packages installed?"
 
164
    exit 1
 
165
  fi
129
166
fi
130
167
 
131
168
#for coin in `find $srcdir -name CVS -prune -o -name configure.ac -print`
144
181
        aclocalinclude="$ACLOCAL_FLAGS"
145
182
     fi
146
183
 
 
184
     if test -d libltdl/m4; then
 
185
        aclocalinclude="-I libltdl/m4 -I macros $ACLOCAL_FLAGS"
 
186
     fi
 
187
 
147
188
      if grep "^AM_GLIB_GNU_GETTEXT" configure.ac >/dev/null; then
148
189
        echo "Creating $dr/aclocal.m4 ..."
149
190
        test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
166
207
#       fi
167
208
      echo "Running aclocal $aclocalinclude ..."
168
209
      ${ACLOCAL:-aclocal} $aclocalinclude
169
 
      if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
 
210
      if grep "^A[CM]_CONFIG_HEADER" configure.ac >/dev/null; then
170
211
        echo "Running autoheader..."
171
212
        ${AUTOHEADER:-autoheader}
172
213
      fi