[asterisk-commits] tilghman: branch 1.6.2 r309034 - in /branches/1.6.2: configure configure.ac
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 28 05:07:54 CST 2011
Author: tilghman
Date: Mon Feb 28 05:07:52 2011
New Revision: 309034
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=309034
Log:
Clarify meaning, removing double negative (stupid!)
Modified:
branches/1.6.2/configure
branches/1.6.2/configure.ac
Modified: branches/1.6.2/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/configure.ac?view=diff&rev=309034&r1=309033&r2=309034
==============================================================================
--- branches/1.6.2/configure.ac (original)
+++ branches/1.6.2/configure.ac Mon Feb 28 05:07:52 2011
@@ -245,7 +245,7 @@
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 @@
(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
More information about the asterisk-commits
mailing list