Revision e0f80bd7 configure

View differences:

configure
67 67
echo "  --disable-dv1394         disable DV1394 grabbing [default=no]"
68 68
echo "  --disable-network        disable network support [default=no]"
69 69
echo "  --disable-zlib           disable zlib [default=no]"
70
echo "  --disable-lzo            disable lzo [default=no]"
70 71
echo "  --disable-simple_idct    disable simple IDCT routines [default=no]"
71 72
echo "  --disable-vhook          disable video hooking support"
72 73
echo "  --enable-gprof           enable profiling with gprof [$gprof]"
......
185 186
dc1394="no"
186 187
network="yes"
187 188
zlib="yes"
189
lzo="yes"
188 190
libgsm="no"
189 191
mp3lame="no"
190 192
libogg="no"
......
485 487
  ;;
486 488
  --disable-zlib) zlib="no"
487 489
  ;;
490
  --disable-lzo) lzo="no"
491
  ;;
488 492
  --enable-a52) a52="yes"
489 493
  ;;
490 494
  --enable-a52bin) a52bin="yes"
......
985 989
extralibs="$extralibs -lz"
986 990
fi
987 991

  
992
if test "$lzo" = "yes" -a "$gpl" = "yes"; then
993
# check for liblzo
994
cat > $TMPC << EOF
995
#include <lzo1x.h>
996
int main ( void ) {
997
lzo_init();
998
return 0;
999
}
1000
EOF
1001
$cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -llzo 2> /dev/null || lzo="no"
1002
else
1003
lzo="no"
1004
fi
1005
if test "$lzo" = "yes"; then
1006
extralibs="$extralibs -llzo"
1007
fi
1008

  
988 1009
# test for lrintf in math.h
989 1010
cat > $TMPC << EOF
990 1011
#define _ISOC9X_SOURCE  1
......
1245 1266
fi
1246 1267
echo "gprof enabled    $gprof"
1247 1268
echo "zlib enabled     $zlib"
1269
echo "lzo enabled      $lzo"
1248 1270
echo "libgsm enabled   $libgsm"
1249 1271
echo "mp3lame enabled  $mp3lame"
1250 1272
echo "libogg enabled   $libogg"
......
1592 1614
  echo "CONFIG_ZLIB=yes" >> config.mak
1593 1615
fi
1594 1616

  
1617
if test "$lzo" = "yes" ; then
1618
  echo "#define CONFIG_LZO 1" >> $TMPH
1619
  echo "CONFIG_LZO=yes" >> config.mak
1620
fi
1621

  
1595 1622
if test "$libgsm" = "yes" ; then
1596 1623
  echo "#define CONFIG_LIBGSM 1" >> $TMPH
1597 1624
  echo "CONFIG_LIBGSM=yes" >> config.mak

Also available in: Unified diff