diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac index 0c60c5e61..1fb3056e6 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.78 2002/07/13 01:11:25 tim Exp $ | 1 | # $Id: configure.ac,v 1.79 2002/07/14 20:36:50 tim Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -583,31 +583,6 @@ AC_CHECK_FUNCS(arc4random b64_ntop bcopy bindresvport_sa \ | |||
583 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ | 583 | socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ |
584 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) | 584 | truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) |
585 | 585 | ||
586 | if test $ac_cv_func_mmap = yes ; then | ||
587 | AC_MSG_CHECKING([for mmap anon shared]) | ||
588 | AC_TRY_RUN( | ||
589 | [ | ||
590 | #include <stdio.h> | ||
591 | #include <sys/types.h> | ||
592 | #include <sys/mman.h> | ||
593 | #if !defined(MAP_ANON) && defined(MAP_ANONYMOUS) | ||
594 | #define MAP_ANON MAP_ANONYMOUS | ||
595 | #endif | ||
596 | main() { char *p; | ||
597 | p = (char *) mmap(NULL, 10, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); | ||
598 | if (p == (char *)-1) | ||
599 | exit(1); | ||
600 | exit(0); | ||
601 | } | ||
602 | ], | ||
603 | [ | ||
604 | AC_MSG_RESULT(yes) | ||
605 | AC_DEFINE(HAVE_MMAP_ANON_SHARED) | ||
606 | ], | ||
607 | [ AC_MSG_RESULT(no) ] | ||
608 | ) | ||
609 | fi | ||
610 | |||
611 | dnl IRIX and Solaris 2.5.1 have dirname() in libgen | 586 | dnl IRIX and Solaris 2.5.1 have dirname() in libgen |
612 | AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[ | 587 | AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[ |
613 | AC_CHECK_LIB(gen, dirname,[ | 588 | AC_CHECK_LIB(gen, dirname,[ |