changeset 32215:37bf4af10f1b

Simplify libdca check using function_check_broken().
author diego
date Sat, 18 Sep 2010 09:50:05 +0000
parents fe807b1b70af
children e3942e3b3920
files configure
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Sep 18 09:49:12 2010 +0000
+++ b/configure	Sat Sep 18 09:50:05 2010 +0000
@@ -6649,14 +6649,9 @@
 echocheck "libdca support"
 if test "$_libdca" = auto ; then
   _libdca=no
-  cat > $TMPC << EOF
-#include <inttypes.h>
-#include <dts.h>
-int main(void) { dts_init(0); return 0; }
-EOF
   for _ld_dca in -ldca -ldts ; do
-    cc_check $_ld_dca $_ld_lm && extra_ldflags="$extra_ldflags $_ld_dca" \
-      && _libdca=yes && break
+    function_check_broken stdint.h dts.h 'dts_init(0)' $_ld_dca $_ld_lm &&
+      extra_ldflags="$extra_ldflags $_ld_dca" && _libdca=yes && break
   done
 fi
 if test "$_libdca" = yes ; then