[FFmpeg-cvslog] r9364 - trunk/configure

mru subversion
Mon Jun 18 23:42:38 CEST 2007


Author: mru
Date: Mon Jun 18 23:42:38 2007
New Revision: 9364

Log:
move lrintf() check before external lib checks to prevent runtime
errors from these interfering with lrintf() test


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Mon Jun 18 23:42:38 2007
@@ -1561,6 +1561,13 @@ for thread in $THREADS_LIST; do
     fi
 done
 
+# test for lrintf in math.h
+check_exec <<EOF && lrintf=yes || lrintf=no
+#define _ISOC9X_SOURCE  1
+#include <math.h>
+int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
+EOF
+
 enabled_any libamr_nb libamr_wb && enable libamr
 
 # these are off by default, so fail if requested and not available
@@ -1581,13 +1588,6 @@ enabled libfaac    && require2 libfaac "
 enabled libfaad    && require2 libfaad faad.h faacDecOpen -lfaad
 enabled avisynth   && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32
 
-# test for lrintf in math.h
-check_exec <<EOF && lrintf=yes || lrintf=no
-#define _ISOC9X_SOURCE  1
-#include <math.h>
-int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
-EOF
-
 _restrict=
 for restrict_keyword in restrict __restrict__ __restrict; do
     check_cc <<EOF && _restrict=$restrict_keyword && break




More information about the ffmpeg-cvslog mailing list