texinfo configure bug

Paul Vojta <[email protected]>
Newsgroups gmane.comp.tex.tetex.beta
Message-ID <[email protected]>
Thomas:

I found a bug in the texinfo configure script, causing the test for
for library with termcap variables always to fail.  Here's a patch.

--Paul Vojta

---- cut here ----
--- utils/texinfo/configure.ac.orig	2003-01-31 08:48:57.000000000 -0800
+++ utils/texinfo/configure.ac	2003-02-14 23:38:57.000000000 -0800
@@ -97,7 +97,7 @@
      LIBS="$oldLIBS -l$termlib"
    fi
    AC_TRY_LINK(, 
-#ifdef HAVE_NCURSES_TERMCAP_H
+[#ifdef HAVE_NCURSES_TERMCAP_H
 #include <ncurses/termcap.h>
 #else
 #ifdef HAVE_TERMCAP_H
@@ -116,7 +116,7 @@
 UP++
 PC++;
 return ospeed != 0;
-, ac_cv_var_ospeed=$trylib; break)
+], ac_cv_var_ospeed=$trylib; break)
 done
 LIBS=$oldLIBS
 )
--- utils/texinfo/configure.orig	2003-01-31 08:49:25.000000000 -0800
+++ utils/texinfo/configure	2003-02-14 23:39:54.000000000 -0800
@@ -6405,7 +6405,12 @@
 #endif
 #endif
 /* Make sure all variables actually exist.  AIX 4.3 has ospeed but no BC.
-   --Andreas Ley <[email protected]>
+   --Andreas Ley <[email protected]>, 24 Aug 2000.  */
+BC++;
+UP++
+PC++;
+return ospeed != 0;
+
   ;
   return 0;
 }
@@ -6422,17 +6427,11 @@
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  24 Aug 2000.  */
-BC++;
-UP++
-PC++;
-return ospeed != 0;
-
+  ac_cv_var_ospeed=$trylib; break
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-ac_cv_var_ospeed=$trylib; break
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 done
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.