summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-01-31 23:04:45 +0100
committerpgen <p.gen.progs@gmail.com>2018-01-31 23:04:45 +0100
commite6b8b4ba8881dbb985f22bd349577c5658ff9936 (patch)
treebc754d66cff415cfbc107b371f2a15dd820f8fb9 /configure
parent1d29b0dd699cf1d536beba922fea9864915724f2 (diff)
Use isgraph if it is available and an alternative otherwise
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 24 insertions, 2 deletions
diff --git a/configure b/configure
index 114e7a0..3499174 100755
--- a/configure
+++ b/configure
@@ -4969,8 +4969,7 @@ $as_echo "#define realloc rpl_realloc" >>confdefs.h
fi
-for ac_func in mblen memset nl_langinfo pathconf regcomp \
- setlocale strchr strrchr strspn
+for ac_func in mblen memset nl_langinfo pathconf regcomp setlocale
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -4982,6 +4981,29 @@ _ACEOF
fi
done
+for ac_func in strchr strrchr strspn
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_func in isgraph
+do :
+ ac_fn_c_check_func "$LINENO" "isgraph" "ac_cv_func_isgraph"
+if test "x$ac_cv_func_isgraph" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_ISGRAPH 1
+_ACEOF
+
+fi
+done
+
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||