diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-11-17 21:13:49 -0800 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-11-17 21:16:45 -0800 |
commit | 5046dd02b9c909438d9ab8e9726094846a678f8d (patch) | |
tree | ef6cf2ee0e539a926417aab7db2695e2a5da6c12 | |
parent | 4d6c0bdf749c091af59d34390d3f414363433285 (diff) |
configure: Prevent link errors with --librtmp.
If --librtmp was specified but pkg-config could not find the librtmp
file, we would have undefined symbols when linking curl.
We prevent this error by disabling this case as suggested on the mailing
list.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a400cad5d..1e802fdf8 100644 --- a/configure.ac +++ b/configure.ac @@ -2066,6 +2066,10 @@ if test X"$OPT_LIBRTMP" != Xno; then CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` version=`$PKGCONFIG --modversion librtmp` DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'` + else + dnl To avoid link errors, we do not allow --librtmp without + dnl a pkgconfig file + AC_MSG_ERROR([--librtmp was specified but could not find librtmp pkgconfig file.]) fi ;; |