Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 701688 | Differences between
and this patch

Collapse All | Expand All

(-)dosbox-0.74_p20160629/configure.ac.orig (-21 / +6 lines)
Lines 209-241 Link Here
209
AH_TEMPLATE(C_DEBUG,[Define to 1 to enable internal debugger, requires libcurses])
209
AH_TEMPLATE(C_DEBUG,[Define to 1 to enable internal debugger, requires libcurses])
210
AH_TEMPLATE(C_HEAVY_DEBUG,[Define to 1 to enable heavy debugging, also have to enable C_DEBUG])
210
AH_TEMPLATE(C_HEAVY_DEBUG,[Define to 1 to enable heavy debugging, also have to enable C_DEBUG])
211
AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[Enable debug mode]),[
211
AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[Enable debug mode]),[
212
   AC_CHECK_HEADER(curses.h,have_curses_h=yes,)
213
   AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , )
214
   AC_CHECK_LIB(ncurses, initscr, have_ncurses_lib=yes, , )
215
   AC_CHECK_LIB(pdcurses, initscr, have_pdcurses_lib=yes, , )
216
217
   if test x$enable_debug = xno; then
212
   if test x$enable_debug = xno; then
218
     AC_MSG_RESULT([Debugger not enabled])
213
     AC_MSG_RESULT([Debugger not enabled])
219
   elif test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then
214
   else
220
     LIBS="$LIBS -lcurses"
215
     PKG_CHECK_MODULES(NCURSES,[ncurses], [], [
221
     AC_DEFINE(C_DEBUG,1)
216
       AC_MSG_ERROR([Can't find curses, which is required for debug mode])
222
     if test x$enable_debug = xheavy ; then 
217
     ])
223
       AC_DEFINE(C_HEAVY_DEBUG,1)
218
     LIBS="$LIBS $NCURSES_LIBS"
224
     fi
219
     CFLAGS="$CFLAGS $NCURSES_CFLAGS"
225
   elif test x$have_ncurses_lib = xyes -a x$have_curses_h = xyes ; then
226
     LIBS="$LIBS -lncurses"
227
     AC_DEFINE(C_DEBUG,1)
228
     if test x$enable_debug = xheavy ; then 
229
       AC_DEFINE(C_HEAVY_DEBUG,1)
230
     fi
231
   elif test x$have_pdcurses_lib = xyes -a x$have_curses_h = xyes ; then
232
     LIBS="$LIBS -lpdcurses"
233
     AC_DEFINE(C_DEBUG,1)
220
     AC_DEFINE(C_DEBUG,1)
234
     if test x$enable_debug = xheavy ; then 
221
     if test x$enable_debug = xheavy ; then 
235
       AC_DEFINE(C_HEAVY_DEBUG,1)
222
       AC_DEFINE(C_HEAVY_DEBUG,1)
236
     fi
223
     fi
237
   else 
238
     AC_MSG_ERROR([Can't find curses, which is required for debug mode])
239
   fi
224
   fi
240
],)
225
],)
241
226

Return to bug 701688