experimental FreeBSD qemu-devel git head port update for testing
Sebastian Herbszt
herbszt at gmx.de
Sun Sep 13 14:40:34 UTC 2009
Replace own invokation of $cc with compile_prog (patch will likely not apply).
- Sebastian
@@ -37,7 +37,7 @@
+ else
+ libpcap=-lwpcap
+ fi
-+ if ! $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then
++ if ! compile_prog "" "$libpcap" ; then
+ echo
+ echo "Error: Could not find pcap"
+ echo "Make sure to have the pcap libs and headers installed."
@@ -52,7 +52,7 @@
+ return (pcap_create("foo", errbuf) == (pcap_t *)0 ? 1 : 0);
+}
+EOF
-+ if $cc $ARCH_CFLAGS -o $TMPE $libpcap $TMPC 2> /dev/null ; then
++ if compile_prog "" "$libpcap" ; then
+ pcap_create="yes"
+ fi
+ cat > $TMPC << EOF
@@ -61,10 +61,9 @@
+#include <net/bpf.h>
+int main(void) { return (BPF_MAJOR_VERSION); }
+EOF
-+ if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
++ if compile_prog "" "" ; then
+ bpf="yes"
+ fi
-+# LIBS="$libpcap $LIBS"
+ libs_softmmu="$libpcap $libs_softmmu"
+fi # test "$pcap"
+
@@ -72,7 +71,7 @@
More information about the freebsd-emulation
mailing list