[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.63,1.64

Jeremy T. Bouse undrgrid at users.sourceforge.net
Fri Mar 14 17:26:09 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv29980

Modified Files:
	configure.in 
Log Message:
Spent the day working on backwards compatability using getaddrinfo()
Moved getaddrinfo.? and gethostbyname.? from lib/ to plugins/ due to 
problems with compiling into the libnagiosplug.a as it required linking
against socket libraries which are unneeded except for network based
plugins.
This code should hopefully happily work for all systems and has been tested
prior to commit on Debian GNU/Linux, SPARC Solaris 7 and SPARC Solaris 9.


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -r1.63 -r1.64
*** configure.in	13 Mar 2003 22:20:28 -0000	1.63
--- configure.in	15 Mar 2003 01:25:34 -0000	1.64
***************
*** 387,391 ****
                  AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo])
          fi
!         LIBOBJS="$LIBOBJS getaddrinfo.o"
  fi
  
--- 387,391 ----
                  AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo])
          fi
! 	EXTRA_NETOBJS="$EXTRA_NETOBJS getaddrinfo.o"
  fi
  
***************
*** 415,419 ****
                         [AC_MSG_ERROR([cannot find gethostbyname])])
      fi
!     LIBOBJS="$LIBOBJS gethostbyname.o"
  
  fi
--- 415,420 ----
                         [AC_MSG_ERROR([cannot find gethostbyname])])
      fi
!     EXTRA_NETOBJS="$EXTRA_NETOBJS gethostbyname.o"
!     AC_DEFINE(EMULATE_GETADDRINFO,1,[Define if emulating getaddrinfo])
  
  fi
***************
*** 1452,1456 ****
  
  AC_SUBST(EXTRAS)
! AC_SUBST(LIBOBJS)
  AC_SUBST(DEPLIBS)
  
--- 1453,1457 ----
  
  AC_SUBST(EXTRAS)
! AC_SUBST(EXTRA_NETOBJS)
  AC_SUBST(DEPLIBS)
  





More information about the Commits mailing list