add curses and png to $LIBS when selected.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@745
This commit is contained in:
parent
08706fc645
commit
be88be2eaf
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,7 @@ AC_ARG_ENABLE(debug,[ --enable-debug Enable debug mode],[
|
|||
AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , )
|
||||
|
||||
if test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then
|
||||
LIBS="$LIBS -lcurses"
|
||||
AC_DEFINE(C_DEBUG,1)
|
||||
else
|
||||
AC_MSG_WARN([Can't enable debug mode without libcurses])
|
||||
|
@ -65,6 +66,7 @@ AC_ARG_ENABLE(shots,[ --enable-shots Enable screenshot support],[
|
|||
AC_CHECK_LIB(png, png_check_sig, have_png_lib=yes, , -lz)
|
||||
|
||||
if test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then
|
||||
LIBS="$LIBS -lpng"
|
||||
AC_DEFINE(C_SSHOTS,1)
|
||||
else
|
||||
AC_MSG_WARN([Can't enable screenshots without libpng])
|
||||
|
|
Loading…
Add table
Reference in a new issue