From e6b8b4ba8881dbb985f22bd349577c5658ff9936 Mon Sep 17 00:00:00 2001 From: pgen Date: Wed, 31 Jan 2018 23:04:45 +0100 Subject: Use isgraph if it is available and an alternative otherwise --- configure | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'configure') 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 || -- cgit v1.2.3