~ubuntu-branches/ubuntu/dapper/file-roller/dapper-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-13 00:19:53 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213001953-0klipgnhk6vikhrt
Tags: 2.13.2-0ubuntu1
* New upstream version:
  - Fixed bug #323713: "Save as" should default to current archive filename
    (Ubuntu: #20132)
  - Fixed bug #315069: file-roller: drag 'n drop doesn't work for more
    than 1 file.
  - Fixed bug #323534: Passwords improperly escaped for zip files
  - Do not open a progress dialog when dragging files, use a progressbar
    in the statusbar instead.
  - Fixed bug #316364: Nautilus dependency should be optional
  - Fixed bug #311821: ascending and descending indicators are opposite
    from expected.
  - Fixed bug #317423: Conflicting mnemonic in "Extract" dialog.
  - Fixed bug #323068: file-roller fails in chosing extract-to directory
  - Fixed bug #322197: Improve Naming Filename when create new Archive file
  - Fixed bug #316564: needs unzip AND zip
    (Ubuntu: #15595)
  - Simplified the add dialog populating the file type combobox with the
    extensions instead of the descriptions.
  - Set progress dialog display delay to 1 second.
  - More HIG compliant progress dialog.
  - Use a single command execution to add many files and folders to an
    archive to speed up the operation.
  - Allow to stop creation of a new archive.
  - Correctly associate fr to 7zip files.
* debian/patches/03_lp-autoconf.patch:
  - updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
6824
6824
    cp $gdumk gnome-doc-utils.make
6825
6825
  fi
6826
6826
fi
6827
 
if ! grep -q 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am; then
 
6827
if ! grep 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am >/dev/null; then
6828
6828
  echo gnome-doc-utils.make should be added to EXTRA_DIST in Makefile.am
6829
6829
fi
6830
6830
])
6831
6831
])
6832
6832
 
6833
 
 
6834
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6835
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6836
 
dnl also defines GSTUFF_PKG_ERRORS on error
6837
 
AC_DEFUN(PKG_CHECK_MODULES, [
6838
 
  succeeded=no
6839
 
 
6840
 
  if test -z "$PKG_CONFIG"; then
6841
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6842
 
  fi
6843
 
 
6844
 
  if test "$PKG_CONFIG" = "no" ; then
6845
 
     echo "*** The pkg-config script could not be found. Make sure it is"
6846
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
6847
 
     echo "*** to the full path to pkg-config."
6848
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6849
 
  else
6850
 
     PKG_CONFIG_MIN_VERSION=0.9.0
6851
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6852
 
        AC_MSG_CHECKING(for $2)
6853
 
 
6854
 
        if $PKG_CONFIG --exists "$2" ; then
6855
 
            AC_MSG_RESULT(yes)
6856
 
            succeeded=yes
6857
 
 
6858
 
            AC_MSG_CHECKING($1_CFLAGS)
6859
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6860
 
            AC_MSG_RESULT($$1_CFLAGS)
6861
 
 
6862
 
            AC_MSG_CHECKING($1_LIBS)
6863
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
6864
 
            AC_MSG_RESULT($$1_LIBS)
6865
 
        else
6866
 
            $1_CFLAGS=""
6867
 
            $1_LIBS=""
6868
 
            ## If we have a custom action on failure, don't print errors, but 
6869
 
            ## do set a variable so people can do so.
6870
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6871
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
6872
 
        fi
6873
 
 
6874
 
        AC_SUBST($1_CFLAGS)
6875
 
        AC_SUBST($1_LIBS)
6876
 
     else
6877
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6878
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
6879
 
     fi
6880
 
  fi
6881
 
 
6882
 
  if test $succeeded = yes; then
6883
 
     ifelse([$3], , :, [$3])
6884
 
  else
6885
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
6886
 
  fi
6887
 
])
6888
 
 
6889
 
 
 
6833
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
6834
 
6835
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
6836
#
 
6837
# This program is free software; you can redistribute it and/or modify
 
6838
# it under the terms of the GNU General Public License as published by
 
6839
# the Free Software Foundation; either version 2 of the License, or
 
6840
# (at your option) any later version.
 
6841
#
 
6842
# This program is distributed in the hope that it will be useful, but
 
6843
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6844
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6845
# General Public License for more details.
 
6846
#
 
6847
# You should have received a copy of the GNU General Public License
 
6848
# along with this program; if not, write to the Free Software
 
6849
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
6850
#
 
6851
# As a special exception to the GNU General Public License, if you
 
6852
# distribute this file as part of a program that contains a
 
6853
# configuration script generated by Autoconf, you may include it under
 
6854
# the same distribution terms that you use for the rest of that program.
 
6855
 
 
6856
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
6857
# ----------------------------------
 
6858
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
6859
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
6860
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
6861
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
6862
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
6863
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
6864
fi
 
6865
if test -n "$PKG_CONFIG"; then
 
6866
        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
 
6867
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
6868
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
6869
                AC_MSG_RESULT([yes])
 
6870
        else
 
6871
                AC_MSG_RESULT([no])
 
6872
                PKG_CONFIG=""
 
6873
        fi
 
6874
                
 
6875
fi[]dnl
 
6876
])# PKG_PROG_PKG_CONFIG
 
6877
 
 
6878
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
6879
#
 
6880
# Check to see whether a particular set of modules exists.  Similar
 
6881
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
6882
#
 
6883
#
 
6884
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
6885
# this or PKG_CHECK_MODULES is called, or make sure to call
 
6886
# PKG_CHECK_EXISTS manually
 
6887
# --------------------------------------------------------------
 
6888
AC_DEFUN([PKG_CHECK_EXISTS],
 
6889
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6890
if test -n "$PKG_CONFIG" && \
 
6891
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
6892
  m4_ifval([$2], [$2], [:])
 
6893
m4_ifvaln([$3], [else
 
6894
  $3])dnl
 
6895
fi])
 
6896
 
 
6897
 
 
6898
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
6899
# ---------------------------------------------
 
6900
m4_define([_PKG_CONFIG],
 
6901
[if test -n "$PKG_CONFIG"; then
 
6902
        PKG_CHECK_EXISTS([$3],
 
6903
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
6904
                         [pkg_failed=yes])
 
6905
else
 
6906
        pkg_failed=untried
 
6907
fi[]dnl
 
6908
])# _PKG_CONFIG
 
6909
 
 
6910
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
6911
# [ACTION-IF-NOT-FOUND])
 
6912
#
 
6913
#
 
6914
# Note that if there is a possibility the first call to
 
6915
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
6916
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
6917
#
 
6918
#
 
6919
# --------------------------------------------------------------
 
6920
AC_DEFUN([PKG_CHECK_MODULES],
 
6921
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6922
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
6923
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
6924
 
 
6925
pkg_failed=no
 
6926
AC_MSG_CHECKING([for $1])
 
6927
 
 
6928
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
6929
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
6930
 
 
6931
if test $pkg_failed = yes; then
 
6932
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
6933
        # Put the nasty error message in config.log where it belongs
 
6934
        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
 
6935
 
 
6936
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
6937
[Package requirements ($2) were not met.
 
6938
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
6939
installed software in a non-standard prefix.
 
6940
 
 
6941
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
6942
to avoid the need to call pkg-config.  See the pkg-config man page for
 
6943
more details.])],
 
6944
                [$4])
 
6945
elif test $pkg_failed = untried; then
 
6946
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
6947
[The pkg-config script could not be found or is too old.  Make sure it
 
6948
is in your PATH or set the PKG_CONFIG environment variable to the full
 
6949
path to pkg-config.
 
6950
 
 
6951
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
6952
to avoid the need to call pkg-config.  See the pkg-config man page for
 
6953
more details.
 
6954
 
 
6955
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6956
                [$4])
 
6957
else
 
6958
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
6959
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
6960
        AC_MSG_RESULT([yes])
 
6961
        ifelse([$3], , :, [$3])
 
6962
fi[]dnl
 
6963
])# PKG_CHECK_MODULES
6890
6964
 
6891
6965
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
6892
6966
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7011
7085
        [AC_TRY_LINK([
7012
7086
#include <libintl.h>
7013
7087
],
7014
 
         [return (int) ngettext ("","", 1)],
 
7088
         [return !ngettext ("","", 1)],
7015
7089
          gt_cv_func_ngettext_libc=yes,
7016
7090
          gt_cv_func_ngettext_libc=no)
7017
7091
        ])
7021
7095
                [AC_TRY_LINK([
7022
7096
#include <libintl.h>
7023
7097
],
7024
 
                  [return (int) dgettext ("","")],
 
7098
                  [return !dgettext ("","")],
7025
7099
                  gt_cv_func_dgettext_libc=yes,
7026
7100
                  gt_cv_func_dgettext_libc=no)
7027
7101
                ])
7381
7455
 
7382
7456
ifdef([AC_DIVERSION_ICMDS],[
7383
7457
  AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
7384
 
      changequote(,)
7385
 
      mv -f po/POTFILES po/POTFILES.tmp
7386
 
      sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
7458
     [mv -f po/POTFILES po/POTFILES.tmp
 
7459
      sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
7387
7460
      rm -f po/POTFILES.tmp
7388
 
      changequote([,])
 
7461
     ]dnl
7389
7462
  AC_DIVERT_POP()
7390
7463
],[
7391
7464
  ifdef([AC_CONFIG_COMMANDS_PRE],[
7392
7465
    AC_CONFIG_COMMANDS_PRE([
7393
 
        changequote(,)
7394
 
        mv -f po/POTFILES po/POTFILES.tmp
7395
 
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
7466
       [mv -f po/POTFILES po/POTFILES.tmp
 
7467
        sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
7396
7468
        rm -f po/POTFILES.tmp
7397
 
        changequote([,])
 
7469
       ]dnl
7398
7470
    ])
7399
7471
  ])
7400
 
 
7401
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7402
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
7403
 
  # argument.  Indeed, we sometimes output rules like
7404
 
  #   $(mkdir_p) $(somedir)
7405
 
  # where $(somedir) is conditionally defined.
7406
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7407
 
  # expensive solution, as it forces Make to start a sub-shell.)
7408
 
  mkdir_p='mkdir -p -- .'
7409
 
else
7410
 
  # On NextStep and OpenStep, the `mkdir' command does not
7411
 
  # recognize any option.  It will interpret all options as
7412
 
  # directories to create, and then abort because `.' already
7413
 
  # exists.
7414
 
  for d in ./-p ./--version;
7415
 
  do
7416
 
    test -d $d && rmdir $d
7417
 
  done
7418
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7419
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7420
 
    mkdir_p='$(mkinstalldirs)'
7421
 
  else
7422
 
    mkdir_p='$(install_sh) -d'
7423
 
  fi
7424
 
fi
7425
 
AC_SUBST([mkdir_p])
7426
7472
])
7427
7473
 
7428
7474
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7513
7559
     [case "${enableval}" in
7514
7560
       yes) schemas_install=true ;;
7515
7561
       no)  schemas_install=false ;;
7516
 
       *) AC_MSG_ERROR(bad value ${enableval} for --disable-schemas-install) ;;
 
7562
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7517
7563
     esac],[schemas_install=true])
7518
7564
     AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test x$schemas_install = xtrue)
7519
7565
])