Changeset 50e5262462a38131a0bd84480cb3076d81f2f61f
- Timestamp:
- 05/21/02 00:26:01
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1021933561 +0000
- git-parent:
[ff4bf779fb0d2afcee74979c6abbe2ea99c91827]
- git-author:
- Sam Hocevar <sam@videolan.org> 1021933561 +0000
- Message:
- ./configure.in: tried to fix the -lavcodec detection.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rff4bf77 |
r50e5262 |
|
| 6514 | 6514 | echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6 |
|---|
| 6515 | 6515 | BUILTINS="${BUILTINS} ffmpeg" |
|---|
| 6516 | | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a" |
|---|
| | 6516 | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm" |
|---|
| 6517 | 6517 | ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec" |
|---|
| 6518 | 6518 | else |
|---|
| … | … | |
| 6524 | 6524 | save_LDFLAGS=$LDFLAGS |
|---|
| 6525 | 6525 | CFLAGS="$CFLAGS $ffmpeg_CFLAGS" |
|---|
| 6526 | | LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS" |
|---|
| | 6526 | LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm" |
|---|
| 6527 | 6527 | echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6 |
|---|
| 6528 | 6528 | echo "configure:6529: checking for avcodec_init in -lavcodec" >&5 |
|---|
| … | … | |
| 6562 | 6562 | |
|---|
| 6563 | 6563 | BUILTINS="${BUILTINS} ffmpeg" |
|---|
| 6564 | | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec" |
|---|
| | 6564 | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" |
|---|
| 6565 | 6565 | else |
|---|
| 6566 | 6566 | echo "$ac_t""no" 1>&6 |
|---|
| rff4bf77 |
r50e5262 |
|
| 903 | 903 | AC_MSG_RESULT(${real_ffmpeg_tree}/libavcodec/libavcodec.a) |
|---|
| 904 | 904 | BUILTINS="${BUILTINS} ffmpeg" |
|---|
| 905 | | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a" |
|---|
| | 905 | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm" |
|---|
| 906 | 906 | ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec" |
|---|
| 907 | 907 | else |
|---|
| … | … | |
| 914 | 914 | save_LDFLAGS=$LDFLAGS |
|---|
| 915 | 915 | CFLAGS="$CFLAGS $ffmpeg_CFLAGS" |
|---|
| 916 | | LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS" |
|---|
| | 916 | LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm" |
|---|
| 917 | 917 | AC_CHECK_LIB(avcodec, avcodec_init, [ |
|---|
| 918 | 918 | BUILTINS="${BUILTINS} ffmpeg" |
|---|
| 919 | | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec" ], |
|---|
| | 919 | ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" ], |
|---|
| 920 | 920 | [ AC_MSG_ERROR([Cannot find libavcodec library...]) ]) |
|---|
| 921 | 921 | CFLAGS=$save_CFLAGS |
|---|