1 $NetBSD: patch-ad,v 1.2 2007/12/31 02:51:56 obache Exp $
2 --- configure.orig 2007-03-24 17:11:07.000000000 +0000
4 @@ -21284,6 +21284,77 @@ fi
8 +{ echo "$as_me:$LINENO: checking for i386_iopl in -li386" >&5
9 +echo $ECHO_N "checking for i386_iopl in -li386... $ECHO_C" >&6; }
10 +if test "${ac_cv_lib_i386_i386_iopl+set}" = set; then
11 + echo $ECHO_N "(cached) $ECHO_C" >&6
13 + ac_check_lib_save_LIBS=$LIBS
15 +cat >conftest.$ac_ext <<_ACEOF
18 +cat confdefs.h >>conftest.$ac_ext
19 +cat >>conftest.$ac_ext <<_ACEOF
20 +/* end confdefs.h. */
22 +/* Override any GCC internal prototype to avoid an error.
23 + Use char because int might match the return type of a GCC
24 + builtin and then its argument prototype would still apply. */
37 +rm -f conftest.$ac_objext conftest$ac_exeext
38 +if { (ac_try="$ac_link"
40 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41 + *) ac_try_echo=$ac_try;;
43 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44 + (eval "$ac_link") 2>conftest.er1
46 + grep -v '^ *+' conftest.er1 >conftest.err
48 + cat conftest.err >&5
49 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
50 + (exit $ac_status); } && {
51 + test -z "$ac_c_werror_flag" ||
52 + test ! -s conftest.err
53 + } && test -s conftest$ac_exeext &&
54 + $as_test_x conftest$ac_exeext; then
55 + ac_cv_lib_i386_i386_iopl=yes
57 + echo "$as_me: failed program was:" >&5
58 +sed 's/^/| /' conftest.$ac_ext >&5
60 + ac_cv_lib_i386_i386_iopl=no
63 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64 + conftest$ac_exeext conftest.$ac_ext
65 +LIBS=$ac_check_lib_save_LIBS
67 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_iopl" >&5
68 +echo "${ECHO_T}$ac_cv_lib_i386_i386_iopl" >&6; }
69 +if test $ac_cv_lib_i386_i386_iopl = yes; then
70 + cat >>confdefs.h <<_ACEOF
71 +#define HAVE_LIBI386 1
79 # Check whether --enable-realtime was given.
80 if test "${enable_realtime+set}" = set; then
81 enableval=$enable_realtime; if test "$enableval" = yes