1
0
Fork 0

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:
Sjoerd van der Berg 2003-03-11 08:56:57 +00:00
parent 08706fc645
commit be88be2eaf

View file

@ -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])