diff options
| author | Marc G. Fournier <scrappy@hub.org> | 2000-05-24 14:58:21 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 2000-05-24 14:58:21 +0000 |
| commit | 69b323f4bc16baca4f7793a2b09b43232a17031b (patch) | |
| tree | c8b2e5359a629fe030f40f6a20ca62af1d958988 /src/configure.in | |
| parent | f19ae14612b8c2750ea1a2d448fea27ab9f258fa (diff) | |
| download | postgresql-69b323f4bc16baca4f7793a2b09b43232a17031b.tar.gz | |
add a --with-setproctitle switch to configure that leaves the use of setproctitle()
disabled by default ...
Diffstat (limited to 'src/configure.in')
| -rw-r--r-- | src/configure.in | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/configure.in b/src/configure.in index 8e757e77ac..2b52602b97 100644 --- a/src/configure.in +++ b/src/configure.in @@ -362,6 +362,20 @@ AC_ARG_WITH( ) export USE_ODBC +AC_MSG_CHECKING(setproctitle) +AC_ARG_WITH( + setproctitle, + [ --with-setproctitle use setproctitle() (EXPERIMENTAL) ], + [ + case "$withval" in + y | ye | yes) USE_SETPROCTITLE=true; AC_MSG_RESULT(enabled) ;; + *) USE_SETPROCTITLE=false; AC_MSG_RESULT(disabled) ;; + esac + ], + [ USE_SETPROCTITLE=false; AC_MSG_RESULT(disabled) ] +) +export USE_SETPROCTITLE + dnl Allow for overriding the default location of the odbcinst.ini dnl file which is normally ${prefix}/share or ${prefix} if this is dnl being compiled inside the postgres distribution. @@ -779,7 +793,13 @@ AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_CHECK_FUNCS(memmove sysconf) -AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt setproctitle) +AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt) + +if test "X$USE_SETPROCTITLE" = "Xtrue" +then +AC_CHECK_FUNCS(setproctitle) +fi + AC_CHECK_FUNCS(fpclass fp_class fp_class_d class) dnl We use our snprintf.c emulation if either snprintf() or vsnprintf() dnl is missing. Yes, there are machines that have only one. |
