Link Here
|
95 |
|
95 |
|
96 |
AC_SUBST(CURSES_LIBS) |
96 |
AC_SUBST(CURSES_LIBS) |
97 |
AC_SUBST(CURSES_INCLUDEDIR) |
97 |
AC_SUBST(CURSES_INCLUDEDIR) |
|
|
98 |
AC_SUBST(NCURSES_LIBS) |
98 |
|
99 |
|
99 |
AC_ARG_WITH(sco, |
100 |
AC_ARG_WITH(sco, |
100 |
[ --with-sco Use this to turn on SCO-specific code],[ |
101 |
[ --with-sco Use this to turn on SCO-specific code],[ |
Link Here
|
131 |
if test x$withval = xno ; then |
132 |
if test x$withval = xno ; then |
132 |
search_ncurses=false |
133 |
search_ncurses=false |
133 |
elif test x$withval != xyes ; then |
134 |
elif test x$withval != xyes ; then |
134 |
AC_NCURSES($withval/include, ncurses.h, -L$withval/lib -lncurses, -I$withval/include, "ncurses on $withval/include") |
135 |
NCURSES_LIBS="`$PKG_CONFIG --libs-only-l ncursesw`" |
|
|
136 |
AC_NCURSES($withval/include, ncurses.h, -L$withval/lib "$NCURSES_LIBS", -I$withval/include, "ncurses on $withval/include") |
135 |
fi |
137 |
fi |
136 |
) |
138 |
) |
137 |
|
139 |
|
Link Here
|
210 |
AC_MSG_RESULT(Found ncurses on $1/$2) |
212 |
AC_MSG_RESULT(Found ncurses on $1/$2) |
211 |
|
213 |
|
212 |
CURSES_LIBS="$3" |
214 |
CURSES_LIBS="$3" |
213 |
AC_CHECK_LIB(ncurses, initscr, [ |
215 |
AC_CHECK_LIB(ncursesw, initscr, [ |
214 |
true; |
216 |
true; |
215 |
], [ |
217 |
], [ |
216 |
CHECKLIBS=`echo "$3"|sed 's/-lncurses/-lcurses/g'` |
218 |
CHECKLIBS=`echo "$3"|sed 's/-lncursesw/-lcurses/g'` |
217 |
AC_CHECK_LIB(curses, initscr, [ |
219 |
AC_CHECK_LIB(curses, initscr, [ |
218 |
CURSES_LIBS="$CHECKLIBS" |
220 |
CURSES_LIBS="$CHECKLIBS" |
219 |
],, $CHECKLIBS) |
221 |
],, $CHECKLIBS) |
Link Here
|
230 |
]) |
232 |
]) |
231 |
|
233 |
|
232 |
AC_DEFUN([AC_SEARCH_NCURSES], [ |
234 |
AC_DEFUN([AC_SEARCH_NCURSES], [ |
|
|
235 |
AC_SUBST(NCURSES_LIBS) |
236 |
AC_SUBST(NCURSES_INCLUDES) |
237 |
NCURSES_LIBS=`$PKG_CONFIG --libs-only-l ncursesw` |
238 |
NCURSES_INCLUDES=`$PKG_CONFIG --cflags-only-I ncursesw` |
233 |
AC_CHECKING("location of ncurses.h file") |
239 |
AC_CHECKING("location of ncurses.h file") |
234 |
|
240 |
|
|
|
241 |
AC_NCURSES($NCURSES_INCLUDES, ncurses.h, $NCURSES_LIBS,, |
242 |
[ncurses in $NCURSES_INCLUDES]) |
235 |
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, |
243 |
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, |
236 |
[ncurses in /usr/include]) |
244 |
[ncurses in /usr/include]) |
237 |
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, |
245 |
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, |