summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2018-05-17 13:48:38 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-17 13:48:38 (GMT)
commit6627f1c1d8acc2d53a9502a096123c0163bf731a (patch) (side-by-side diff)
tree4f368be7c37b7dd685e5b6e12b88769c6c08cd8b
parent6f6211b261abdd0c342a108f8766ddc613da034a (diff)
downloadgenrc-6627f1c1d8acc2d53a9502a096123c0163bf731a.tar.gz
genrc-6627f1c1d8acc2d53a9502a096123c0163bf731a.tar.bz2
Select default PID source as suggested in the docs.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8cf75a7..5d36092 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,14 @@ GRECS_SETUP(grecs, [all-parsers])
AM_CONDITIONAL([COND_PCRE],
[test "$ac_cv_header_pcre_h" = yes && test "$ac_cv_lib_pcre_main" = yes])
+if test -f /proc/$$/cmdline; then
+ DEFAULT_PID_SOURCE='"PROC"'
+else
+ DEFAULT_PID_SOURCE='"PS"'
+fi
+AC_DEFINE_UNQUOTED(DEFAULT_PID_SOURCE,$DEFAULT_PID_SOURCE,
+ [Default PID source])
+
AC_CONFIG_FILES([Makefile
src/Makefile])

Return to:

Send suggestions and report system problems to the System administrator.