Changeset 68 for trunk/aclocal.m4


Ignore:
Timestamp:
Oct 30, 2006, 12:03:44 AM (18 years ago)
Author:
rainer
Message:

Update trunk to samhain 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r64 r68  
    402402x_libraries=NONE
    403403DESTDIR=
    404 SH_ENABLE_OPTS="db-reload xml-log message-queue login-watch mounts-check userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp"
     404SH_ENABLE_OPTS="db-reload xml-log message-queue login-watch process-check port-check mounts-check userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp"
    405405SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheck gpg checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file"
    406406
     
    12381238])dnl
    12391239
     1240AC_DEFUN([sh_CHECK_POSIX_ACL],
     1241[
     1242  AC_CHECK_HEADERS(sys/acl.h)
     1243  if test $ac_cv_header_sys_acl_h = yes; then
     1244
     1245        AC_CHECK_LIB([acl], [acl_get_file], sh_lacl=yes, sh_lacl=no)
     1246        if test x"$sh_lacl" = xyes; then
     1247                LIBACL=-lacl
     1248        else
     1249                LIBACL=
     1250        fi
     1251
     1252        OLDLIBS="$LIBS"
     1253        LIBS="$LIBS $LIBACL"
     1254        AC_CHECK_FUNCS([acl_free acl_get_file acl_get_fd],
     1255                       [sh_facl=yes],[sh_facl=no])
     1256        LIBS="$OLDLIBS"
     1257
     1258        if test x"$sh_facl" = xyes; then
     1259          AC_DEFINE(USE_ACL, 1, [Define if you want ACL support.])
     1260          LIBS="$LIBS $LIBACL"
     1261        fi
     1262  fi
     1263])
     1264
     1265AC_DEFUN([sh_CHECK_XATTR],
     1266[
     1267  AC_CHECK_HEADERS(attr/xattr.h)
     1268  if test $ac_cv_header_attr_xattr_h = yes; then
     1269
     1270        AC_CHECK_LIB([attr], [getxattr], sh_lattr=yes, sh_lattr=no)
     1271        if test x"$sh_lattr" = xyes; then
     1272                LIBATTR=-lattr
     1273        else
     1274                LIBATTR=
     1275        fi
     1276 
     1277        OLDLIBS="$LIBS"
     1278        LIBS="$LIBS $LIBATTR"
     1279        AC_CHECK_FUNCS([getxattr lgetxattr fgetxattr],
     1280                       [sh_fattr=yes],[sh_fattr=no])
     1281        LIBS="$OLDLIBS"
     1282
     1283        if test x"$sh_fattr" = xyes; then
     1284          AC_DEFINE(USE_XATTR, 1, [Define if you want extended attributes support.])
     1285          LIBS="$LIBS $LIBATTR"
     1286        fi
     1287  fi
     1288])
    12401289
    12411290dnl Autoconf macros for libprelude
Note: See TracChangeset for help on using the changeset viewer.