[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tlsdate/master] Add GNU/Hurd configure extras for -ltr



commit e69e044fe47e75e9b0793ab5f601a7f368da5733
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date:   Wed Apr 24 23:16:58 2013 -0700

    Add GNU/Hurd configure extras for -ltr
---
 configure.ac |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 182bf08..ca81844 100644
--- a/configure.ac
+++ b/configure.ac
@@ -282,6 +282,25 @@ case "$host" in
         ;;
     esac
     ;;
+  *-gnu0.*)
+    dnl This is a generic catch for GNU/Hurd variants
+    dnl This likely needs to be tuned to catch all
+    dnl clock_gettime is either part of libc or unavailable.
+    AC_CHECK_FUNC([clock_gettime], ,
+                  [AC_MSG_ERROR([Your system lacks clock_gettime])])
+    dnl If the autoconf goo picks up a compiler that runs in pre-POSIX mode,
+    dnl the fmemopen prototype is hidden causing the unit tests to segfault.
+    dnl This can happen if gcc is a symlink to gcc46 and is preferred to clang.
+    AC_CHECK_FUNC([fmemopen], ,
+                  [AC_MSG_ERROR([Missing fmemopen, unit tests are likely to segfault. Try CC=clang.])])
+    AC_ARG_WITH([unpriv-group],
+                [AS_HELP_STRING([--with-unpriv-group=<group>],
+                [Group to drop privs to @<:@default: nobody@:>@])])
+    AS_CASE([$with_unpriv_group],
+            [""|yes|no], [UNPRIV_GROUP="nobody"],
+            [*], [UNPRIV_GROUP=$with_unpriv_group])
+    AC_DEFINE_UNQUOTED([UNPRIV_GROUP], ["${UNPRIV_GROUP}"], [Unprivileged group])
+    ;;
   *-cygwin*)
     dnl This is for Cygwin
     dnl Check for clock_gettime.  Some systems put it into -lc, while



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits