Imported Upstream version 2.6.1
This commit is contained in:
parent
459aaf9392
commit
a367d9bc54
178 changed files with 4651 additions and 3279 deletions
16
configure.in
16
configure.in
|
|
@ -3,7 +3,7 @@ dnl | Network UPS Tools: configure.in |
|
|||
dnl +------------------------------------------------------------------+
|
||||
|
||||
dnl NUT version number is defined here and *only* here (no more include/version)
|
||||
AC_INIT(nut, 2.6.0)
|
||||
AC_INIT(nut, 2.6.1)
|
||||
AC_CONFIG_SRCDIR(server/upsd.c)
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
echo "Network UPS Tools version ${PACKAGE_VERSION}"
|
||||
|
|
@ -108,6 +108,14 @@ then
|
|||
CFLAGS="${CFLAGS} -Wall -Wsign-compare"
|
||||
fi
|
||||
|
||||
case ${target_os} in
|
||||
hpux11* )
|
||||
dnl It seems like the thread safe string functions won't be included
|
||||
dnl on 64 bit HP-UX unless we define _REENTRANT
|
||||
CFLAGS="${CFLAGS} -D_REENTRANT"
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl optind handling:
|
||||
dnl need to check if unistd.h is enough, else try getopt.h, else need decls
|
||||
AC_CHECK_DECLS(optind, [], [
|
||||
|
|
@ -148,7 +156,6 @@ AC_CHECK_HEADERS(sys/modem.h stdarg.h varargs.h sys/termios.h sys/time.h, [], []
|
|||
|
||||
dnl ----------------------------------------------------------------------
|
||||
dnl Check for types and define possible replacements
|
||||
AX_CREATE_STDINT_H(include/nut_stdint.h)
|
||||
NUT_TYPE_SOCKLEN_T
|
||||
|
||||
dnl ----------------------------------------------------------------------
|
||||
|
|
@ -156,7 +163,7 @@ dnl check for --with-all (or --without-all, or --with-all=auto) flag
|
|||
|
||||
AC_MSG_CHECKING(for --with-all)
|
||||
AC_ARG_WITH(all,
|
||||
AS_HELP_STRING([--with-all], [enable serial, usb, snmp, hal, cgi, dev, neon, powerman]),
|
||||
AS_HELP_STRING([--with-all], [enable serial, usb, snmp, neon, powerman, cgi, dev]),
|
||||
[
|
||||
if test -n "${withval}"; then
|
||||
dnl Note: we allow "no" as a positive value, because
|
||||
|
|
@ -164,7 +171,6 @@ AC_ARG_WITH(all,
|
|||
if test -z "${with_serial}"; then with_serial="${withval}"; fi
|
||||
if test -z "${with_usb}"; then with_usb="${withval}"; fi
|
||||
if test -z "${with_snmp}"; then with_snmp="${withval}"; fi
|
||||
if test -z "${with_hal}"; then with_hal="${withval}"; fi
|
||||
if test -z "${with_neon}"; then with_neon="${withval}"; fi
|
||||
if test -z "${with_powerman}"; then with_powerman="${withval}"; fi
|
||||
if test -z "${with_cgi}"; then with_cgi="${withval}"; fi
|
||||
|
|
@ -848,12 +854,14 @@ dnl same for datadir
|
|||
conftemp="${datadir}"
|
||||
eval conftemp=\"${conftemp}\"
|
||||
eval conftemp=\"${conftemp}\"
|
||||
DATADIR=${conftemp}
|
||||
AC_DEFINE_UNQUOTED(DATADIR, "${conftemp}", [Default path for data files])
|
||||
|
||||
dnl same for bindir
|
||||
conftemp="${bindir}"
|
||||
eval conftemp=\"${conftemp}\"
|
||||
eval conftemp=\"${conftemp}\"
|
||||
BINDIR=${conftemp}
|
||||
AC_DEFINE_UNQUOTED(BINDIR, "${conftemp}", [Default path for user executables])
|
||||
|
||||
AC_SUBST(OS_NAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue