Просмотр исходного кода

Now compiles on HP-UX

Added necessary changes to configure.in and config.h to support compiling
on HP-UX.
Eric Stanley 12 лет назад
Родитель
Сommit
1243e3e466
4 измененных файлов с 8 добавлено и 3 удалено
  1. 1 0
      Changelog
  2. 3 1
      configure
  3. 3 1
      configure.in
  4. 1 1
      include/common.h

+ 1 - 0
Changelog

@@ -4,6 +4,7 @@ NRPE Changelog
 
 2.15 - xx/xx/xxxx
 -----------------
+- Now compiles on HP-UX (Grant Byers)
 - Added support for IPv6 (Leo Baltus, Eric Stanley)
 
 2.14 - 12/21/2012

+ 3 - 1
configure

@@ -6707,8 +6707,10 @@ echo $ECHO_N "checking for SSL libraries... $ECHO_C" >&6
 		found_ssl=no
 		for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib  /usr/freeware/lib/openssl /usr/sfw/lib /opt/freeware/lib; do
 			ssllibdir="$dir"
-			if test "`uname -s`" == "Darwin" ; then
+			if test "`uname -s`" = "Darwin" ; then
 				soext="dylib"
+			elif test "`uname -s`" = "HP-UX" ; then
+				soext="sl"
 			else
 				soext="so"
 			fi

+ 3 - 1
configure.in

@@ -307,8 +307,10 @@ if test x$check_for_ssl = xyes; then
 		found_ssl=no
 		for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib  /usr/freeware/lib/openssl /usr/sfw/lib /opt/freeware/lib; do
 			ssllibdir="$dir"
-			if test "`uname -s`" == "Darwin" ; then
+			if test "`uname -s`" = "Darwin" ; then
 				soext="dylib"
+			elif test "`uname -s`" = "HP-UX" ; then
+				soext="sl"
 			else
 				soext="so"
 			fi

+ 1 - 1
include/common.h

@@ -71,7 +71,7 @@ typedef struct packet_struct{
         }packet;
 
 /**************** OPERATING SYSTEM SPECIFIC DEFINITIONS **********/
-#ifdef __sun
+#if defined(__sun) || defined(__hpux)
 
 #  ifndef LOG_AUTHPRIV
 #    define LOG_AUTHPRIV LOG_AUTH