]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Clarify meaning, removing double negative (stupid!)
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 28 Feb 2011 11:07:52 +0000 (11:07 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 28 Feb 2011 11:07:52 +0000 (11:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@309034 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure
configure.ac

index 4e928057f1f472bc45b27311f736c3506f0f6214..aa7d3ffcf896ec31dfc4ea4922e7ee6f31900092 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 304465 .
+# From configure.ac Revision: 309033 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.65 for asterisk 1.6.2.
 #
@@ -7803,9 +7803,9 @@ __EOL__
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
 $as_echo "$ac_cv_path_BISON2" >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex that does not ignore fwrite return value" >&5
-$as_echo_n "checking for flex that does not ignore fwrite return value... " >&6; }
-if test "${ac_cv_path_FLEX+set}" = set; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex that ignores fwrite return value" >&5
+$as_echo_n "checking for flex that ignores fwrite return value... " >&6; }
+if test "${ac_cv_FLEX_WORKAROUND+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
 
@@ -7824,24 +7824,31 @@ else
                  (umask 077 && mkdir "$tmp")
                } || exit $?
                cat >$tmp/test.fl <<__EOL__
+%{
 #include <unistd.h>
 #include <stdio.h>
+static void yyunput (int c,char *buf_ptr  ) __attribute__((unused));
+static int input(void) __attribute__((unused));
+%}
+
 %%
-         username    printf( "%s", getlogin() );
+username    printf( "%s", getlogin() );
 __EOL__
                ${FLEX} -o ${tmp}/test.c ${tmp}/test.fl
-               ${CC} -o ${tmp}/test.o ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
-               if test -e "${tmp}/test.o"; then :; else
-                       need_flex_fwrite_workaround=1
+               ${CC} -o ${tmp}/test.o -c ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
+               if test -e "${tmp}/test.o"; then
+                       ac_cv_FLEX_WORKAROUND=no
+               else
+                       ac_cv_FLEX_WORKAROUND=yes
                fi
                rm -rf ${tmp}
        fi
 
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FLEX" >&5
-$as_echo "$ac_cv_path_FLEX" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_FLEX_WORKAROUND" >&5
+$as_echo "$ac_cv_FLEX_WORKAROUND" >&6; }
 
-if test "x${need_flex_fwrite_workaround}" = "x1"; then
+if test "x${ac_cv_FLEX_WORKAROUND}" = "xyes"; then
 
 $as_echo "#define NEED_FLEX_FWRITE_WORKAROUND 1" >>confdefs.h
 
index a88b60911b2c5be961617b29a41a56d9f44f6ec6..9ff9512b72b608bf6553c378ae2403b5e4d002be 100644 (file)
@@ -245,7 +245,7 @@ __EOL__
                rm -rf ${tmp}
        fi
        ])
-AC_CACHE_CHECK([for flex that does not ignore fwrite return value], [ac_cv_path_FLEX], [
+AC_CACHE_CHECK([for flex that ignores fwrite return value], [ac_cv_FLEX_WORKAROUND], [
        if test "x$FLEX" != "x:" ; then
                # Create a temporary directory $tmp in $TMPDIR (default /tmp).
                # Use mktemp if possible; otherwise fall back on mkdir,
@@ -261,21 +261,28 @@ AC_CACHE_CHECK([for flex that does not ignore fwrite return value], [ac_cv_path_
                  (umask 077 && mkdir "$tmp")
                } || exit $?
                cat >$tmp/test.fl <<__EOL__
+%{
 #include <unistd.h>
 #include <stdio.h>
+static void yyunput (int c,char *buf_ptr  ) __attribute__((unused));
+static int input(void) __attribute__((unused));
+%}
+
 %%
-         username    printf( "%s", getlogin() );
+username    printf( "%s", getlogin() );
 __EOL__
                ${FLEX} -o ${tmp}/test.c ${tmp}/test.fl
-               ${CC} -o ${tmp}/test.o ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
-               if test -e "${tmp}/test.o"; then :; else
-                       need_flex_fwrite_workaround=1
+               ${CC} -o ${tmp}/test.o -c ${tmp}/test.c -Wall -Werror >/dev/null 2>&1
+               if test -e "${tmp}/test.o"; then
+                       ac_cv_FLEX_WORKAROUND=no
+               else
+                       ac_cv_FLEX_WORKAROUND=yes
                fi
                rm -rf ${tmp}
        fi
        ])
 
-if test "x${need_flex_fwrite_workaround}" = "x1"; then
+if test "x${ac_cv_FLEX_WORKAROUND}" = "xyes"; then
        AC_DEFINE([NEED_FLEX_FWRITE_WORKAROUND], 1, [Define to 1 if your system has a version of flex that does not check the return value of fwrite.])
 fi