~ubuntu-branches/ubuntu/feisty/gst-plugins-good0.10/feisty-security

« back to all changes in this revision

Viewing changes to common/m4/gst-args.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-15 02:58:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060815025826-h1sa4q0uxwqgzwki
Tags: 0.10.4-0ubuntu1
* Sync with Debian (pkg-gstreamer SVN, rev 470):
  + debian/rules,
    debian/control.in:
    - Add a -dbg package again

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    enable_gcov=$enableval,
84
84
    enable_gcov=no)
85
85
  if test x$enable_gcov = xyes ; then
 
86
    if test "x$GCC" != "xyes"
 
87
    then
 
88
      AC_MSG_ERROR([gcov only works if gcc is used])
 
89
    fi
 
90
 
86
91
    AS_COMPILER_FLAG(["-fprofile-arcs"],
87
92
      [GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"],
88
93
      true)
91
96
      true)
92
97
    dnl remove any -O flags - FIXME: is this needed ?
93
98
    GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[0-9]*//g'`
 
99
    dnl libtool 1.5.22 and lower strip -fprofile-arcs from the flags
 
100
    dnl passed to the linker, which is a bug; -fprofile-arcs implicitly
 
101
    dnl links in -lgcov, so we do it explicitly here for the same effect
 
102
    GCOV_LIBS=-lgcov
 
103
    AC_SUBST(GCOV_CFLAGS)
 
104
    AC_SUBST(GCOV_LIBS)
 
105
    GCOV=`echo $CC | sed s/gcc/gcov/g`
 
106
    AC_SUBST(GCOV)
94
107
 
 
108
    GST_GCOV_ENABLED=yes
95
109
    AC_DEFINE_UNQUOTED(GST_GCOV_ENABLED, 1,
96
110
      [Defined if gcov is enabled to force a rebuild due to config.h changing])
 
111
    dnl if gcov is used, we do not want default -O2 CFLAGS
 
112
    if test "x$GST_GCOV_ENABLED" = "xyes"
 
113
    then
 
114
      CFLAGS="-O0"
 
115
      AC_SUBST(CFLAGS)
 
116
      CXXFLAGS="-O0"
 
117
      AC_SUBST(CXXFLAGS)
 
118
      FFLAGS="-O0"
 
119
      AC_SUBST(FFLAGS)
 
120
      CCASFLAGS="-O0"
 
121
      AC_SUBST(CCASFLAGS)
 
122
      AC_MSG_NOTICE([gcov enabled, setting CFLAGS and friends to $CFLAGS])
 
123
    fi
97
124
  fi
98
125
  AM_CONDITIONAL(GST_GCOV_ENABLED, test x$enable_gcov = xyes)
99
126
])
119
146
  AC_ARG_WITH(pkg-config-path, 
120
147
     AC_HELP_STRING([--with-pkg-config-path],
121
148
                    [colon-separated list of pkg-config(1) dirs]),
122
 
     [export PKG_CONFIG_PATH=${withval}])
 
149
     [
 
150
       export PKG_CONFIG_PATH=${withval}
 
151
       AC_MSG_NOTICE(Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH)
 
152
     ])
123
153
])
124
154
 
125
155
 
133
163
      case "${withval}" in
134
164
        yes) AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
135
165
        no)  AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
136
 
        *)   GST_PACKAGE="${withval}" ;;
 
166
        *)   GST_PACKAGE_NAME="${withval}" ;;
137
167
      esac
138
168
    ], 
139
169
    [
169
199
      case "${withval}" in
170
200
        yes) AC_MSG_ERROR(bad value ${withval} for --with-package-origin) ;;
171
201
        no)  AC_MSG_ERROR(bad value ${withval} for --with-package-origin) ;;
172
 
        *)   GST_ORIGIN="${withval}" ;;
 
202
        *)   GST_PACKAGE_ORIGIN="${withval}" ;;
173
203
      esac
174
204
    ], 
175
205
    [GST_PACKAGE_ORIGIN="[Unknown package origin]"] dnl Default value