comparison configure @ 22073:58ba9fe4b7e4

libfaac detection skipped linking, and thus only checked for headers and not libs
author lorenm
date Wed, 31 Jan 2007 09:25:05 +0000
parents 10dc111f0018
children bb1b9c3c729b
comparison
equal deleted inserted replaced
22072:10dc111f0018 22073:58ba9fe4b7e4
5861 #include <faac.h> 5861 #include <faac.h>
5862 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; } 5862 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; }
5863 EOF 5863 EOF
5864 _faac=no 5864 _faac=no
5865 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do 5865 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do
5866 cc_check -c -O4 $_ld_tmp $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break 5866 cc_check -O4 $_ld_tmp $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break
5867 done 5867 done
5868 fi 5868 fi
5869 if test "$_faac" = yes ; then 5869 if test "$_faac" = yes ; then
5870 _def_faac="#define HAVE_FAAC 1" 5870 _def_faac="#define HAVE_FAAC 1"
5871 if echo $_libavencoders | grep -q faac ; then 5871 if echo $_libavencoders | grep -q faac ; then