Skip to content
Snippets Groups Projects
Commit cfa31e2f authored by Danny Auble's avatar Danny Auble
Browse files

Added x_ac_ncurses.m4 to tell whether curses is on the machine or not.

parent bbe63594
No related branches found
No related tags found
No related merge requests found
##*****************************************************************************
## $Id$
##*****************************************************************************
# AUTHOR:
# Danny Auble <da@llnl.gov>
#
# SYNOPSIS:
# X_AC_NCURSES
#
# DESCRIPTION:
# Test for NCURSES or CURSES. If found define HAVE_BGL
##*****************************************************************************
AC_DEFUN([X_AC_NCURSES],
[
AC_SUBST(NCURSES)
ncurses_dir=/usr/lib
# Search for "libncurses.a" in the directory
if test -z "$have_ncurses_ar" -a -f "$ncurses_dir/libncurses.a" ; then
have_ncurses_ar=yes
NCURSES="ncurses"
fi
if test -z "$have_ncurses_ar" -a -f "$ncurses_dir/libcurses.a" ; then
NCURSES="curses"
fi
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment