mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
simplify vde libs selection
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
eb82284f18
commit
4baae0acb8
12
configure
vendored
12
configure
vendored
@ -997,6 +997,8 @@ fi
|
||||
##########################################
|
||||
# vde libraries probe
|
||||
if test "$vde" = "yes" ; then
|
||||
vde=no
|
||||
vde_libs="-lvdeplug"
|
||||
cat > $TMPC << EOF
|
||||
#include <libvdeplug.h>
|
||||
int main(void)
|
||||
@ -1006,11 +1008,9 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lvdeplug > /dev/null 2> /dev/null ; then
|
||||
:
|
||||
else
|
||||
vde="no"
|
||||
fi
|
||||
if $cc $ARCH_CFLAGS -o $TMPE $TMPC $vde_libs > /dev/null 2> /dev/null ; then
|
||||
vde=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
##########################################
|
||||
@ -1589,7 +1589,7 @@ fi
|
||||
if test "$vde" = "yes" ; then
|
||||
echo "CONFIG_VDE=y" >> $config_host_mak
|
||||
echo "#define CONFIG_VDE 1" >> $config_host_h
|
||||
echo "VDE_LIBS=-lvdeplug" >> $config_host_mak
|
||||
echo "VDE_LIBS=$vde_libs" >> $config_host_mak
|
||||
fi
|
||||
for card in $audio_card_list; do
|
||||
def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
|
||||
|
Loading…
Reference in New Issue
Block a user