Revision f652e6af configure

b/configure
119 119
kerneldir=""
120 120
aix="no"
121 121
blobs="yes"
122
fdt="yes"
122 123

  
123 124
# OS specific
124 125
targetos=`uname -s`
......
966 967
  iovec=yes
967 968
fi
968 969

  
970
##########################################
971
# fdt probe
972
if test "$fdt" = "yes" ; then
973
    fdt=no
974
    cat > $TMPC << EOF
975
int main(void) { return 0; }
976
EOF
977
  if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC -lfdt 2> /dev/null ; then
978
    fdt=yes
979
  fi
980
fi
981

  
969 982
# Check if tools are available to build documentation.
970 983
if [ -x "`which texi2html 2>/dev/null`" ] && \
971 984
   [ -x "`which pod2man 2>/dev/null`" ]; then
......
1061 1074
echo "AIO support       $aio"
1062 1075
echo "Install blobs     $blobs"
1063 1076
echo "KVM support       $kvm"
1077
echo "fdt support       $fdt"
1064 1078

  
1065 1079
if test $sdl_too_old = "yes"; then
1066 1080
echo "-> Your SDL version is too old - please upgrade to have SDL support"
......
1350 1364
if test "$iovec" = "yes" ; then
1351 1365
  echo "#define HAVE_IOVEC 1" >> $config_h
1352 1366
fi
1367
if test "$fdt" = "yes" ; then
1368
  echo "#define HAVE_FDT 1" >> $config_h
1369
  echo "FDT_LIBS=-lfdt" >> $config_mak
1370
fi
1353 1371

  
1354 1372
# XXX: suppress that
1355 1373
if [ "$bsd" = "yes" ] ; then

Also available in: Unified diff