]> git.saurik.com Git - cycript.git/blobdiff - configure
Stop using non-portable (GNU) Makefile features.
[cycript.git] / configure
index c8099d6c1ec87aa9431c01861198a05563b87f45..cf19be93e1bdd5e5e14586cf98964287ea50e214 100755 (executable)
--- a/configure
+++ b/configure
@@ -665,6 +665,7 @@ CY_EXECUTE
 WEBKIT_LIBS
 WEBKIT_CFLAGS
 CY_ARCH
+CY_FILTERS
 GNUTAR
 GPERF
 FLEX
 fi
 
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
+$as_echo_n "checking bison for %code{}... " >&6; }
+echo '%code{}%%_:' >conftest.y
+if $BISON conftest.y -o/dev/null 2>/dev/null; then
+
+  for element in Bison24; do
+    haveit=
+    for x in $CY_FILTERS; do
+
+  acl_save_prefix="$prefix"
+  prefix="$acl_final_prefix"
+  acl_save_exec_prefix="$exec_prefix"
+  exec_prefix="$acl_final_exec_prefix"
+  eval x=\"$x\"
+  exec_prefix="$acl_save_exec_prefix"
+  prefix="$acl_save_prefix"
+
+      if test "X$x" = "X$element"; then
+        haveit=yes
+        break
+      fi
+    done
+    if test -z "$haveit"; then
+      CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
+    fi
+  done
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+
+  for element in Bison23; do
+    haveit=
+    for x in $CY_FILTERS; do
+
+  acl_save_prefix="$prefix"
+  prefix="$acl_final_prefix"
+  acl_save_exec_prefix="$exec_prefix"
+  exec_prefix="$acl_final_exec_prefix"
+  eval x=\"$x\"
+  exec_prefix="$acl_save_exec_prefix"
+  prefix="$acl_save_prefix"
+
+      if test "X$x" = "X$element"; then
+        haveit=yes
+        break
+      fi
+    done
+    if test -z "$haveit"; then
+      CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
+    fi
+  done
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+rm -f conftest.y
+
+