]>
Commit | Line | Data |
---|---|---|
7d13299d FB |
1 | #!/bin/sh |
2 | # | |
3ef693a0 | 3 | # qemu configure script (c) 2003 Fabrice Bellard |
7d13299d FB |
4 | # |
5 | # set temporary file name | |
6 | if test ! -z "$TMPDIR" ; then | |
7 | TMPDIR1="${TMPDIR}" | |
8 | elif test ! -z "$TEMPDIR" ; then | |
9 | TMPDIR1="${TEMPDIR}" | |
10 | else | |
11 | TMPDIR1="/tmp" | |
12 | fi | |
13 | ||
3ef693a0 FB |
14 | TMPC="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.c" |
15 | TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o" | |
16 | TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}" | |
17 | TMPS="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.S" | |
7d13299d FB |
18 | |
19 | # default parameters | |
11d9f695 | 20 | prefix="" |
1e43adfc | 21 | interp_prefix="/usr/gnemul/qemu-%M" |
43ce4dfe | 22 | static="no" |
7d13299d FB |
23 | cross_prefix="" |
24 | cc="gcc" | |
25 | host_cc="gcc" | |
26 | ar="ar" | |
27 | make="make" | |
6a882643 | 28 | install="install" |
7d13299d FB |
29 | strip="strip" |
30 | cpu=`uname -m` | |
5327cf48 | 31 | target_list="" |
7d13299d FB |
32 | case "$cpu" in |
33 | i386|i486|i586|i686|i86pc|BePC) | |
97a847bc | 34 | cpu="i386" |
7d13299d | 35 | ;; |
ba68055e | 36 | armv*b) |
808c4954 FB |
37 | cpu="armv4b" |
38 | ;; | |
ba68055e | 39 | armv*l) |
7d13299d FB |
40 | cpu="armv4l" |
41 | ;; | |
42 | alpha) | |
43 | cpu="alpha" | |
44 | ;; | |
295defa5 | 45 | "Power Macintosh"|ppc|ppc64) |
7d13299d FB |
46 | cpu="powerpc" |
47 | ;; | |
48 | mips) | |
49 | cpu="mips" | |
50 | ;; | |
fb3e5849 FB |
51 | s390) |
52 | cpu="s390" | |
53 | ;; | |
94ac5158 | 54 | sparc|sun4[muv]) |
ae228531 FB |
55 | cpu="sparc" |
56 | ;; | |
57 | sparc64) | |
58 | cpu="sparc64" | |
59 | ;; | |
a8baa8c5 FB |
60 | ia64) |
61 | cpu="ia64" | |
62 | ;; | |
38e584a0 FB |
63 | m68k) |
64 | cpu="m68k" | |
65 | ;; | |
bc51c5c9 | 66 | x86_64|amd64) |
0b0babc6 | 67 | cpu="x86_64" |
bc51c5c9 | 68 | ;; |
7d13299d FB |
69 | *) |
70 | cpu="unknown" | |
71 | ;; | |
72 | esac | |
73 | gprof="no" | |
74 | bigendian="no" | |
67b915a5 FB |
75 | mingw32="no" |
76 | EXESUF="" | |
77 | gdbstub="yes" | |
443f1376 | 78 | slirp="yes" |
fb065187 FB |
79 | adlib="no" |
80 | oss="no" | |
1d14ffa9 FB |
81 | dsound="no" |
82 | coreaudio="no" | |
83 | alsa="no" | |
102a52e4 FB |
84 | fmod="no" |
85 | fmod_lib="" | |
86 | fmod_inc="" | |
b1a550a0 | 87 | bsd="no" |
5327cf48 | 88 | linux="no" |
c9ec1fe4 | 89 | kqemu="no" |
05c2a3e7 | 90 | profiler="no" |
c9ec1fe4 | 91 | kernel_path="" |
5b0753e0 | 92 | cocoa="no" |
97ccc689 | 93 | check_gfx="yes" |
1aff381f | 94 | check_gcc="yes" |
0a8e90f4 PB |
95 | softmmu="yes" |
96 | user="no" | |
cc8ae6de | 97 | build_docs="no" |
ce05c323 | 98 | build_acpi_tables="no" |
c5937220 | 99 | uname_release="" |
7d13299d FB |
100 | |
101 | # OS specific | |
102 | targetos=`uname -s` | |
103 | case $targetos in | |
c326e0af FB |
104 | CYGWIN*) |
105 | mingw32="yes" | |
106 | CFLAGS="-O2 -mno-cygwin" | |
107 | ;; | |
67b915a5 FB |
108 | MINGW32*) |
109 | mingw32="yes" | |
110 | ;; | |
7d3505c5 FB |
111 | FreeBSD) |
112 | bsd="yes" | |
fb065187 | 113 | oss="yes" |
e99f9060 | 114 | if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then |
07f4ddbf FB |
115 | kqemu="yes" |
116 | fi | |
7d3505c5 FB |
117 | ;; |
118 | NetBSD) | |
119 | bsd="yes" | |
fb065187 | 120 | oss="yes" |
7d3505c5 FB |
121 | ;; |
122 | OpenBSD) | |
123 | bsd="yes" | |
fb065187 | 124 | oss="yes" |
7d3505c5 | 125 | ;; |
83fb7adf FB |
126 | Darwin) |
127 | bsd="yes" | |
128 | darwin="yes" | |
129 | ;; | |
ec530c81 FB |
130 | SunOS) |
131 | solaris="yes" | |
132 | ;; | |
1d14ffa9 | 133 | *) |
fb065187 | 134 | oss="yes" |
5327cf48 | 135 | linux="yes" |
0a8e90f4 | 136 | user="yes" |
07f4ddbf | 137 | if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then |
c9ec1fe4 FB |
138 | kqemu="yes" |
139 | fi | |
fb065187 | 140 | ;; |
7d13299d FB |
141 | esac |
142 | ||
7d3505c5 | 143 | if [ "$bsd" = "yes" ] ; then |
b1a550a0 | 144 | if [ "$darwin" != "yes" ] ; then |
83fb7adf FB |
145 | make="gmake" |
146 | fi | |
7d3505c5 FB |
147 | fi |
148 | ||
ec530c81 FB |
149 | if [ "$solaris" = "yes" ] ; then |
150 | make="gmake" | |
151 | install="ginstall" | |
152 | solarisrev=`uname -r | cut -f2 -d.` | |
ec530c81 FB |
153 | fi |
154 | ||
7d13299d | 155 | # find source path |
ad064840 PB |
156 | source_path=`dirname "$0"` |
157 | if [ -z "$source_path" ]; then | |
7d13299d | 158 | source_path=`pwd` |
ad064840 PB |
159 | else |
160 | source_path=`cd "$source_path"; pwd` | |
161 | fi | |
162 | if test "$source_path" = `pwd` ; then | |
7d13299d | 163 | source_path_used="no" |
ad064840 PB |
164 | else |
165 | source_path_used="yes" | |
7d13299d FB |
166 | fi |
167 | ||
168 | for opt do | |
a46e4035 | 169 | optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'` |
7d13299d | 170 | case "$opt" in |
2efc3265 FB |
171 | --help|-h) show_help=yes |
172 | ;; | |
b1a550a0 | 173 | --prefix=*) prefix="$optarg" |
7d13299d | 174 | ;; |
b1a550a0 | 175 | --interp-prefix=*) interp_prefix="$optarg" |
32ce6337 | 176 | ;; |
b1a550a0 | 177 | --source-path=*) source_path="$optarg" |
ad064840 | 178 | source_path_used="yes" |
7d13299d | 179 | ;; |
b1a550a0 | 180 | --cross-prefix=*) cross_prefix="$optarg" |
7d13299d | 181 | ;; |
b1a550a0 | 182 | --cc=*) cc="$optarg" |
7d13299d | 183 | ;; |
b1a550a0 | 184 | --host-cc=*) host_cc="$optarg" |
83469015 | 185 | ;; |
b1a550a0 | 186 | --make=*) make="$optarg" |
7d13299d | 187 | ;; |
6a882643 PB |
188 | --install=*) install="$optarg" |
189 | ;; | |
b1a550a0 | 190 | --extra-cflags=*) CFLAGS="$optarg" |
7d13299d | 191 | ;; |
b1a550a0 | 192 | --extra-ldflags=*) LDFLAGS="$optarg" |
7d13299d | 193 | ;; |
b1a550a0 | 194 | --cpu=*) cpu="$optarg" |
7d13299d | 195 | ;; |
b1a550a0 | 196 | --target-list=*) target_list="$optarg" |
de83cd02 | 197 | ;; |
7d13299d FB |
198 | --enable-gprof) gprof="yes" |
199 | ;; | |
43ce4dfe FB |
200 | --static) static="yes" |
201 | ;; | |
97a847bc FB |
202 | --disable-sdl) sdl="no" |
203 | ;; | |
1d14ffa9 FB |
204 | --enable-coreaudio) coreaudio="yes" |
205 | ;; | |
206 | --enable-alsa) alsa="yes" | |
207 | ;; | |
208 | --enable-dsound) dsound="yes" | |
209 | ;; | |
102a52e4 FB |
210 | --enable-fmod) fmod="yes" |
211 | ;; | |
b1a550a0 | 212 | --fmod-lib=*) fmod_lib="$optarg" |
102a52e4 | 213 | ;; |
b1a550a0 | 214 | --fmod-inc=*) fmod_inc="$optarg" |
102a52e4 | 215 | ;; |
67b915a5 | 216 | --enable-mingw32) mingw32="yes" ; cross_prefix="i386-mingw32-" |
1d14ffa9 | 217 | ;; |
443f1376 | 218 | --disable-slirp) slirp="no" |
1d14ffa9 | 219 | ;; |
fb065187 | 220 | --enable-adlib) adlib="yes" |
1d14ffa9 | 221 | ;; |
c9ec1fe4 | 222 | --disable-kqemu) kqemu="no" |
1d14ffa9 | 223 | ;; |
05c2a3e7 FB |
224 | --enable-profiler) profiler="yes" |
225 | ;; | |
b1a550a0 | 226 | --kernel-path=*) kernel_path="$optarg" |
1d14ffa9 FB |
227 | ;; |
228 | --enable-cocoa) cocoa="yes" ; coreaudio="yes" ; sdl="no" | |
229 | ;; | |
97ccc689 FB |
230 | --disable-gfx-check) check_gfx="no" |
231 | ;; | |
1aff381f FB |
232 | --disable-gcc-check) check_gcc="no" |
233 | ;; | |
cad25d69 | 234 | --disable-system) softmmu="no" |
0a8e90f4 | 235 | ;; |
cad25d69 | 236 | --enable-system) softmmu="yes" |
0a8e90f4 PB |
237 | ;; |
238 | --disable-user) user="no" | |
239 | ;; | |
240 | --enable-user) user="yes" | |
241 | ;; | |
c5937220 PB |
242 | --enable-uname-release=*) uname_release="$optarg" |
243 | ;; | |
ce05c323 FB |
244 | --enable-iasl) build_acpi_tables="yes" |
245 | ;; | |
7d13299d FB |
246 | esac |
247 | done | |
248 | ||
249 | # Checking for CFLAGS | |
250 | if test -z "$CFLAGS"; then | |
251 | CFLAGS="-O2" | |
252 | fi | |
253 | ||
af5db58e PB |
254 | if test x"$show_help" = x"yes" ; then |
255 | cat << EOF | |
256 | ||
257 | Usage: configure [options] | |
258 | Options: [defaults in brackets after descriptions] | |
259 | ||
260 | EOF | |
261 | echo "Standard options:" | |
262 | echo " --help print this message" | |
263 | echo " --prefix=PREFIX install in PREFIX [$prefix]" | |
264 | echo " --interp-prefix=PREFIX where to find shared libraries, etc." | |
265 | echo " use %M for cpu name [$interp_prefix]" | |
266 | echo " --target-list=LIST set target list [$target_list]" | |
267 | echo "" | |
268 | echo "kqemu kernel acceleration support:" | |
269 | echo " --disable-kqemu disable kqemu support" | |
270 | echo " --kernel-path=PATH set the kernel path (configure probes it)" | |
271 | echo "" | |
272 | echo "Advanced options (experts only):" | |
273 | echo " --source-path=PATH path of source code [$source_path]" | |
274 | echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" | |
275 | echo " --cc=CC use C compiler CC [$cc]" | |
276 | echo " --host-cc=CC use C compiler CC [$host_cc] for dyngen etc." | |
277 | echo " --make=MAKE use specified make [$make]" | |
6a882643 | 278 | echo " --install=INSTALL use specified install [$install]" |
af5db58e PB |
279 | echo " --static enable static build [$static]" |
280 | echo " --enable-cocoa enable COCOA (Mac OS X only)" | |
281 | echo " --enable-mingw32 enable Win32 cross compilation with mingw32" | |
282 | echo " --enable-adlib enable Adlib emulation" | |
283 | echo " --enable-coreaudio enable Coreaudio audio driver" | |
284 | echo " --enable-alsa enable ALSA audio driver" | |
285 | echo " --enable-fmod enable FMOD audio driver" | |
286 | echo " --enabled-dsound enable DirectSound audio driver" | |
287 | echo " --enable-system enable all system emulation targets" | |
288 | echo " --disable-system disable all system emulation targets" | |
289 | echo " --enable-user enable all linux usermode emulation targets" | |
290 | echo " --disable-user disable all linux usermode emulation targets" | |
291 | echo " --fmod-lib path to FMOD library" | |
292 | echo " --fmod-inc path to FMOD includes" | |
c5937220 | 293 | echo " --enable-uname-release=R Return R for uname -r in usermode emulation" |
ce05c323 | 294 | echo " --enable-iasl compilation of ACPI tables with the IASL compiler" |
af5db58e PB |
295 | echo "" |
296 | echo "NOTE: The object files are build at the place where configure is launched" | |
297 | exit 1 | |
298 | fi | |
299 | ||
7d13299d FB |
300 | cc="${cross_prefix}${cc}" |
301 | ar="${cross_prefix}${ar}" | |
302 | strip="${cross_prefix}${strip}" | |
303 | ||
064aae13 PB |
304 | # check that the C compiler works. |
305 | cat > $TMPC <<EOF | |
306 | int main(void) {} | |
307 | EOF | |
308 | ||
309 | if $cc -c -o $TMPO $TMPC 2>/dev/null ; then | |
310 | : C compiler works ok | |
311 | else | |
312 | echo "ERROR: \"$cc\" either does not exist or does not work" | |
313 | exit 1 | |
a7350fa1 FB |
314 | fi |
315 | ||
67b915a5 | 316 | if test "$mingw32" = "yes" ; then |
5327cf48 | 317 | linux="no" |
67b915a5 | 318 | EXESUF=".exe" |
9f059eca | 319 | oss="no" |
07f4ddbf FB |
320 | if [ "$cpu" = "i386" ] ; then |
321 | kqemu="yes" | |
322 | fi | |
67b915a5 FB |
323 | fi |
324 | ||
ec530c81 FB |
325 | # |
326 | # Solaris specific configure tool chain decisions | |
327 | # | |
328 | if test "$solaris" = "yes" ; then | |
329 | # | |
330 | # gcc for solaris 10/fcs in /usr/sfw/bin doesn't compile qemu correctly | |
331 | # override the check with --disable-gcc-check | |
332 | # | |
333 | if test "$solarisrev" -eq 10 -a "$check_gcc" = "yes" ; then | |
334 | solgcc=`which $cc` | |
335 | if test "$solgcc" = "/usr/sfw/bin/gcc" ; then | |
336 | echo "Solaris 10/FCS gcc in /usr/sfw/bin will not compiled qemu correctly." | |
337 | echo "please get gcc-3.4.3 or later, from www.blastwave.org using pkg-get -i gcc3" | |
338 | echo "or get the latest patch from SunSolve for gcc" | |
339 | exit 1 | |
340 | fi | |
341 | fi | |
342 | solinst=`which $install 2> /dev/null | /usr/bin/grep -v "no $install in"` | |
343 | if test -z "$solinst" ; then | |
344 | echo "Solaris install program not found. Use --install=/usr/ucb/install or" | |
345 | echo "install fileutils from www.blastwave.org using pkg-get -i fileutils" | |
346 | echo "to get ginstall which is used by default (which lives in /opt/csw/bin)" | |
347 | exit 1 | |
348 | fi | |
349 | if test "$solinst" = "/usr/sbin/install" ; then | |
350 | echo "Error: Solaris /usr/sbin/install is not an appropriate install program." | |
351 | echo "try ginstall from the GNU fileutils available from www.blastwave.org" | |
352 | echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install" | |
353 | exit 1 | |
354 | fi | |
ec530c81 FB |
355 | sol_ar=`which ar 2> /dev/null | /usr/bin/grep -v "no ar in"` |
356 | if test -z "$sol_ar" ; then | |
357 | echo "Error: No path includes ar" | |
358 | if test -f /usr/ccs/bin/ar ; then | |
359 | echo "Add /usr/ccs/bin to your path and rerun configure" | |
360 | fi | |
361 | exit 1 | |
362 | fi | |
363 | fi | |
364 | ||
365 | ||
5327cf48 FB |
366 | if test -z "$target_list" ; then |
367 | # these targets are portable | |
0a8e90f4 PB |
368 | if [ "$softmmu" = "yes" ] ; then |
369 | target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu mipsel-softmmu arm-softmmu" | |
370 | fi | |
5327cf48 | 371 | # the following are Linux specific |
0a8e90f4 | 372 | if [ "$user" = "yes" ] ; then |
215cf0be | 373 | target_list="i386-user arm-user armeb-user sparc-user ppc-user mips-user mipsel-user $target_list" |
5327cf48 | 374 | fi |
6e20a45f | 375 | else |
b1a550a0 | 376 | target_list=`echo "$target_list" | sed -e 's/,/ /g'` |
5327cf48 | 377 | fi |
0a8e90f4 PB |
378 | if test -z "$target_list" ; then |
379 | echo "No targets enabled" | |
380 | exit 1 | |
381 | fi | |
5327cf48 | 382 | |
7d13299d FB |
383 | if test -z "$cross_prefix" ; then |
384 | ||
385 | # --- | |
386 | # big/little endian test | |
387 | cat > $TMPC << EOF | |
388 | #include <inttypes.h> | |
389 | int main(int argc, char ** argv){ | |
1d14ffa9 FB |
390 | volatile uint32_t i=0x01234567; |
391 | return (*((uint8_t*)(&i))) == 0x67; | |
7d13299d FB |
392 | } |
393 | EOF | |
394 | ||
395 | if $cc -o $TMPE $TMPC 2>/dev/null ; then | |
396 | $TMPE && bigendian="yes" | |
397 | else | |
398 | echo big/little test failed | |
399 | fi | |
400 | ||
401 | else | |
402 | ||
403 | # if cross compiling, cannot launch a program, so make a static guess | |
808c4954 | 404 | if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "s390" -o "$cpu" = "sparc" -o "$cpu" = "sparc64" -o "$cpu" = "m68k" -o "$cpu" = "armv4b"; then |
7d13299d FB |
405 | bigendian="yes" |
406 | fi | |
407 | ||
408 | fi | |
409 | ||
b6853697 FB |
410 | # host long bits test |
411 | hostlongbits="32" | |
412 | if test "$cpu" = "sparc64" -o "$cpu" = "ia64" -o "$cpu" = "x86_64" -o "$cpu" = "alpha"; then | |
413 | hostlongbits="64" | |
414 | fi | |
415 | ||
e8cd23de | 416 | # check gcc options support |
04369ff2 FB |
417 | cat > $TMPC <<EOF |
418 | int main(void) { | |
04369ff2 FB |
419 | } |
420 | EOF | |
421 | ||
e8cd23de FB |
422 | have_gcc3_options="no" |
423 | if $cc -fno-reorder-blocks -fno-optimize-sibling-calls -o $TMPO $TMPC 2> /dev/null ; then | |
424 | have_gcc3_options="yes" | |
04369ff2 | 425 | fi |
ca735206 | 426 | |
b1a550a0 | 427 | # Check for gcc4, error if pre-gcc4 |
1aff381f FB |
428 | if test "$check_gcc" = "yes" ; then |
429 | cat > $TMPC <<EOF | |
b1a550a0 PB |
430 | #if __GNUC__ < 4 |
431 | #error gcc3 | |
1aff381f FB |
432 | #endif |
433 | int main(){return 0;} | |
434 | EOF | |
b1a550a0 | 435 | if $cc -o $TMPO $TMPC 2>/dev/null ; then |
1aff381f FB |
436 | echo "ERROR: \"$cc\" looks like gcc 4.x" |
437 | echo "QEMU is known to have problems when compiled with gcc 4.x" | |
438 | echo "It is recommended that you use gcc 3.x to build QEMU" | |
439 | echo "To use this compiler anyway, configure with --disable-gcc-check" | |
440 | exit 1; | |
441 | fi | |
442 | fi | |
443 | ||
11d9f695 FB |
444 | ########################################## |
445 | # SDL probe | |
446 | ||
447 | sdl_too_old=no | |
448 | ||
449 | if test -z "$sdl" ; then | |
450 | ||
a6e022ad FB |
451 | sdl_config="sdl-config" |
452 | sdl=no | |
7c1f25b4 | 453 | sdl_static=no |
a6e022ad FB |
454 | |
455 | if test "$mingw32" = "yes" -a ! -z "$cross_prefix" ; then | |
456 | # win32 cross compilation case | |
457 | sdl_config="i386-mingw32msvc-sdl-config" | |
458 | sdl=yes | |
459 | else | |
460 | # normal SDL probe | |
11d9f695 FB |
461 | cat > $TMPC << EOF |
462 | #include <SDL.h> | |
463 | #undef main /* We don't want SDL to override our main() */ | |
464 | int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } | |
465 | EOF | |
466 | ||
a6e022ad FB |
467 | if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /dev/null ; then |
468 | _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'` | |
11d9f695 FB |
469 | if test "$_sdlversion" -lt 121 ; then |
470 | sdl_too_old=yes | |
471 | else | |
472 | sdl=yes | |
473 | fi | |
7c1f25b4 FB |
474 | |
475 | # static link with sdl ? | |
476 | if test "$sdl" = "yes" ; then | |
477 | aa="no" | |
478 | `$sdl_config --static-libs | grep \\\-laa > /dev/null` && aa="yes" | |
479 | sdl_static_libs=`$sdl_config --static-libs` | |
480 | if [ "$aa" = "yes" ] ; then | |
d8d8aa4e | 481 | sdl_static_libs="$sdl_static_libs `aalib-config --static-libs`" |
7c1f25b4 FB |
482 | fi |
483 | ||
484 | if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC $sdl_static_libs 2> /dev/null; then | |
485 | sdl_static=yes | |
11d9f695 FB |
486 | fi |
487 | ||
7c1f25b4 FB |
488 | fi # static link |
489 | ||
490 | fi # sdl compile test | |
491 | ||
a6e022ad FB |
492 | fi # cross compilation |
493 | fi # -z $sdl | |
11d9f695 | 494 | |
cc8ae6de | 495 | # Check if tools are available to build documentation. |
94ac5158 | 496 | if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then |
cc8ae6de PB |
497 | build_docs="yes" |
498 | fi | |
499 | ||
11d9f695 FB |
500 | if test "$mingw32" = "yes" ; then |
501 | if test -z "$prefix" ; then | |
502 | prefix="/c/Program Files/Qemu" | |
503 | fi | |
504 | mandir="$prefix" | |
7efa4387 | 505 | datadir="$prefix" |
1f50f8d1 | 506 | docdir="$prefix" |
11d9f695 FB |
507 | bindir="$prefix" |
508 | else | |
509 | if test -z "$prefix" ; then | |
510 | prefix="/usr/local" | |
511 | fi | |
5a67135a | 512 | mandir="$prefix/share/man" |
7efa4387 | 513 | datadir="$prefix/share/qemu" |
1f50f8d1 | 514 | docdir="$prefix/share/doc/qemu" |
11d9f695 FB |
515 | bindir="$prefix/bin" |
516 | fi | |
5a67135a | 517 | |
43ce4dfe | 518 | echo "Install prefix $prefix" |
7efa4387 | 519 | echo "BIOS directory $datadir" |
11d9f695 FB |
520 | echo "binary directory $bindir" |
521 | if test "$mingw32" = "no" ; then | |
522 | echo "Manual directory $mandir" | |
43ce4dfe | 523 | echo "ELF interp prefix $interp_prefix" |
11d9f695 | 524 | fi |
5a67135a | 525 | echo "Source path $source_path" |
43ce4dfe | 526 | echo "C compiler $cc" |
83469015 | 527 | echo "Host C compiler $host_cc" |
43ce4dfe | 528 | echo "make $make" |
6a882643 | 529 | echo "install $install" |
43ce4dfe | 530 | echo "host CPU $cpu" |
de83cd02 | 531 | echo "host big endian $bigendian" |
97a847bc | 532 | echo "target list $target_list" |
43ce4dfe | 533 | echo "gprof enabled $gprof" |
05c2a3e7 | 534 | echo "profiler $profiler" |
43ce4dfe | 535 | echo "static build $static" |
5b0753e0 FB |
536 | if test "$darwin" = "yes" ; then |
537 | echo "Cocoa support $cocoa" | |
538 | fi | |
97a847bc | 539 | echo "SDL support $sdl" |
e4afee97 FB |
540 | if test "$sdl" != "no" ; then |
541 | echo "SDL static link $sdl_static" | |
542 | fi | |
67b915a5 | 543 | echo "mingw32 support $mingw32" |
fb065187 | 544 | echo "Adlib support $adlib" |
1d14ffa9 FB |
545 | echo "CoreAudio support $coreaudio" |
546 | echo "ALSA support $alsa" | |
547 | echo "DSound support $dsound" | |
1d14ffa9 FB |
548 | if test "$fmod" = "yes"; then |
549 | if test -z $fmod_lib || test -z $fmod_inc; then | |
550 | echo | |
551 | echo "Error: You must specify path to FMOD library and headers" | |
552 | echo "Example: --fmod-inc=/path/include/fmod --fmod-lib=/path/lib/libfmod-3.74.so" | |
553 | echo | |
554 | exit 1 | |
555 | fi | |
b1a550a0 PB |
556 | fmod_support=" (lib='$fmod_lib' include='$fmod_inc')" |
557 | else | |
558 | fmod_support="" | |
102a52e4 | 559 | fi |
b1a550a0 | 560 | echo "FMOD support $fmod $fmod_support" |
07f4ddbf | 561 | echo "kqemu support $kqemu" |
cc8ae6de | 562 | echo "Documentation $build_docs" |
c5937220 PB |
563 | [ ! -z "$uname_release" ] && \ |
564 | echo "uname -r $uname_release" | |
67b915a5 | 565 | |
97a847bc | 566 | if test $sdl_too_old = "yes"; then |
24b55b96 | 567 | echo "-> Your SDL version is too old - please upgrade to have SDL support" |
7c1f25b4 | 568 | fi |
24b55b96 FB |
569 | #if test "$sdl_static" = "no"; then |
570 | # echo "WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output" | |
571 | #fi | |
97a847bc FB |
572 | config_mak="config-host.mak" |
573 | config_h="config-host.h" | |
7d13299d | 574 | |
7c1f25b4 | 575 | #echo "Creating $config_mak and $config_h" |
7d13299d | 576 | |
97a847bc | 577 | echo "# Automatically generated by configure - do not modify" > $config_mak |
29517134 | 578 | echo "# Configured with: $0 $@" >> $config_mak |
97a847bc | 579 | echo "/* Automatically generated by configure - do not modify */" > $config_h |
7d13299d | 580 | |
97a847bc | 581 | echo "prefix=$prefix" >> $config_mak |
11d9f695 | 582 | echo "bindir=$bindir" >> $config_mak |
5a67135a | 583 | echo "mandir=$mandir" >> $config_mak |
7efa4387 | 584 | echo "datadir=$datadir" >> $config_mak |
1f50f8d1 | 585 | echo "docdir=$docdir" >> $config_mak |
7efa4387 | 586 | echo "#define CONFIG_QEMU_SHAREDIR \"$datadir\"" >> $config_h |
97a847bc | 587 | echo "MAKE=$make" >> $config_mak |
6a882643 | 588 | echo "INSTALL=$install" >> $config_mak |
97a847bc | 589 | echo "CC=$cc" >> $config_mak |
e8cd23de | 590 | if test "$have_gcc3_options" = "yes" ; then |
97a847bc | 591 | echo "HAVE_GCC3_OPTIONS=yes" >> $config_mak |
e8cd23de | 592 | fi |
97a847bc FB |
593 | echo "HOST_CC=$host_cc" >> $config_mak |
594 | echo "AR=$ar" >> $config_mak | |
595 | echo "STRIP=$strip -s -R .comment -R .note" >> $config_mak | |
596 | echo "CFLAGS=$CFLAGS" >> $config_mak | |
597 | echo "LDFLAGS=$LDFLAGS" >> $config_mak | |
67b915a5 | 598 | echo "EXESUF=$EXESUF" >> $config_mak |
97a847bc FB |
599 | if test "$cpu" = "i386" ; then |
600 | echo "ARCH=i386" >> $config_mak | |
601 | echo "#define HOST_I386 1" >> $config_h | |
0b0babc6 FB |
602 | elif test "$cpu" = "x86_64" ; then |
603 | echo "ARCH=x86_64" >> $config_mak | |
604 | echo "#define HOST_X86_64 1" >> $config_h | |
808c4954 FB |
605 | elif test "$cpu" = "armv4b" ; then |
606 | echo "ARCH=arm" >> $config_mak | |
607 | echo "#define HOST_ARM 1" >> $config_h | |
7d13299d | 608 | elif test "$cpu" = "armv4l" ; then |
97a847bc FB |
609 | echo "ARCH=arm" >> $config_mak |
610 | echo "#define HOST_ARM 1" >> $config_h | |
7d13299d | 611 | elif test "$cpu" = "powerpc" ; then |
97a847bc FB |
612 | echo "ARCH=ppc" >> $config_mak |
613 | echo "#define HOST_PPC 1" >> $config_h | |
7d13299d | 614 | elif test "$cpu" = "mips" ; then |
97a847bc FB |
615 | echo "ARCH=mips" >> $config_mak |
616 | echo "#define HOST_MIPS 1" >> $config_h | |
fb3e5849 | 617 | elif test "$cpu" = "s390" ; then |
97a847bc FB |
618 | echo "ARCH=s390" >> $config_mak |
619 | echo "#define HOST_S390 1" >> $config_h | |
295defa5 | 620 | elif test "$cpu" = "alpha" ; then |
97a847bc FB |
621 | echo "ARCH=alpha" >> $config_mak |
622 | echo "#define HOST_ALPHA 1" >> $config_h | |
ae228531 | 623 | elif test "$cpu" = "sparc" ; then |
97a847bc FB |
624 | echo "ARCH=sparc" >> $config_mak |
625 | echo "#define HOST_SPARC 1" >> $config_h | |
ae228531 | 626 | elif test "$cpu" = "sparc64" ; then |
97a847bc FB |
627 | echo "ARCH=sparc64" >> $config_mak |
628 | echo "#define HOST_SPARC64 1" >> $config_h | |
a8baa8c5 | 629 | elif test "$cpu" = "ia64" ; then |
97a847bc FB |
630 | echo "ARCH=ia64" >> $config_mak |
631 | echo "#define HOST_IA64 1" >> $config_h | |
38e584a0 | 632 | elif test "$cpu" = "m68k" ; then |
38ca2abc FB |
633 | echo "ARCH=m68k" >> $config_mak |
634 | echo "#define HOST_M68K 1" >> $config_h | |
7d13299d FB |
635 | else |
636 | echo "Unsupported CPU" | |
637 | exit 1 | |
638 | fi | |
639 | if test "$bigendian" = "yes" ; then | |
97a847bc FB |
640 | echo "WORDS_BIGENDIAN=yes" >> $config_mak |
641 | echo "#define WORDS_BIGENDIAN 1" >> $config_h | |
642 | fi | |
b6853697 | 643 | echo "#define HOST_LONG_BITS $hostlongbits" >> $config_h |
67b915a5 FB |
644 | if test "$mingw32" = "yes" ; then |
645 | echo "CONFIG_WIN32=yes" >> $config_mak | |
11d9f695 | 646 | echo "#define CONFIG_WIN32 1" >> $config_h |
7d3505c5 | 647 | elif test -f "/usr/include/byteswap.h" ; then |
67b915a5 FB |
648 | echo "#define HAVE_BYTESWAP_H 1" >> $config_h |
649 | fi | |
83fb7adf FB |
650 | if test "$darwin" = "yes" ; then |
651 | echo "CONFIG_DARWIN=yes" >> $config_mak | |
652 | echo "#define CONFIG_DARWIN 1" >> $config_h | |
653 | fi | |
ec530c81 FB |
654 | if test "$solaris" = "yes" ; then |
655 | echo "CONFIG_SOLARIS=yes" >> $config_mak | |
38cfa06c | 656 | echo "#define HOST_SOLARIS $solarisrev" >> $config_h |
ec530c81 | 657 | fi |
67b915a5 FB |
658 | if test "$gdbstub" = "yes" ; then |
659 | echo "CONFIG_GDBSTUB=yes" >> $config_mak | |
660 | echo "#define CONFIG_GDBSTUB 1" >> $config_h | |
661 | fi | |
97a847bc FB |
662 | if test "$gprof" = "yes" ; then |
663 | echo "TARGET_GPROF=yes" >> $config_mak | |
664 | echo "#define HAVE_GPROF 1" >> $config_h | |
665 | fi | |
666 | if test "$static" = "yes" ; then | |
667 | echo "CONFIG_STATIC=yes" >> $config_mak | |
50863472 | 668 | echo "#define CONFIG_STATIC 1" >> $config_h |
7d13299d | 669 | fi |
05c2a3e7 FB |
670 | if test $profiler = "yes" ; then |
671 | echo "#define CONFIG_PROFILER 1" >> $config_h | |
672 | fi | |
c20709aa FB |
673 | if test "$slirp" = "yes" ; then |
674 | echo "CONFIG_SLIRP=yes" >> $config_mak | |
675 | echo "#define CONFIG_SLIRP 1" >> $config_h | |
676 | fi | |
fb065187 FB |
677 | if test "$adlib" = "yes" ; then |
678 | echo "CONFIG_ADLIB=yes" >> $config_mak | |
679 | echo "#define CONFIG_ADLIB 1" >> $config_h | |
680 | fi | |
681 | if test "$oss" = "yes" ; then | |
682 | echo "CONFIG_OSS=yes" >> $config_mak | |
683 | echo "#define CONFIG_OSS 1" >> $config_h | |
684 | fi | |
1d14ffa9 FB |
685 | if test "$coreaudio" = "yes" ; then |
686 | echo "CONFIG_COREAUDIO=yes" >> $config_mak | |
687 | echo "#define CONFIG_COREAUDIO 1" >> $config_h | |
688 | fi | |
689 | if test "$alsa" = "yes" ; then | |
690 | echo "CONFIG_ALSA=yes" >> $config_mak | |
691 | echo "#define CONFIG_ALSA 1" >> $config_h | |
692 | fi | |
693 | if test "$dsound" = "yes" ; then | |
694 | echo "CONFIG_DSOUND=yes" >> $config_mak | |
695 | echo "#define CONFIG_DSOUND 1" >> $config_h | |
696 | fi | |
102a52e4 FB |
697 | if test "$fmod" = "yes" ; then |
698 | echo "CONFIG_FMOD=yes" >> $config_mak | |
699 | echo "CONFIG_FMOD_LIB=$fmod_lib" >> $config_mak | |
700 | echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_mak | |
701 | echo "#define CONFIG_FMOD 1" >> $config_h | |
702 | fi | |
b1a550a0 PB |
703 | qemu_version=`head $source_path/VERSION` |
704 | echo "VERSION=$qemu_version" >>$config_mak | |
d4b8f039 | 705 | echo "#define QEMU_VERSION \"$qemu_version\"" >> $config_h |
97a847bc FB |
706 | |
707 | echo "SRC_PATH=$source_path" >> $config_mak | |
ad064840 PB |
708 | if [ "$source_path_used" = "yes" ]; then |
709 | echo "VPATH=$source_path" >> $config_mak | |
710 | fi | |
97a847bc | 711 | echo "TARGET_DIRS=$target_list" >> $config_mak |
cc8ae6de PB |
712 | if [ "$build_docs" = "yes" ] ; then |
713 | echo "BUILD_DOCS=yes" >> $config_mak | |
714 | fi | |
ce05c323 FB |
715 | if [ "$build_acpi_tables" = "yes" ] ; then |
716 | echo "BUILD_ACPI_TABLES=yes" >> $config_mak | |
717 | fi | |
97a847bc | 718 | |
83fb7adf | 719 | # XXX: suppress that |
7d3505c5 | 720 | if [ "$bsd" = "yes" ] ; then |
43003046 | 721 | echo "#define O_LARGEFILE 0" >> $config_h |
43003046 | 722 | echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h |
7d3505c5 FB |
723 | echo "#define _BSD 1" >> $config_h |
724 | fi | |
725 | ||
c5937220 PB |
726 | echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h |
727 | ||
1d14ffa9 | 728 | for target in $target_list; do |
97a847bc FB |
729 | target_dir="$target" |
730 | config_mak=$target_dir/config.mak | |
731 | config_h=$target_dir/config.h | |
732 | target_cpu=`echo $target | cut -d '-' -f 1` | |
733 | target_bigendian="no" | |
808c4954 | 734 | [ "$target_cpu" = "armeb" ] && target_bigendian=yes |
1e43adfc | 735 | [ "$target_cpu" = "sparc" ] && target_bigendian=yes |
64b3ab24 | 736 | [ "$target_cpu" = "sparc64" ] && target_bigendian=yes |
67867308 | 737 | [ "$target_cpu" = "ppc" ] && target_bigendian=yes |
a2458627 | 738 | [ "$target_cpu" = "ppc64" ] && target_bigendian=yes |
d3258560 | 739 | [ "$target_cpu" = "mips" ] && target_bigendian=yes |
97a847bc FB |
740 | target_softmmu="no" |
741 | if expr $target : '.*-softmmu' > /dev/null ; then | |
742 | target_softmmu="yes" | |
743 | fi | |
997344f3 FB |
744 | target_user_only="no" |
745 | if expr $target : '.*-user' > /dev/null ; then | |
746 | target_user_only="yes" | |
747 | fi | |
97a847bc | 748 | |
97ccc689 | 749 | if test "$target_user_only" = "no" -a "$check_gfx" = "yes" \ |
1d14ffa9 | 750 | -a "$sdl" = "no" -a "$cocoa" = "no" ; then |
97ccc689 | 751 | echo "ERROR: QEMU requires SDL or Cocoa for graphical output" |
9c038506 | 752 | echo "To build QEMU without graphical output configure with --disable-gfx-check" |
97ccc689 FB |
753 | echo "Note that this will disable all output from the virtual graphics card." |
754 | exit 1; | |
755 | fi | |
756 | ||
7c1f25b4 | 757 | #echo "Creating $config_mak, $config_h and $target_dir/Makefile" |
97a847bc FB |
758 | |
759 | mkdir -p $target_dir | |
158142c2 | 760 | mkdir -p $target_dir/fpu |
808c4954 | 761 | if test "$target" = "arm-user" -o "$target" = "armeb-user" ; then |
69de927c FB |
762 | mkdir -p $target_dir/nwfpe |
763 | fi | |
a7e61ed4 FB |
764 | if test "$target_user_only" = "no" ; then |
765 | mkdir -p $target_dir/slirp | |
766 | fi | |
69de927c | 767 | |
ec530c81 FB |
768 | # |
769 | # don't use ln -sf as not all "ln -sf" over write the file/link | |
770 | # | |
771 | rm -f $target_dir/Makefile | |
772 | ln -s $source_path/Makefile.target $target_dir/Makefile | |
773 | ||
97a847bc FB |
774 | |
775 | echo "# Automatically generated by configure - do not modify" > $config_mak | |
776 | echo "/* Automatically generated by configure - do not modify */" > $config_h | |
777 | ||
de83cd02 | 778 | |
97a847bc FB |
779 | echo "include ../config-host.mak" >> $config_mak |
780 | echo "#include \"../config-host.h\"" >> $config_h | |
1e43adfc | 781 | |
e5fe0c52 | 782 | bflt="no" |
1e43adfc FB |
783 | interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"` |
784 | echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h | |
97a847bc FB |
785 | |
786 | if test "$target_cpu" = "i386" ; then | |
787 | echo "TARGET_ARCH=i386" >> $config_mak | |
788 | echo "#define TARGET_ARCH \"i386\"" >> $config_h | |
789 | echo "#define TARGET_I386 1" >> $config_h | |
07f4ddbf | 790 | if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "i386" ; then |
824d560f FB |
791 | echo "#define USE_KQEMU 1" >> $config_h |
792 | fi | |
808c4954 | 793 | elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then |
97a847bc FB |
794 | echo "TARGET_ARCH=arm" >> $config_mak |
795 | echo "#define TARGET_ARCH \"arm\"" >> $config_h | |
796 | echo "#define TARGET_ARM 1" >> $config_h | |
e5fe0c52 | 797 | bflt="yes" |
1e43adfc FB |
798 | elif test "$target_cpu" = "sparc" ; then |
799 | echo "TARGET_ARCH=sparc" >> $config_mak | |
800 | echo "#define TARGET_ARCH \"sparc\"" >> $config_h | |
801 | echo "#define TARGET_SPARC 1" >> $config_h | |
64b3ab24 FB |
802 | elif test "$target_cpu" = "sparc64" ; then |
803 | echo "TARGET_ARCH=sparc64" >> $config_mak | |
804 | echo "#define TARGET_ARCH \"sparc64\"" >> $config_h | |
805 | echo "#define TARGET_SPARC 1" >> $config_h | |
806 | echo "#define TARGET_SPARC64 1" >> $config_h | |
67867308 FB |
807 | elif test "$target_cpu" = "ppc" ; then |
808 | echo "TARGET_ARCH=ppc" >> $config_mak | |
809 | echo "#define TARGET_ARCH \"ppc\"" >> $config_h | |
810 | echo "#define TARGET_PPC 1" >> $config_h | |
a2458627 FB |
811 | elif test "$target_cpu" = "ppc64" ; then |
812 | echo "TARGET_ARCH=ppc64" >> $config_mak | |
813 | echo "#define TARGET_ARCH \"ppc64\"" >> $config_h | |
814 | echo "#define TARGET_PPC 1" >> $config_h | |
815 | echo "#define TARGET_PPC64 1" >> $config_h | |
0b0babc6 FB |
816 | elif test "$target_cpu" = "x86_64" ; then |
817 | echo "TARGET_ARCH=x86_64" >> $config_mak | |
818 | echo "#define TARGET_ARCH \"x86_64\"" >> $config_h | |
819 | echo "#define TARGET_I386 1" >> $config_h | |
820 | echo "#define TARGET_X86_64 1" >> $config_h | |
07f4ddbf FB |
821 | if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then |
822 | echo "#define USE_KQEMU 1" >> $config_h | |
823 | fi | |
c20eb473 | 824 | elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then |
d3258560 FB |
825 | echo "TARGET_ARCH=mips" >> $config_mak |
826 | echo "#define TARGET_ARCH \"mips\"" >> $config_h | |
827 | echo "#define TARGET_MIPS 1" >> $config_h | |
6ea83fed FB |
828 | echo "CONFIG_SOFTFLOAT=yes" >> $config_mak |
829 | echo "#define CONFIG_SOFTFLOAT 1" >> $config_h | |
fdf9b3e8 FB |
830 | elif test "$target_cpu" = "sh4" ; then |
831 | echo "TARGET_ARCH=sh4" >> $config_mak | |
832 | echo "#define TARGET_ARCH \"sh4\"" >> $config_h | |
833 | echo "#define TARGET_SH4 1" >> $config_h | |
4dbed897 | 834 | bflt="yes" |
de83cd02 FB |
835 | else |
836 | echo "Unsupported target CPU" | |
837 | exit 1 | |
838 | fi | |
839 | if test "$target_bigendian" = "yes" ; then | |
97a847bc FB |
840 | echo "TARGET_WORDS_BIGENDIAN=yes" >> $config_mak |
841 | echo "#define TARGET_WORDS_BIGENDIAN 1" >> $config_h | |
de83cd02 | 842 | fi |
97a847bc FB |
843 | if test "$target_softmmu" = "yes" ; then |
844 | echo "CONFIG_SOFTMMU=yes" >> $config_mak | |
845 | echo "#define CONFIG_SOFTMMU 1" >> $config_h | |
43ce4dfe | 846 | fi |
997344f3 FB |
847 | if test "$target_user_only" = "yes" ; then |
848 | echo "CONFIG_USER_ONLY=yes" >> $config_mak | |
849 | echo "#define CONFIG_USER_ONLY 1" >> $config_h | |
850 | fi | |
97a847bc | 851 | |
158142c2 FB |
852 | if test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then |
853 | echo "CONFIG_SOFTFLOAT=yes" >> $config_mak | |
854 | echo "#define CONFIG_SOFTFLOAT 1" >> $config_h | |
855 | fi | |
e5fe0c52 PB |
856 | if test "$target_user_only" = "yes" -a "$bflt" = "yes"; then |
857 | echo "TARGET_HAS_BFLT=yes" >> $config_mak | |
858 | echo "#define TARGET_HAS_BFLT 1" >> $config_h | |
859 | fi | |
7c1f25b4 FB |
860 | # sdl defines |
861 | ||
862 | if test "$target_user_only" = "no"; then | |
863 | if test "$target_softmmu" = "no" -o "$static" = "yes"; then | |
dbb2c921 | 864 | sdl1=$sdl_static |
7c1f25b4 | 865 | else |
dbb2c921 FB |
866 | sdl1=$sdl |
867 | fi | |
868 | if test "$sdl1" = "yes" ; then | |
869 | echo "#define CONFIG_SDL 1" >> $config_h | |
870 | echo "CONFIG_SDL=yes" >> $config_mak | |
871 | if test "$target_softmmu" = "no" -o "$static" = "yes"; then | |
872 | echo "SDL_LIBS=$sdl_static_libs" >> $config_mak | |
873 | else | |
7c1f25b4 FB |
874 | echo "SDL_LIBS=`$sdl_config --libs`" >> $config_mak |
875 | fi | |
dbb2c921 | 876 | if [ "${aa}" = "yes" ] ; then |
b1a550a0 PB |
877 | echo "SDL_CFLAGS=`$sdl_config --cflags` `aalib-config --cflags`" >> $config_mak |
878 | else | |
879 | echo "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak | |
dbb2c921 | 880 | fi |
7c1f25b4 | 881 | fi |
7c1f25b4 FB |
882 | fi |
883 | ||
5b0753e0 FB |
884 | if test "$cocoa" = "yes" ; then |
885 | echo "#define CONFIG_COCOA 1" >> $config_h | |
886 | echo "CONFIG_COCOA=yes" >> $config_mak | |
887 | fi | |
888 | ||
97a847bc | 889 | done # for target in $targets |
7d13299d FB |
890 | |
891 | # build tree in object directory if source path is different from current one | |
892 | if test "$source_path_used" = "yes" ; then | |
893 | DIRS="tests" | |
894 | FILES="Makefile tests/Makefile" | |
895 | for dir in $DIRS ; do | |
896 | mkdir -p $dir | |
897 | done | |
ec530c81 | 898 | # remove the link and recreate it, as not all "ln -sf" overwrite the link |
7d13299d | 899 | for f in $FILES ; do |
ec530c81 FB |
900 | rm -f $f |
901 | ln -s $source_path/$f $f | |
7d13299d FB |
902 | done |
903 | fi | |
7d13299d | 904 | |
97a847bc | 905 | rm -f $TMPO $TMPC $TMPE $TMPS |