~ubuntu-branches/ubuntu/karmic/gst-plugins-bad0.10/karmic-proposed

« back to all changes in this revision

Viewing changes to common/m4/as-libtool-tags.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-04-29 09:44:58 UTC
  • mto: (17.1.2 gutsy) (18.2.1 squeeze) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060429094458-rv7x6chzq7e43c8y
Tags: upstream-0.10.1+cvs20060428
Import upstream version 0.10.1+cvs20060428

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
dnl backported from libtool 1.6 by Paolo Bonzini
7
7
dnl see http://lists.gnu.org/archive/html/libtool/2003-12/msg00007.html
8
8
 
9
 
dnl $Id: as-libtool-tags.m4,v 1.2 2005/07/18 14:54:33 wingo Exp $
 
9
dnl $Id: as-libtool-tags.m4,v 1.3 2006-04-01 15:30:56 thomasvs Exp $
10
10
 
11
11
dnl AS_LIBTOOL_TAGS([tags...])
12
12
 
24
24
AC_DEFUN([AS_LIBTOOL_TAGS],
25
25
[m4_define([_LT_TAGS],[$1])
26
26
m4_define([_LT_AC_TAGCONFIG], [
 
27
  # redefined LT AC TAGCONFIG
27
28
  if test -f "$ltmain"; then
28
29
    if test ! -f "${ofile}"; then
29
30
      AC_MSG_WARN([output file `$ofile' does not exist])
39
40
    fi
40
41
 
41
42
    AC_FOREACH([_LT_TAG], _LT_TAGS,
 
43
      echo THOMAS: tag _LT_TAG
42
44
      [m4_case(_LT_TAG,
43
45
      [CXX], [
44
46
    if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
47
      echo "THOMAS: YAY CXX"
45
48
      AC_LIBTOOL_LANG_CXX_CONFIG
46
49
      available_tags="$available_tags _LT_TAG"
47
50
    fi],
63
66
      [m4_errprintn(m4_location[: error: invalid tag name: ]"_LT_TAG")
64
67
      m4_exit(1)])
65
68
    ])
 
69
    echo THOMAS: available tags: $available_tags
 
70
  fi
 
71
  # Now substitute the updated list of available tags.
 
72
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
73
    mv "${ofile}T" "$ofile"
 
74
    chmod +x "$ofile"
 
75
    AC_MSG_NOTICE([updated available libtool tags with $available_tags.])
 
76
  else
 
77
    rm -f "${ofile}T"
 
78
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
79
 
66
80
  fi
67
81
 
68
82
])dnl _LT_AC_TAG_CONFIG