]> granicus.if.org Git - sudo/commitdiff
Add cross-compile defaults for remaining AC_TRY_RUN usage.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Aug 2010 19:32:06 +0000 (15:32 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Aug 2010 19:32:06 +0000 (15:32 -0400)
Also add back getgroups() check since AC_FUNC_GETGROUPS defaults
to "no" when cross-compiling.

aclocal.m4
configure
configure.in

index c357789e004f6f45d3fa0594d93c9aeddb69950f..118483918f3880b2cabbbe43be995d99296510f9 100644 (file)
@@ -225,7 +225,7 @@ AC_DEFUN([SUDO_FUNC_UNSETENV_VOID],
     ],
     [sudo_cv_func_unsetenv_void=no],
     [sudo_cv_func_unsetenv_void=yes],
-    [sudo_cv_func_unsetenv_void=yes])])
+    [sudo_cv_func_unsetenv_void=no])])
     if test $sudo_cv_func_unsetenv_void = yes; then
       AC_DEFINE(UNSETENV_VOID, 1,
         [Define to 1 if the `unsetenv' function returns void instead of `int'.])
@@ -271,7 +271,7 @@ main() {
   (void) fprintf(f, "%d\n", strlen(b));
   (void) fclose(f);
   exit(0);
-}], sudo_cv_uid_t_len=`cat conftestdata`, sudo_cv_uid_t_len=10)
+}], sudo_cv_uid_t_len=`cat conftestdata`, sudo_cv_uid_t_len=10, sudo_cv_uid_t_len=10)
 ])
 rm -f conftestdata
 AC_MSG_RESULT($sudo_cv_uid_t_len)
index 05964d9b62f21db9f34010f2db9d32f0d35867ab..5f53c2c69530d5ac79cf88ecf0d6925653870f0c 100755 (executable)
--- a/configure
+++ b/configure
@@ -14514,10 +14514,7 @@ if test "${sudo_cv_uid_t_len+set}" = set; then :
 else
   rm -f conftestdata
 if test "$cross_compiling" = yes; then :
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "cannot run test program while cross compiling
-See \`config.log' for more details." "$LINENO" 5; }
+  sudo_cv_uid_t_len=10
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
@@ -14750,7 +14747,7 @@ fi
 LIBS=$ac_save_LIBS
 
 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
-              strftime setrlimit initgroups fstat gettimeofday \
+              strftime setrlimit initgroups getgroups fstat gettimeofday \
               regcomp setlocale getaddrinfo vhangup \
               mbr_check_membership setrlimit64
 do :
@@ -14962,7 +14959,7 @@ if test "${sudo_cv_func_unsetenv_void+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   if test "$cross_compiling" = yes; then :
-  sudo_cv_func_unsetenv_void=yes
+  sudo_cv_func_unsetenv_void=no
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
index f6bed99109ecc56b57ad92abed1bcd0ccfbcdf17..79eba987eb2a0ac0ee4c6cb524cdc8926679522d 100644 (file)
@@ -1916,7 +1916,7 @@ dnl Function checks
 dnl
 AC_FUNC_GETGROUPS
 AC_CHECK_FUNCS(strchr strrchr memchr memcpy memset sysconf tzset \
-              strftime setrlimit initgroups fstat gettimeofday \
+              strftime setrlimit initgroups getgroups fstat gettimeofday \
               regcomp setlocale getaddrinfo vhangup \
               mbr_check_membership setrlimit64)
 AC_CHECK_FUNCS(getline, [], [