Changeset 420 for trunk


Ignore:
Timestamp:
Nov 16, 2012, 9:16:03 PM (12 years ago)
Author:
katerina
Message:

Fix for ticket #324 (utmpx.h).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r415 r420  
    256256AC_CHECK_HEADER(utmpx.h, sh_utmpx="yes", sh_utmpx="no")
    257257if test "x$sh_utmpx" = "xyes"; then
    258   if cat "/usr/include/utmpx.h" 2>&5 |
    259         egrep "WTMPX_FILE" >/dev/null 2>&1; then
    260                 AC_DEFINE(HAVE_UTMPX_H)
    261                 AC_EGREP_HEADER(ut_host, utmpx.h, AC_DEFINE(HAVE_UTHOST) )
    262                 AC_EGREP_HEADER(ut_addr, utmpx.h, AC_DEFINE(HAVE_UTADDR) )
    263                 AC_EGREP_HEADER(ut_addr_v6, utmpx.h, AC_DEFINE(HAVE_UTADDR_V6) )
    264                 AC_EGREP_HEADER(ut_xtime,utmpx.h, AC_DEFINE(HAVE_UTXTIME) )
    265                 AC_EGREP_HEADER(ut_type, utmpx.h, AC_DEFINE(HAVE_UTTYPE) )
    266   else
    267                 AC_EGREP_HEADER(ut_addr, utmp.h, AC_DEFINE(HAVE_UTADDR) )
    268                 AC_EGREP_HEADER(ut_host, utmp.h, AC_DEFINE(HAVE_UTHOST) )
    269                 AC_EGREP_HEADER(ut_type, utmp.h, AC_DEFINE(HAVE_UTTYPE) )
    270   fi
     258  AC_DEFINE(HAVE_UTMPX_H)
     259  AC_EGREP_HEADER(ut_host, utmpx.h, AC_DEFINE(HAVE_UTHOST) )
     260  AC_EGREP_HEADER(ut_addr, utmpx.h, AC_DEFINE(HAVE_UTADDR) )
     261  AC_EGREP_HEADER(ut_addr_v6, utmpx.h, AC_DEFINE(HAVE_UTADDR_V6) )
     262  AC_EGREP_HEADER(ut_xtime,utmpx.h, AC_DEFINE(HAVE_UTXTIME) )
     263  AC_EGREP_HEADER(ut_type, utmpx.h, AC_DEFINE(HAVE_UTTYPE) )
    271264else
     265  AC_EGREP_HEADER(ut_addr, utmp.h, AC_DEFINE(HAVE_UTADDR) )
    272266  AC_EGREP_HEADER(ut_host, utmp.h, AC_DEFINE(HAVE_UTHOST) )
    273267  AC_EGREP_HEADER(ut_type, utmp.h, AC_DEFINE(HAVE_UTTYPE) )
  • trunk/docs/Changelog

    r419 r420  
    33          (reported by Mitch St Martin)
    44        * Fix build error with Linux audit (reported by Andy Jack)
     5        * Fix detection of utmpx.h (reported by D. Thiel)
    56
    673.0.8:
Note: See TracChangeset for help on using the changeset viewer.