From 4cc63c814237feaed9590585f1bbdf2aca214c0b Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 17 Dec 2012 06:17:34 -0500 Subject: [PATCH] Auto-commit of generated files. --- autogen/Makefile.in | 1 + autogen/config.in | 3 +++ autogen/configure | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) diff --git a/autogen/Makefile.in b/autogen/Makefile.in index fdac2e11ddc..8c93ab869a0 100644 --- a/autogen/Makefile.in +++ b/autogen/Makefile.in @@ -543,6 +543,7 @@ LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@ LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@ LD_SWITCH_X_SITE = @LD_SWITCH_X_SITE@ LD_SWITCH_X_SITE_RPATH = @LD_SWITCH_X_SITE_RPATH@ +LIBACL_LIBS = @LIBACL_LIBS@ LIBGIF = @LIBGIF@ LIBGNUTLS_CFLAGS = @LIBGNUTLS_CFLAGS@ LIBGNUTLS_LIBS = @LIBGNUTLS_LIBS@ diff --git a/autogen/config.in b/autogen/config.in index f443933bbd9..b05dbbdc5ba 100644 --- a/autogen/config.in +++ b/autogen/config.in @@ -716,6 +716,9 @@ along with GNU Emacs. If not, see . */ /* Define to 1 if you have the header file. */ #undef HAVE_PNG_H +/* Define to 1 if using POSIX ACL support. */ +#undef HAVE_POSIX_ACL + /* Define to 1 if you have the `posix_memalign' function. */ #undef HAVE_POSIX_MEMALIGN diff --git a/autogen/configure b/autogen/configure index c53e3bdbf03..ab58e8d1727 100755 --- a/autogen/configure +++ b/autogen/configure @@ -1201,6 +1201,7 @@ FONTCONFIG_LIBS FONTCONFIG_CFLAGS LIBXMU LIBXTR6 +LIBACL_LIBS LIBGNUTLS_LIBS LIBGNUTLS_CFLAGS LIBSELINUX_LIBS @@ -1395,6 +1396,7 @@ with_dbus with_gconf with_gsettings with_selinux +with_acl with_gnutls with_inotify with_makeinfo @@ -2118,6 +2120,7 @@ Optional Packages: --without-gconf don't compile with GConf support --without-gsettings don't compile with GSettings support --without-selinux don't compile with SELinux support + --without-acl don't compile with ACL support --without-gnutls don't use -lgnutls for SSL/TLS support --without-inotify don't compile with inotify (file-watch) support --without-makeinfo don't require makeinfo for building manuals @@ -4174,6 +4177,14 @@ else fi +# Check whether --with-acl was given. +if test "${with_acl+set}" = set; then : + withval=$with_acl; +else + with_acl=$with_features +fi + + # Check whether --with-gnutls was given. if test "${with_gnutls+set}" = set; then : withval=$with_gnutls; @@ -11489,6 +11500,73 @@ $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h fi +HAVE_POSIX_ACL=no +LIBACL_LIBS= +if test "${with_acl}" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5 +$as_echo_n "checking for acl_set_file in -lacl... " >&6; } +if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lacl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char acl_set_file (); +int +main () +{ +return acl_set_file (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_acl_acl_set_file=yes +else + ac_cv_lib_acl_acl_set_file=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5 +$as_echo "$ac_cv_lib_acl_acl_set_file" >&6; } +if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then : + HAVE_POSIX_ACL=yes +else + HAVE_POSIX_ACL=no +fi + + if test "$HAVE_POSIX_ACL" = yes; then + +$as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h + + LIBACL_LIBS=-lacl + else + ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file" +if test "x$ac_cv_func_acl_set_file" = x""yes; then : + HAVE_POSIX_ACL=yes +else + HAVE_POSIX_ACL=no +fi + + if test "$HAVE_POSIX_ACL" = yes; then + +$as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h + + fi + fi +fi + + HAVE_XAW3D=no LUCID_LIBW= if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then -- 2.11.4.GIT