aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-04-13 06:33:12 +0000
committerDaniel Brahneborg <basic@chello.se>2002-04-13 06:33:12 +0000
commit13a523929a719c0b55702c964b1f1c0bbb2c9967 (patch)
treeaddb06e8f6787fdbfb3d6f8fa080db7238ca9f8b /configure.in
parentb41927c8dbfee8882f9d6e87ce26467dfee5321b (diff)
downloadplptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.tar.gz
plptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.tar.bz2
plptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.zip
Add newt test
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 35e600e..86d4740 100644
--- a/configure.in
+++ b/configure.in
@@ -94,6 +94,26 @@ fi
LIBHISTORY=${ac_cv_libhistory}
AC_SUBST(LIBHISTORY)
+ac_enable_newt=yes
+ac_cv_libnewt=
+AC_ARG_ENABLE(newt,
+ [ --disable-newt disable libnewt support [no]],
+ if test "$enableval" = "no" ; then
+ AC_MSG_RESULT([support for libnewt disabled])
+ ac_enable_newt=no
+ fi
+)
+if test "x$ac_enable_newt" = "xyes" ; then
+ AC_CHECK_LIB(newt, newtInit,
+ [
+ AC_DEFINE_UNQUOTED(HAVE_LIBNEWT,1,
+ [Define this, if you have libnewt])
+ ac_cv_libnewt=-lnewt
+ ])
+fi
+LIBNEWT=${ac_cv_libnewt}
+AC_SUBST(LIBNEWT)
+
dnl these three are for solaris
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, gethostbyname)