Revision eac30262 configure
b/configure | ||
---|---|---|
116 | 116 |
mixemu="no" |
117 | 117 |
bluez="yes" |
118 | 118 |
kvm="yes" |
119 |
kerneldir="" |
|
119 | 120 |
|
120 | 121 |
# OS specific |
121 | 122 |
targetos=`uname -s` |
... | ... | |
359 | 360 |
;; |
360 | 361 |
--disable-aio) aio="no" |
361 | 362 |
;; |
363 |
--kerneldir=*) kerneldir="$optarg" |
|
364 |
;; |
|
362 | 365 |
*) echo "ERROR: unknown option $opt"; show_help="yes" |
363 | 366 |
;; |
364 | 367 |
esac |
... | ... | |
468 | 471 |
echo " --sparc_cpu=V Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9" |
469 | 472 |
echo " --disable-vde disable support for vde network" |
470 | 473 |
echo " --disable-aio disable AIO support" |
474 |
echo " --kerneldir=PATH look for kernel includes in PATH" |
|
471 | 475 |
echo "" |
472 | 476 |
echo "NOTE: The object files are built at the place where configure is launched" |
473 | 477 |
exit 1 |
... | ... | |
968 | 972 |
#endif |
969 | 973 |
int main(void) { return 0; } |
970 | 974 |
EOF |
971 |
# FIXME make this configurable |
|
972 |
kvm_cflags=-I/lib/modules/`uname -r`/build/include |
|
975 |
if test "$kerneldir" != "" ; then |
|
976 |
kvm_cflags=-I"$kerneldir"/include |
|
977 |
else |
|
978 |
kvm_cflags="" |
|
979 |
fi |
|
973 | 980 |
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $kvm_cflags $TMPC \ |
974 | 981 |
2>/dev/null ; then |
975 | 982 |
: |
Also available in: Unified diff