Code

a final change to hardcode the path for where plugins are installed.
authorM. Sean Finney <seanius@users.sourceforge.net>
Sat, 24 Sep 2005 20:01:44 +0000 (20:01 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Sat, 24 Sep 2005 20:01:44 +0000 (20:01 +0000)
it's a very, very ugly hack... if anyone can think of a better way
to do it, i'm all ears.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1240 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index d621ad685346309fa1a1566e12fca98604386982..cbc2f3c4e894d18c6dca307da1f2f9f61f61f918 100644 (file)
@@ -601,7 +601,23 @@ AC_MSG_CHECKING(for ps syntax)
 
 dnl Now using the pst3/kmem hack for solaris systems to avoid truncation
 if test "$ac_cv_uname_s" = "SunOS"; then
-       ac_cv_ps_command="pst3"
+       #
+       # this is a very, very ugly hack, to hardcode the location for plugins
+       #
+       if test "$libexecdir" = '${exec_prefix}/libexec'; then
+               if test "$exec_prefix" = "NONE"; then
+                       if test "$prefix" = "NONE"; then
+                               pst3="$ac_default_prefix/libexec/pst3"
+                       else
+                               pst3="$prefix/libexec/pst3"
+                       fi
+               else
+                       pst3="$exec_prefix/libexec/pst3"
+               fi
+       else
+               pst3="$libexecdir/pst3"
+       fi
+       ac_cv_ps_command="$pst3"
        ac_cv_ps_format="%s %d %d %d %d %f %s %n"
        ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
        ac_cv_ps_cols=8