]> diplodocus.org Git - nmh/commitdiff
Reverted commit 9caa7da143644ed93c6ba6351f48fa1327ad4392
authorDavid Levine <levinedl@acm.org>
Wed, 23 Oct 2013 03:54:08 +0000 (22:54 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 23 Oct 2013 03:54:08 +0000 (22:54 -0500)
because it didn't solve the problem on Solaris, and
apparently broke test-comp-format, though I don't see how.

configure.ac
docs/contrib/build_nmh

index f1142f92b57185c4c3ea420c5e1b7774172d0c0f..fac9b91bd590fc61cbc40834c7aad47ebd619e59 100644 (file)
@@ -235,7 +235,7 @@ AC_PATH_PROG([sendmailpath], [sendmail], [/usr/sbin/sendmail], [$pathtmp])
 dnl Cygwin FAT filesystems do not support hard links.  So default to
 dnl cp instead, even if running on an NTFS or other filesystem.
 AS_CASE(["$host_os"],
-  [cygwin*], [LN=cp],
+  [cygwin*],[LN=cp],
   [LN=ln])
 AC_SUBST([LN])
 
@@ -556,18 +556,6 @@ dnl Now put the libraries back to what it was before we
 dnl starting checking the termcap library.
 LIBS="$nmh_save_LIBS"
 
-dnl ----------------
-dnl CHECK FLEX FIXUP
-dnl ----------------
-dnl Use LFLAGS make variable setting to work around bug in flex
-dnl 2.5.36 and .37 that causes signed/unsigned mismatch,
-dnl http://sourceforge.net/p/flex/bugs/140/
-AS_IF([test "$LEX" = flex],
-      [AS_CASE([`$LEX -V`],
-               [flex\ 2.5.3@<:@67@:>@], [[LFLAGS=\
-'; printf "%s\n" '\''1,$$s/\(  \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@']])
-       AC_SUBST([LFLAGS])])
-
 dnl --------------
 dnl CHECK TYPEDEFS
 dnl --------------
index adc6e1cb185c97cf1caf7822777094845bd408f6..ef399f86be7e9ddc25480a333671fa6ddb81b72a 100755 (executable)
@@ -307,14 +307,15 @@ if [ $status -eq 0 ]; then
   fi
 fi
 
-grep Error "$logfile"
-grep warn "$logfile"
-
-if [ $status -eq 0 ]; then
-  [ $verbose -ge 1 ]  &&  echo build completed successfully
-else
+grep 'Error' "$logfile"
+#### Ignore the warning when sbr/dtimep.c is built with flex 2.5.36
+#### or 2.5.37.
+grep 'warn' "$logfile" | \
+  grep -v 'sbr/dtimep.c:.*comparison between signed and unsigned'
+if [ $status -ne 0 ]; then
   echo build failed!
   echo build log is in "$logfile"
 fi
+[ $status -eq 0  -a  $verbose -ge 1 ]  &&  echo build completed successfully
 
 exit $status