r1590 - nALFS/nALFS/branches/1.2

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Wed Nov 17 20:35:38 PST 2004


Author: thomasp
Date: 2004-11-17 21:35:36 -0700 (Wed, 17 Nov 2004)
New Revision: 1590

Modified:
   nALFS/nALFS/branches/1.2/bootstrap.configure
Log:
fix check for ncurses library so if it's not found, configure will bail out with an appropriate error message. Fixes Bug 929

Modified: nALFS/nALFS/branches/1.2/bootstrap.configure
===================================================================
--- nALFS/nALFS/branches/1.2/bootstrap.configure	2004-11-18 03:41:14 UTC (rev 1589)
+++ nALFS/nALFS/branches/1.2/bootstrap.configure	2004-11-18 04:35:36 UTC (rev 1590)
@@ -20,8 +20,15 @@
 AC_CONFIG_LIBCONFIG_IN([nALFS])
 AC_STDC_HEADERS
 AC_CONFIG_HEADER([config.h])
+# Check for ncurses libs
+AC_CHECK_LIB([ncurses], [initscr], [MAIN_LIBS="${MAIN_LIBS} -lncurses"], [
+	echo "***"
+	echo "*** The ncurses library was not found."
+	echo "*** Please install the ncurses library and the rerun configure."
+	echo "***"
+	exit 1
+])
 AC_CHECK_LIB([form], [form_driver], [MAIN_LIBS="${MAIN_LIBS} -lform"])
-AC_CHECK_LIB([ncurses], [initscr], [MAIN_LIBS="${MAIN_LIBS} -lncurses"])
 AC_SUBST([MAIN_LIBS])
 AM_CONDITIONAL(STATIC_BUILD, test x${enable_static} = xyes)
 if test x${enable_static} = xyes; then




More information about the alfs-log mailing list