diff options
-rw-r--r-- | configure.ac | 8 |
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]) |