configure: simplify check_lib function
authorMåns Rullgård <mans@mansr.com>
Fri, 25 Jun 2010 15:44:55 +0000 (15:44 +0000)
committerMåns Rullgård <mans@mansr.com>
Fri, 25 Jun 2010 15:44:55 +0000 (15:44 +0000)
Originally committed as revision 23777 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 76c8bf2..1e103ff 100755 (executable)
--- a/configure
+++ b/configure
@@ -731,11 +731,7 @@ check_lib(){
     header="$1"
     func="$2"
     shift 2
     header="$1"
     func="$2"
     shift 2
-    temp_extralibs "$@"
-    check_header $header && check_func $func && add_extralibs "$@"
-    err=$?
-    restore_flags
-    return $err
+    check_header $header && check_func $func "$@" && add_extralibs "$@"
 }
 
 check_lib2(){
 }
 
 check_lib2(){