3be8b35987
Adopted.
40 lines
792 B
Diff
40 lines
792 B
Diff
--- configure.ac.orig
|
|
+++ configure.ac
|
|
@@ -1316,37 +1316,6 @@
|
|
|
|
# Where to place smtpd.pid
|
|
piddir=/var/run
|
|
-AC_MSG_CHECKING([system pid directory])
|
|
-AC_RUN_IFELSE(
|
|
- [
|
|
- AC_LANG_PROGRAM([[
|
|
-#include <stdio.h>
|
|
-#include <stdlib.h>
|
|
-#ifdef HAVE_PATHS_H
|
|
-#include <paths.h>
|
|
-#endif
|
|
-#define DATA "conftest.piddir"
|
|
- ]],
|
|
- [[
|
|
-#ifdef _PATH_VARRUN
|
|
-FILE *fd;
|
|
-int rc;
|
|
-
|
|
-if ((fd = fopen(DATA,"w")) == NULL) { exit(1); }
|
|
-if ((rc = fprintf(fd ,"%s\n", _PATH_VARRUN)) < 0) { exit(2); }
|
|
-exit(0);
|
|
-#else
|
|
-exit(-1);
|
|
-#endif
|
|
- ]])
|
|
- ], [
|
|
- piddir=`cat conftest.piddir`
|
|
- AC_MSG_RESULT([$piddir from paths.h])
|
|
- ],
|
|
- [
|
|
- AC_MSG_RESULT([$piddir from default value])
|
|
- ]
|
|
-)
|
|
|
|
AC_ARG_WITH([path-pidfile],
|
|
[ --with-path-pidfile=PATH Specify path to smtpd.pid directory (default=/var/run)],
|