comparison configure @ 13794:fb83e23e94ce

Allow attaching gdb on crash automatically.
author reimar
date Thu, 28 Oct 2004 23:25:18 +0000
parents 03b6c4539b3c
children 08c90d8c1325
comparison
equal deleted inserted replaced
13793:631b0b664ece 13794:fb83e23e94ce
302 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable] 302 --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy() [enable]
303 --enable-big-endian Force byte order to big-endian [autodetect] 303 --enable-big-endian Force byte order to big-endian [autodetect]
304 --enable-debug[=1-3] compile debugging information into mplayer [disable] 304 --enable-debug[=1-3] compile debugging information into mplayer [disable]
305 --enable-profile compile profiling information into mplayer [disable] 305 --enable-profile compile profiling information into mplayer [disable]
306 --disable-sighandler disable sighandler for crashes [enable] 306 --disable-sighandler disable sighandler for crashes [enable]
307 --enable-crash-debug enable automatic gdb attach on crash [disable]
307 --enable-i18n _experimental_ gnu gettext() support [autodetect] 308 --enable-i18n _experimental_ gnu gettext() support [autodetect]
308 --enable-dynamic-plugins Enable support for dynamic a/v plugins [disable] 309 --enable-dynamic-plugins Enable support for dynamic a/v plugins [disable]
309 310
310 Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!" 311 Hazardous options a.k.a. "DO NOT REPORT ANY BUGS!"
311 --disable-gcc-checking disable gcc version checking [enable] 312 --disable-gcc-checking disable gcc version checking [enable]
1353 _shm=auto 1354 _shm=auto
1354 _linux_devfs=no 1355 _linux_devfs=no
1355 _i18n=auto 1356 _i18n=auto
1356 _dynamic_plugins=no 1357 _dynamic_plugins=no
1357 _setlocale=auto 1358 _setlocale=auto
1359 _crash_debug=auto
1358 _sighandler=yes 1360 _sighandler=yes
1359 _libdv=auto 1361 _libdv=auto
1360 _cdparanoia=auto 1362 _cdparanoia=auto
1361 _big_endian=auto 1363 _big_endian=auto
1362 _freetype=auto 1364 _freetype=auto
1696 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2` 1698 _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2`
1697 ;; 1699 ;;
1698 --disable-debug) 1700 --disable-debug)
1699 _debug= 1701 _debug=
1700 ;; 1702 ;;
1703 --enable-crash-debug)
1704 _crash_debug=yes
1705 ;;
1706 --disable-crash-debug)
1707 _crash_debug=no
1708 ;;
1701 --enable-sighandler) 1709 --enable-sighandler)
1702 _sighandler=yes 1710 _sighandler=yes
1703 ;; 1711 ;;
1704 --disable-sighandler) 1712 --disable-sighandler)
1705 _sighandler=no 1713 _sighandler=no
6171 elif test -z "$CFLAGS" ; then 6179 elif test -z "$CFLAGS" ; then
6172 CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" 6180 CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
6173 # always compile with '-g' if .developer: 6181 # always compile with '-g' if .developer:
6174 if test -f ".developer" ; then 6182 if test -f ".developer" ; then
6175 CFLAGS="-g $CFLAGS" 6183 CFLAGS="-g $CFLAGS"
6184 if (test "$_crash_debug" = auto) && (not mingw32) ; then
6185 _crash_debug=yes
6186 fi
6176 _stripbinaries=no 6187 _stripbinaries=no
6177 fi 6188 fi
6178 else 6189 else
6179 cat <<EOF 6190 cat <<EOF
6180 6191
6185 It is strongly recommended to let MPlayer choose the correct CFLAGS! 6196 It is strongly recommended to let MPlayer choose the correct CFLAGS!
6186 To do so, execute 'CFLAGS= ./configure <options>' 6197 To do so, execute 'CFLAGS= ./configure <options>'
6187 6198
6188 EOF 6199 EOF
6189 fi 6200 fi
6201
6202 echocheck "automatic gdb attach"
6203 if test "$_crash_debug" = yes ; then
6204 _def_crash_debug='#define CRASH_DEBUG 1'
6205 else
6206 _def_crash_debug='#undef CRASH_DEBUG'
6207 _crash_debug=no
6208 fi
6209 echores "$_crash_debug"
6210
6190 if darwin ; then 6211 if darwin ; then
6191 CFLAGS="$CFLAGS -DSYS_DARWIN" 6212 CFLAGS="$CFLAGS -DSYS_DARWIN"
6192 if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then 6213 if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then
6193 CFLAGS="$CFLAGS -no-cpp-precomp" 6214 CFLAGS="$CFLAGS -no-cpp-precomp"
6194 fi 6215 fi
6579 #define USE_SUB 1 6600 #define USE_SUB 1
6580 6601
6581 /* enable/disable SIGHANDLER */ 6602 /* enable/disable SIGHANDLER */
6582 $_def_sighandler 6603 $_def_sighandler
6583 6604
6605 /* enable/disable automatic gdb attach on crash, requires SIGHANDLER */
6606 $_def_crash_debug
6607
6584 /* Toggles debugging informations */ 6608 /* Toggles debugging informations */
6585 $_def_debug 6609 $_def_debug
6586 6610
6587 /* Indicates that Ogle's libdvdread is available for DVD playback */ 6611 /* Indicates that Ogle's libdvdread is available for DVD playback */
6588 $_def_dvdread 6612 $_def_dvdread