Revision 732d9245 configure

View differences:

configure
59 59
a52="yes"
60 60
a52bin="no"
61 61
win32="no"
62
mingw32="no"
62 63
cygwin="no"
63 64
lshared="no"
64 65
extralibs="-lm"
......
148 149
;;
149 150
esac
150 151
;;
152
MINGW32*)
153
v4l="no"
154
audio_oss="no"
155
ffserver="no"
156
network="no"
157
mingw32="yes"
158
;;
151 159
CYGWIN*)
152 160
v4l="no"
153 161
audio_oss="yes"
......
272 280
  ;;
273 281
  --enable-win32) win32="yes"
274 282
  ;;
283
  --enable-mingw32) mingw32="yes"
284
  ;;
275 285
  --enable-shared) lshared="yes"
276 286
  ;;
277 287
  --disable-mpegaudio-hp) mpegaudio_hp="no"
......
343 353
    network="no"
344 354
fi
345 355

  
356
if test "$mingw32" = "yes" ; then
357
    cross_prefix=""
358
    v4l="no"
359
    audio_oss="no"
360
    network="no"
361
fi
362

  
346 363
cc="${cross_prefix}${cc}"
347 364
ar="${cross_prefix}${ar}"
348 365
ranlib="${cross_prefix}${ranlib}"
......
465 482
echo "  --enable-mp3lame         enable mp3 encoding via libmp3lame [default=no]"
466 483
echo "  --enable-vorbis          enable vorbis support via libvorbisenc [default=no]"
467 484
echo "  --enable-win32           enable win32 cross compile"
485
echo "  --enable-mingw32         enable mingw32 native windows compile"
468 486
echo "  --disable-a52            disable GPL'ed A52 support [default=no]"
469 487
echo "  --enable-a52bin          open liba52.so.0 at runtime [default=no]"
470 488
echo "  --enable-shared          build shared libraries [default=no]"
......
673 691
  echo "CONFIG_WIN32=yes" >> config.mak
674 692
fi
675 693

  
694
if test "$mingw32" = "yes" ; then
695
  echo "#define CONFIG_WIN32 1" >> $TMPH
696
  echo "CONFIG_WIN32=yes" >> config.mak
697
  echo "#define __MINGW32__ 1" >> $TMPH
698
  echo "__MINGW32__=1" >> config.mak
699
fi
700

  
676 701
if test "$cygwin" = "yes" ; then
677 702
  # setup correct exesuffix
678 703
  echo "CONFIG_WIN32=yes" >> config.mak

Also available in: Unified diff