~ubuntu-branches/ubuntu/intrepid/rhythmbox/intrepid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-09-03 10:54:50 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080903105450-mslsln15n2ap6g7o
Tags: 0.11.6svn20080903-0ubuntu1
* New upstream snapshot:
  - doesn't crash when eject an audio player (lp: #263268)
* debian/patches/80_new_libmtp_build.patch:
  - the change is in the new version
* debian/rules:
  - don't specify a gecko variant that's not required in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
35
  fi
36
36
 
37
 
  AC_ARG_WITH(gconf-source, 
38
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
37
  AC_ARG_WITH([gconf-source],
 
38
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
39
                             [Config database for installing schema files.]),
 
40
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
39
41
 
40
42
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
41
43
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
44
46
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
45
47
  fi
46
48
 
47
 
  AC_ARG_WITH(gconf-schema-file-dir, 
48
 
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
49
  AC_ARG_WITH([gconf-schema-file-dir],
 
50
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
51
                             [Directory for installing schema files.]),
 
52
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
49
53
 
50
54
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
51
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
492
496
fi])
493
497
 
494
498
 
495
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
496
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
497
 
AC_DEFUN([GNOME_DOC_DEFINES],
498
 
[
499
 
AC_ARG_WITH([help-dir],
500
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
501
 
  [with_help_dir='${datadir}/gnome/help'])
502
 
HELP_DIR="$with_help_dir"
503
 
AC_SUBST(HELP_DIR)
504
 
 
505
 
AC_ARG_WITH([omf-dir],
506
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
507
 
  [with_omf_dir='${datadir}/omf'])
508
 
OMF_DIR="$with_omf_dir"
509
 
AC_SUBST(OMF_DIR)
510
 
 
511
 
AC_ARG_WITH([help-formats],
512
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
513
 
  [with_help_formats=''])
514
 
DOC_USER_FORMATS="$with_help_formats"
515
 
AC_SUBST(DOC_USER_FORMATS)
516
 
 
517
 
AC_ARG_ENABLE([scrollkeeper],
518
 
        [AC_HELP_STRING([--disable-scrollkeeper],
519
 
                        [do not make updates to the scrollkeeper database])],,
520
 
        enable_scrollkeeper=yes)
521
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
522
 
 
523
 
dnl disable scrollkeeper automatically for distcheck
524
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
525
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
526
 
 
527
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
528
 
])
529
 
 
530
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
531
 
#
532
 
AC_DEFUN([GNOME_DOC_INIT],
533
 
[
534
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
535
 
 
536
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
537
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
538
 
 
539
 
if test "$gdu_cv_have_gdu" = "yes"; then
540
 
        ifelse([$2],,[:],[$2])
541
 
else
542
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
543
 
fi
544
 
 
545
 
GNOME_DOC_DEFINES
546
 
])
547
 
 
548
 
dnl -*- mode: autoconf -*-
549
 
 
550
 
# serial 1
551
 
 
552
 
dnl Usage:
553
 
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
554
 
AC_DEFUN([GTK_DOC_CHECK],
555
 
[
556
 
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
557
 
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
558
 
  dnl for overriding the documentation installation directory
559
 
  AC_ARG_WITH([html-dir],
560
 
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
561
 
    [with_html_dir='${datadir}/gtk-doc/html'])
562
 
  HTML_DIR="$with_html_dir"
563
 
  AC_SUBST([HTML_DIR])
564
 
 
565
 
  dnl enable/disable documentation building
566
 
  AC_ARG_ENABLE([gtk-doc],
567
 
    AS_HELP_STRING([--enable-gtk-doc],
568
 
                   [use gtk-doc to build documentation [[default=no]]]),,
569
 
    [enable_gtk_doc=no])
570
 
 
571
 
  if test x$enable_gtk_doc = xyes; then
572
 
    ifelse([$1],[],
573
 
      [PKG_CHECK_EXISTS([gtk-doc],,
574
 
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
575
 
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
576
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
577
 
  fi
578
 
 
579
 
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
580
 
  AC_MSG_RESULT($enable_gtk_doc)
581
 
 
582
 
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
583
 
 
584
 
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
585
 
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
586
 
])
587
 
 
588
 
 
589
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
590
 
# serial 40 IT_PROG_INTLTOOL
591
 
AC_DEFUN([IT_PROG_INTLTOOL],
592
 
[AC_PREREQ([2.50])dnl
593
 
 
594
 
case "$am__api_version" in
595
 
    1.[01234])
596
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
597
 
    ;;
598
 
    *)
599
 
    ;;
600
 
esac
601
 
 
602
 
if test -n "$1"; then
603
 
    AC_MSG_CHECKING([for intltool >= $1])
604
 
 
605
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
606
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
607
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
608
 
    ]
609
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
610
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
611
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
612
 
fi
613
 
 
614
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
615
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
616
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
617
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
618
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
619
 
fi
620
 
 
621
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
622
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
623
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
624
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
625
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
626
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
627
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
628
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
629
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
630
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
631
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
632
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
633
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
634
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
635
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
636
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
637
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
638
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
639
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
640
 
 
641
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
642
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
643
 
AC_SUBST(INTLTOOL_KEYS_RULE)
644
 
AC_SUBST(INTLTOOL_PROP_RULE)
645
 
AC_SUBST(INTLTOOL_OAF_RULE)
646
 
AC_SUBST(INTLTOOL_PONG_RULE)
647
 
AC_SUBST(INTLTOOL_SERVER_RULE)
648
 
AC_SUBST(INTLTOOL_SHEET_RULE)
649
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
650
 
AC_SUBST(INTLTOOL_UI_RULE)
651
 
AC_SUBST(INTLTOOL_XAM_RULE)
652
 
AC_SUBST(INTLTOOL_KBD_RULE)
653
 
AC_SUBST(INTLTOOL_XML_RULE)
654
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
655
 
AC_SUBST(INTLTOOL_CAVES_RULE)
656
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
657
 
AC_SUBST(INTLTOOL_THEME_RULE)
658
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
659
 
AC_SUBST(INTLTOOL_POLICY_RULE)
660
 
 
661
 
# Check the gettext tools to make sure they are GNU
662
 
AC_PATH_PROG(XGETTEXT, xgettext)
663
 
AC_PATH_PROG(MSGMERGE, msgmerge)
664
 
AC_PATH_PROG(MSGFMT, msgfmt)
665
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
666
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
667
 
fi
668
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
669
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
670
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
671
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
672
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
673
 
fi
674
 
 
675
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
676
 
if test -z "$INTLTOOL_PERL"; then
677
 
   AC_MSG_ERROR([perl not found; required for intltool])
678
 
fi
679
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
680
 
   AC_MSG_ERROR([perl 5.x required for intltool])
681
 
fi
682
 
if test "x$2" != "xno-xml"; then
683
 
   AC_MSG_CHECKING([for XML::Parser])
684
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
685
 
       AC_MSG_RESULT([ok])
686
 
   else
687
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
688
 
   fi
689
 
fi
690
 
 
691
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
692
 
AC_SUBST(ALL_LINGUAS)
693
 
 
694
 
# Set DATADIRNAME correctly if it is not set yet
695
 
# (copied from glib-gettext.m4)
696
 
if test -z "$DATADIRNAME"; then
697
 
  AC_LINK_IFELSE(
698
 
    [AC_LANG_PROGRAM([[]],
699
 
                     [[extern int _nl_msg_cat_cntr;
700
 
                       return _nl_msg_cat_cntr]])],
701
 
    [DATADIRNAME=share],
702
 
    [case $host in
703
 
    *-*-solaris*)
704
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
705
 
    dnl GNU format message catalog is always supported,
706
 
    dnl since both are added to the libc all together.
707
 
    dnl Hence, we'd like to go with DATADIRNAME=share
708
 
    dnl in this case.
709
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
710
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
711
 
    ;;
712
 
    *)
713
 
    [DATADIRNAME=lib]
714
 
    ;;
715
 
    esac])
716
 
fi
717
 
AC_SUBST(DATADIRNAME)
718
 
 
719
 
IT_PO_SUBDIR([po])
720
 
 
721
 
])
722
 
 
723
 
 
724
 
# IT_PO_SUBDIR(DIRNAME)
725
 
# ---------------------
726
 
# All po subdirs have to be declared with this macro; the subdir "po" is
727
 
# declared by IT_PROG_INTLTOOL.
728
 
#
729
 
AC_DEFUN([IT_PO_SUBDIR],
730
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
731
 
dnl
732
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
733
 
dnl of config.status.
734
 
AC_CONFIG_COMMANDS_PRE([
735
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
736
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
737
 
    >"$1/stamp-it.tmp"
738
 
    [sed '/^#/d
739
 
         s/^[[].*] *//
740
 
         /^[    ]*$/d
741
 
        '"s|^|  $ac_top_srcdir/|" \
742
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
743
 
    ]
744
 
    if test ! -f "$1/Makefile"; then
745
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
746
 
    fi
747
 
    mv "$1/Makefile" "$1/Makefile.tmp"
748
 
    [sed '/^POTFILES =/,/[^\\]$/ {
749
 
                /^POTFILES =/!d
750
 
                r $1/POTFILES
751
 
          }
752
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
753
 
    rm -f "$1/Makefile.tmp"
754
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
755
 
  ])
756
 
])dnl
757
 
])
758
 
 
759
 
 
760
 
# deprecated macros
761
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
762
 
# A hint is needed for aclocal from Automake <= 1.9.4:
763
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
764
 
 
765
 
 
766
499
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
767
500
 
768
501
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
8642
8375
AC_SUBST([am__untar])
8643
8376
]) # _AM_PROG_TAR
8644
8377
 
 
8378
m4_include([macros/gnome-doc-utils.m4])
 
8379
m4_include([macros/gtk-doc.m4])
 
8380
m4_include([macros/intltool.m4])