diff options
| author | Noah Misch | 2014-06-14 13:41:13 +0000 |
|---|---|---|
| committer | Noah Misch | 2014-06-14 13:41:16 +0000 |
| commit | 598efaa37f4e223491cf326f2ab44414a934c014 (patch) | |
| tree | 18eae1f5286ab8168dc7d378829ff3b7232406f4 /configure | |
| parent | cc3e1553fa6786b3a8c673fc9d8ce0a258ba8809 (diff) | |
Add mkdtemp() to libpgport.
This function is pervasive on free software operating systems; import
NetBSD's implementation. Back-patch to 8.4, like the commit that will
harness it.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure index ed1ff0acb98..f8232db05b1 100755 --- a/configure +++ b/configure @@ -11650,6 +11650,19 @@ esac fi +ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" +if test "x$ac_cv_func_mkdtemp" = xyes; then : + $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" mkdtemp.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" + ;; +esac + +fi + ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" if test "x$ac_cv_func_random" = xyes; then : $as_echo "#define HAVE_RANDOM 1" >>confdefs.h |
