diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e96a0721d..f01c0c642 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.93 2002/11/22 21:29:03 tim Exp $ | 1 | # $Id: configure.ac,v 1.94 2003/01/07 04:18:33 djm Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -680,6 +680,32 @@ int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | |||
680 | ) | 680 | ) |
681 | fi | 681 | fi |
682 | 682 | ||
683 | dnl see whether mkstemp() requires XXXXXX | ||
684 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
685 | AC_MSG_CHECKING([for (overly) strict mkstemp]) | ||
686 | AC_TRY_RUN( | ||
687 | [ | ||
688 | #include <stdlib.h> | ||
689 | main() { char template[]="conftest.mkstemp-test"; | ||
690 | if (mkstemp(template) == -1) | ||
691 | exit(1); | ||
692 | unlink(template); exit(0); | ||
693 | } | ||
694 | ], | ||
695 | [ | ||
696 | AC_MSG_RESULT(no) | ||
697 | ], | ||
698 | [ | ||
699 | AC_MSG_RESULT(yes) | ||
700 | AC_DEFINE(HAVE_STRICT_MKSTEMP) | ||
701 | ], | ||
702 | [ | ||
703 | AC_MSG_RESULT(yes) | ||
704 | AC_DEFINE(HAVE_STRICT_MKSTEMP) | ||
705 | ] | ||
706 | ) | ||
707 | fi | ||
708 | |||
683 | AC_FUNC_GETPGRP | 709 | AC_FUNC_GETPGRP |
684 | 710 | ||
685 | # Check for PAM libs | 711 | # Check for PAM libs |