From cfa31e2f7948da574f4556edb04f32121bee0236 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Thu, 7 Oct 2004 23:21:39 +0000
Subject: [PATCH] Added x_ac_ncurses.m4 to tell whether curses is on the
 machine or not.

---
 auxdir/x_ac_ncurses.m4 | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 auxdir/x_ac_ncurses.m4

diff --git a/auxdir/x_ac_ncurses.m4 b/auxdir/x_ac_ncurses.m4
new file mode 100644
index 00000000000..32301c87c78
--- /dev/null
+++ b/auxdir/x_ac_ncurses.m4
@@ -0,0 +1,28 @@
+##*****************************************************************************
+## $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
+])
-- 
GitLab