]> granicus.if.org Git - sudo/commitdiff
regen with autoupdate to eliminate AC_TRY_LINK
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 19:53:39 +0000 (15:53 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 21 May 2010 19:53:39 +0000 (15:53 -0400)
configure
configure.in

index b9fe42920a2b5f1379017539cd5994becb44d732..fc0c3046c3e3d9d762748c86bc327d0c3c48c372 100755 (executable)
--- a/configure
+++ b/configure
@@ -12534,11 +12534,13 @@ else
 sed 's/^/| /' conftest.$ac_ext >&5
 
        sudo_cv_var_daportable=no
+
 fi
 
 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
       conftest$ac_exeext conftest.$ac_ext
 
+
 fi
 { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
 echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
@@ -24080,6 +24082,7 @@ int
 main ()
 {
 krb5_get_init_creds_opt_free(NULL, NULL);
+
   ;
   return 0;
 }
index 478b53d2f0cd731eabd9475b1f3078a22748d9b0..5ee8c7bbf7597a34025eed152f0343476dfe2c4b 100644 (file)
@@ -1,7 +1,7 @@
 dnl
 dnl Process this file with GNU autoconf to produce a configure script.
 dnl
-dnl Copyright (c) 1994-1996,1998-2009 Todd C. Miller <Todd.Miller@courtesan.com>
+dnl Copyright (c) 1994-1996,1998-2010 Todd C. Miller <Todd.Miller@courtesan.com>
 dnl
 AC_INIT([sudo], [1.8.0a1], [http://www.sudo.ws/bugs/], [sudo])
 AC_CONFIG_HEADER(config.h pathnames.h)
@@ -1475,8 +1475,12 @@ case "$host" in
                CFLAGS="$CFLAGS +DAportable"
                AC_CACHE_CHECK([whether $CC understands +DAportable],
                    [sudo_cv_var_daportable],
-                   [AC_TRY_LINK([], [], [sudo_cv_var_daportable=yes],
-                                [sudo_cv_var_daportable=no])]
+                   [AC_LINK_IFELSE(
+                       [AC_LANG_PROGRAM([[]], [[]])],
+                           [sudo_cv_var_daportable=yes],
+                           [sudo_cv_var_daportable=no]
+                       )
+                   ]
                )
                if test X"$sudo_cv_var_daportable" != X"yes"; then
                    CFLAGS="$_CFLAGS"
@@ -1980,8 +1984,8 @@ dnl
 dnl Check for the dirfd function/macro.  If not found, look for dd_fd in DIR.
 dnl
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
-#include <$ac_header_dirent>]], [[DIR *d; (void)dirfd(d);]])], [AC_DEFINE(HAVE_DIRFD)], [AC_TRY_LINK([#include <sys/types.h>
-#include <$ac_header_dirent>], [DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);], [AC_DEFINE(HAVE_DD_FD)])])
+#include <$ac_header_dirent>]], [[DIR *d; (void)dirfd(d);]])], [AC_DEFINE(HAVE_DIRFD)], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
+#include <$ac_header_dirent>]], [[DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);]])], [AC_DEFINE(HAVE_DD_FD)], [])])
 dnl
 dnl If NEED_SNPRINTF is set, add snprintf.c to LIBOBJS
 dnl (it contains snprintf, vsnprintf, asprintf, and vasprintf)
@@ -2346,8 +2350,11 @@ if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
     AC_CHECK_FUNCS(krb5_get_init_creds_opt_alloc, [
        AC_CACHE_CHECK([whether krb5_get_init_creds_opt_free takes a context],
            sudo_cv_krb5_get_init_creds_opt_free_two_args, [
-               AC_TRY_COMPILE([#include <krb5.h>],
-                   [krb5_get_init_creds_opt_free(NULL, NULL);],
+               AC_COMPILE_IFELSE(
+                   [AC_LANG_PROGRAM(
+                       [[#include <krb5.h>]],
+                       [[krb5_get_init_creds_opt_free(NULL, NULL);]]
+                   )],
                    [sudo_cv_krb5_get_init_creds_opt_free_two_args=yes],
                    [sudo_cv_krb5_get_init_creds_opt_free_two_args=no]
                )