diff options
| author | bwarsaw | 1999-07-12 20:35:19 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-07-12 20:35:19 +0000 |
| commit | bdf74eccadb9d540af0ecf15d524f70225368c00 (patch) | |
| tree | ca00b1ef6376f42327f0c3fab07e223995d437f5 | |
| parent | 13c499467648bc2bd24ea05ff14f5661e546d69b (diff) | |
| download | mailman-bdf74eccadb9d540af0ecf15d524f70225368c00.tar.gz mailman-bdf74eccadb9d540af0ecf15d524f70225368c00.tar.zst mailman-bdf74eccadb9d540af0ecf15d524f70225368c00.zip | |
| -rwxr-xr-x | configure | 59 | ||||
| -rw-r--r-- | configure.in | 5 |
2 files changed, 58 insertions, 6 deletions
@@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.36 +# From configure.in Revision: 1.37 # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 @@ -1821,8 +1821,61 @@ EOF # Checks for library functions. -# TBD: what to do if vsnprintf /doesn't/ exist? -#AC_CHECK_FUNCS(vsnprintf) +for ac_func in vsnprintf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:1828: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1833 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <<EOF +#define $ac_tr_func 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + trap '' 1 2 15 cat > confcache <<\EOF diff --git a/configure.in b/configure.in index 99ec75f04..cbe882a50 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl Process this file with autoconf to produce a configure script. -AC_REVISION($Revision: 1706 $) +AC_REVISION($Revision: 1726 $) AC_PREREQ(2.0) AC_INIT(src/alias-wrapper.c) @@ -387,8 +387,7 @@ AC_TYPE_UID_T AC_TYPE_GETGROUPS # Checks for library functions. -# TBD: what to do if vsnprintf /doesn't/ exist? -#AC_CHECK_FUNCS(vsnprintf) +AC_CHECK_FUNCS(vsnprintf) dnl Output everything AC_OUTPUT([misc/paths.py Mailman/Defaults.py Mailman/mm_cfg.py.dist |
