[ntp:bk-ntp-dev-send] BitKeeper diffs

Harlan Stenn stenn at whimsy.udel.edu
Sat Oct 20 22:36:09 UTC 2007


#### ChangeSet ####
2007-10-20 18:30:10-04:00, stenn at whimsy.udel.edu 
  more cleanup to ntp_lineeditlibs.m4

==== ChangeLog ====
2007-10-20 18:29:55-04:00, stenn at whimsy.udel.edu +1 -0
  more cleanup to ntp_lineeditlibs.m4

--- 1.130/ChangeLog	2007-10-20 01:30:05 -04:00
+++ 1.131/ChangeLog	2007-10-20 18:29:55 -04:00
@@ -1,3 +1,4 @@
+* more cleanup to ntp_lineeditlibs.m4.
 * Documentation updates from Dave Mills.
 * -ledit cleanup for ntpdc and ntpq.
 * Association and other cleanup from Dave Mills.

==== m4/ntp_lineeditlibs.m4 ====
2007-10-20 18:29:55-04:00, stenn at whimsy.udel.edu +46 -39
  more cleanup to ntp_lineeditlibs.m4

--- 1.2/m4/ntp_lineeditlibs.m4	2007-10-17 20:21:16 -04:00
+++ 1.3/m4/ntp_lineeditlibs.m4	2007-10-20 18:29:55 -04:00
@@ -8,48 +8,55 @@ AC_DEFUN([NTP_LINEEDITLIBS], [
         [use_lineeditlibs="$withval"],
 	[use_lineeditlibs="edit,editline"])
 
-    for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
-      for term_lib in "" termcap curses ncurses; do
-        case "$term_lib" in
-         '') TRY_LIB="-l$lineedit_lib" ;;
-         *)  TRY_LIB="-l$lineedit_lib -l$term_lib" ;;
-        esac
-        LIBS="$ORIG_LIBS $TRY_LIB"
-	AC_MSG_CHECKING([for readline() with $TRY_LIB])
-        AC_TRY_LINK_FUNC([readline], [ntp_cv_lib_lineedit="$TRY_LIB"])
-        case "$ntp_cv_lib_lineedit" in
+    AC_MSG_CHECKING([line editing libraries])
+    AC_MSG_RESULT([$use_lineeditlibs])
+    case "$use_lineeditlibs" in
+     no) ntp_cv_lib_lineedit=no ;;
+     *)
+	for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
+	  for term_lib in "" termcap curses ncurses; do
+	    case "$term_lib" in
+	     '') TRY_LIB="-l$lineedit_lib" ;;
+	     *)  TRY_LIB="-l$lineedit_lib -l$term_lib" ;;
+	    esac
+	    LIBS="$ORIG_LIBS $TRY_LIB"
+	    AC_MSG_CHECKING([for readline() with $TRY_LIB])
+	    AC_TRY_LINK_FUNC([readline], [ntp_cv_lib_lineedit="$TRY_LIB"])
+	    case "$ntp_cv_lib_lineedit" in
+	     '')
+		AC_MSG_RESULT([no])
+		;;
+	     *) # Use readline()
+		AC_MSG_RESULT([yes])
+		break
+		;;
+	    esac
+	    AC_MSG_CHECKING([for el_gets() with $TRY_LIB])
+	    AC_TRY_LINK_FUNC([el_gets], [ntp_cv_lib_lineedit="$TRY_LIB"])
+	    case "$ntp_cv_lib_lineedit" in
+	     '')
+		AC_MSG_RESULT([no])
+		;;
+	     *) # Use el_gets()
+		AC_MSG_RESULT([yes])
+		break
+		;;
+	    esac
+	  done
+	  case "$ntp_cv_lib_lineedit" in
+	   '') ;;
+	   *)  break ;;
+	  esac
+	done
+	LIBS="$ORIG_LIBS"
+	case "$ntp_cv_lib_lineedit" in
 	 '')
-	    AC_MSG_RESULT([no])
+	    ntp_cv_lib_lineedit="no"
 	    ;;
-	 *) # Use readline()
-	    AC_MSG_RESULT([yes])
-	    break
+	 *) EDITLINE_LIBS="$ntp_cv_lib_lineedit"
+	    AC_SUBST(EDITLINE_LIBS)
 	    ;;
-        esac
-	AC_MSG_CHECKING([for el_gets() with $TRY_LIB])
-        AC_TRY_LINK_FUNC([el_gets], [ntp_cv_lib_lineedit="$TRY_LIB"])
-        case "$ntp_cv_lib_lineedit" in
-	 '')
-	    AC_MSG_RESULT([no])
-	    ;;
-	 *) # Use el_gets()
-	    AC_MSG_RESULT([yes])
-	    break
-	    ;;
-        esac
-      done
-      case "$ntp_cv_lib_lineedit" in
-       '') ;;
-       *)  break ;;
-      esac
-    done
-    LIBS="$ORIG_LIBS"
-    case "$ntp_cv_lib_lineedit" in
-     '')
-	ntp_cv_lib_lineedit="no"
-	;;
-     *) EDITLINE_LIBS="$ntp_cv_lib_lineedit"
-	AC_SUBST(EDITLINE_LIBS)
+	esac
 	;;
     esac
   ])


More information about the bk-ntp-dev-send mailing list