From 170641f69a86cdd740df4c1ec74194ef84dab6a0 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Thu, 29 Mar 2007 18:23:36 +0000 Subject: Replace obsolete macros (processing done by autoupdate). Some tests were rearranged (AC_TRY_LINK moved out of AC_TRY_RUN cross-compilation case, with arrangements to maintain the semantics) to avoid autoupdate errors. Factored out common (duplicate) code in aa.m4. Tested with autoconf 2.61; needs testing with 2.60. CVS patchset: 8767 CVS date: 2007/03/29 18:23:36 --- m4/ioctl_request.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/ioctl_request.m4') diff --git a/m4/ioctl_request.m4 b/m4/ioctl_request.m4 index e5ea6d346..c6d12258e 100644 --- a/m4/ioctl_request.m4 +++ b/m4/ioctl_request.m4 @@ -38,10 +38,10 @@ AC_DEFUN([AC_IOCTL_REQUEST], [ ac_cv_ioctl_request, [for ac_ioctl_request_type in "unsigned long" "int" do - AC_TRY_LINK([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include int ioctl(int fd, $ac_ioctl_request_type request, ...); - ], [], [ac_cv_ioctl_request=$ac_ioctl_request_type]) + ]], [[]])],[ac_cv_ioctl_request=$ac_ioctl_request_type],[]) done]) if test "x$ac_cv_ioctl_request" = "x"; then -- cgit v1.2.3