diff --git a/lib/libICE/aclocal.m4 b/lib/libICE/aclocal.m4 index 7ce93ee2f..c3bab31f9 100644 --- a/lib/libICE/aclocal.m4 +++ b/lib/libICE/aclocal.m4 @@ -11959,6 +11959,9 @@ AC_DEFUN([XTRANS_CONNECTION_FLAGS],[ AC_DEFINE(LOCALCONN,1,[Support os-specific local connections]) fi + # Other functions Xtrans may need + AC_CHECK_FUNCS([strcasecmp strlcpy]) + ]) # XTRANS_CONNECTION_FLAGS diff --git a/lib/libICE/config.h.in b/lib/libICE/config.h.in index 6fce05898..1a7c3cfe0 100644 --- a/lib/libICE/config.h.in +++ b/lib/libICE/config.h.in @@ -36,12 +36,18 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H diff --git a/lib/libICE/configure b/lib/libICE/configure index bdfb56135..e14853b62 100644 --- a/lib/libICE/configure +++ b/lib/libICE/configure @@ -18886,6 +18886,20 @@ $as_echo "#define LOCALCONN 1" >>confdefs.h fi + # Other functions Xtrans may need + for ac_func in strcasecmp strlcpy +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 + + $as_echo "#define ICE_t 1" >>confdefs.h