pkgsrc/cad/adms/patches/patch-aa
dmcmahill 22c15cdb54 add missing lex/yacc to USE_TOOLS and fix a stupid
configure test that forces the name of LEX and YACC
to be "flex" and "bison -y".  The old test doesn't even
allow a path name.
2007-05-12 11:33:42 +00:00

40 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.2 2007/05/12 11:33:42 dmcmahill Exp $
- don't force the use of gcc.
- avoid a check for flex/bison which fail if you have specified
the full path.
--- configure.ac.orig 2007-02-01 21:29:53.000000000 +0000
+++ configure.ac
@@ -494,7 +494,7 @@ AC_INIT([adms],[2.2.5],[r29173@users.sou
AC_CONFIG_HEADER([config.h])
# force use of gnu compiler
-CC=gcc
+#CC=gcc
# specific configuration.
AC_CONFIG_AUX_DIR([auxconf])
@@ -512,14 +512,14 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
#force use of flex/bison
-if test "x$LEX" != "xflex"; then
- AC_MSG_WARN(Program flex not found (found $LEX))
- AC_MSG_ERROR(Please install gnu flex from http://www.gnu.org/software/flex/)
-fi
-if test "x$YACC" != "xbison -y"; then
- AC_MSG_WARN(Program bison not found (found $YACC))
- AC_MSG_ERROR(Please install gnu bison from http://www.gnu.org/software/bison/)
-fi
+#if test "x$LEX" != "xflex"; then
+# AC_MSG_WARN(Program flex not found (found $LEX))
+# AC_MSG_ERROR(Please install gnu flex from http://www.gnu.org/software/flex/)
+#fi
+#if test "x$YACC" != "xbison -y"; then
+# AC_MSG_WARN(Program bison not found (found $YACC))
+# AC_MSG_ERROR(Please install gnu bison from http://www.gnu.org/software/bison/)
+#fi
#advice use of gcc
if test "x$GCC" = "xyes"; then