summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
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
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_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
586if test $ac_cv_func_mmap = yes ; then
587AC_MSG_CHECKING([for mmap anon shared])
588AC_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
596main() { char *p;
597p = (char *) mmap(NULL, 10, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0);
598if (p == (char *)-1)
599 exit(1);
600exit(0);
601}
602 ],
603 [
604 AC_MSG_RESULT(yes)
605 AC_DEFINE(HAVE_MMAP_ANON_SHARED)
606 ],
607 [ AC_MSG_RESULT(no) ]
608)
609fi
610
611dnl IRIX and Solaris 2.5.1 have dirname() in libgen 586dnl IRIX and Solaris 2.5.1 have dirname() in libgen
612AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[ 587AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[
613 AC_CHECK_LIB(gen, dirname,[ 588 AC_CHECK_LIB(gen, dirname,[