Mercurial > hg > octave-nkf > gnulib-hg
changeset 3632:d74e1d1c9b46
(UTILS_FUNC_MKSTEMP): Don't bother with a temporary
directory. Use "conftestXXXXXX" as the template.
Suggestion from Paul Eggert.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 19 Nov 2001 10:00:00 +0000 |
parents | c9ce5d7ba432 |
children | d51ae10f9e1a |
files | m4/mkstemp.m4 |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/mkstemp.m4 +++ b/m4/mkstemp.m4 @@ -13,11 +13,6 @@ AC_CACHE_CHECK([for mkstemp limitations], utils_cv_func_mkstemp_limitations, [ - utils_tmpdir_mkstemp=mkst-$$$$ - # Arrange for deletion-upon-exception of this temporary directory. - ac_clean_files="$ac_clean_files $utils_tmpdir_mkstemp" - mkdir $utils_tmpdir_mkstemp - AC_TRY_RUN([ # include <stdlib.h> int main () @@ -25,7 +20,7 @@ int i; for (i = 0; i < 30; i++) { - char template[] = "$utils_tmpdir_mkstemp/aXXXXXX"; + char template[] = "conftestXXXXXX"; int fd = mkstemp (template); if (fd == -1) exit (1); @@ -38,8 +33,6 @@ utils_cv_func_mkstemp_limitations=yes, utils_cv_func_mkstemp_limitations=yes ) - - rm -rf $utils_tmpdir_mkstemp ] ) fi