From f4d14ad69c9d1d9021675a3904c7053f7605be53 Mon Sep 17 00:00:00 2001 From: David Hedbor Date: Wed, 22 Dec 1999 05:02:07 +0000 Subject: [PATCH] Catch errors in the pike version-check script to avoid potential problems --- sapi/roxen/config.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/roxen/config.m4 b/sapi/roxen/config.m4 index b2425b2156..994e96ea8f 100644 --- a/sapi/roxen/config.m4 +++ b/sapi/roxen/config.m4 @@ -16,7 +16,7 @@ AC_ARG_WITH(roxen, else AC_MSG_ERROR(Couldn't find a pike in $withval/bin/) fi - if $PIKE -e 'float v = __VERSION__ + (__BUILD__/10000.0); if(v < 0.7079) exit(1); exit(0);'; then + if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then PIKE_MODULE_DIR="`$PIKE --show-paths 2>&1| grep lib/modules | sed -e 's/.*: //'`" PIKE_INCLUDE_DIR="`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`" if test -z "$PIKE_INCLUDE_DIR" -o -z "$PIKE_MODULE_DIR"; then -- 2.40.0