Displaying 7 results from an estimated 7 matches for "ac_func_getpgrp".
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
> From: Akim Demaille <akim at epita.fr>
> Date: 17 Sep 2001 11:22:19 +0200
>
> | 2001-09-16 Tim Van Holder <tim.van.holder at pandora.be>
> | * lib/autoconf/functions.m4: (AC_FUNC_GETPGRP) Don't rely on
> | setpgrp() being present.
I looked into that problem a bit more. Several programs use
AC_FUNC_GETPGRP and GETPGRP_VOID, including Bash, Gawk, and OpenSSH,
but they use it only to decide whether they must pass an arg (either 0
or getpid()) to getpgrp, which is the only sa...
2001 Oct 24
1
Borken dirname on Solaris 2.5.1
...ot directory])
+AC_TRY_RUN(
+ [
+#include <string.h>
+#ifdef HAVE_LIBGEN_H
+#include <libgen.h>
+#endif
+int main(void){char buf[5];strcpy(buf,"/usr");return strlen(dirname(buf))==0;}
+ ],
+ [AC_MSG_RESULT(yes)],
+ [
+ AC_MSG_RESULT(no)
+ AC_DEFINE(BROKEN_DIRNAME)
+ ]
+)
+
AC_FUNC_GETPGRP
# Check for PAM libs
Index: openbsd-compat/dirname.c
===================================================================
RCS file: /cvsroot/upstream/openssh/openbsd-compat/dirname.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dirname.c
--- openbsd-compat/dirname.c 2001/10/23 15:18:35 1.1.1.1...
2000 Sep 05
3
[2.2.0p1] patch: generic detection of correct getpgrp() invocation
...was covered, but SunOS wasn't. This
provides a generic solution through autoconf.
Charles
========================================================================
--- configure.in.orig-2.2.0p1 Wed Aug 30 18:20:05 2000
+++ configure.in Tue Sep 5 10:48:20 2000
@@ -284,6 +284,8 @@
)
fi
+AC_FUNC_GETPGRP
+
PAM_MSG="no"
AC_ARG_WITH(pam,
[ --without-pam Disable PAM support ],
--- config.h.in.orig-2.2.0p1 Fri Sep 1 19:08:44 2000
+++ config.h.in Tue Sep 5 11:01:57 2000
@@ -46,6 +46,9 @@
/* Define if your snprintf is busted */
#undef BROKEN_SNPRINTF
+/* Define if getpgrp t...
2013 Feb 15
2
getpgrp
These days, sshd.c has:
static void
grace_alarm_handler(int sig)
{
...
if (getpgid(0) == getpid()) {
signal(SIGTERM, SIG_IGN);
killpg(0, SIGTERM);
}
sigdie(...);
}
however (really) old BSDs do not have getpgid(). They do have
getpgrp(), which does what we want here. The question is what to do if
we have neither: return the pid (and thus
2001 Feb 13
1
configure.in reorder patch
...<stdio.h>
-int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
- ],
- [AC_MSG_RESULT(yes)],
- [
- AC_MSG_RESULT(no)
- AC_DEFINE(BROKEN_SNPRINTF)
- AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
- ]
- )
-fi
-
-AC_FUNC_GETPGRP
-
-AC_FUNC_STRFTIME
-
# Check for PAM libs
PAM_MSG="no"
AC_ARG_WITH(pam,
@@ -452,7 +400,7 @@
LDFLAGS="$saved_LDFLAGS"
fi
- LIBS="$saved_LIBS -lcrypto"
+ LIBS="-lcrypto $saved_LIBS"
# Basic test to check for compatible version and correct li...
2001 Mar 02
2
make 2.5.1p1 on Solaris8 (fwd)
Can a Solaris person take a look at this?
--
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's
| http://www.mindrot.org / distributed filesystem'' - Dan Geer
---------- Forwarded message ----------
Date: Wed, 28 Feb 2001 12:33:48 +0200
From: owner-ssh at clinet.fi
To: ssh at clinet.fi
Subject: make 2.5.1p1 on Solaris8
Trying to build
2000 Dec 18
2
cross compiling configure errors
Hi all!
I want to cross compile openssh to our own CPU and our embedded
Linux platform, however I get at least the following errors when running
configure:
checking whether snprintf correctly terminates long strings... configure:
error: can not run test program while cross compiling
checking whether getpgrp takes no argument... configure: error: cannot check
getpgrp if cross compiling
checking