patch-ad 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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
  3. +++ configure
  4. @@ -21284,6 +21284,77 @@ fi
  5. done
  6. +{ echo "$as_me:$LINENO: checking for i386_iopl in -li386" >&5
  7. +echo $ECHO_N "checking for i386_iopl in -li386... $ECHO_C" >&6; }
  8. +if test "${ac_cv_lib_i386_i386_iopl+set}" = set; then
  9. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10. +else
  11. + ac_check_lib_save_LIBS=$LIBS
  12. +LIBS="-li386 $LIBS"
  13. +cat >conftest.$ac_ext <<_ACEOF
  14. +/* confdefs.h. */
  15. +_ACEOF
  16. +cat confdefs.h >>conftest.$ac_ext
  17. +cat >>conftest.$ac_ext <<_ACEOF
  18. +/* end confdefs.h. */
  19. +
  20. +/* Override any GCC internal prototype to avoid an error.
  21. + Use char because int might match the return type of a GCC
  22. + builtin and then its argument prototype would still apply. */
  23. +#ifdef __cplusplus
  24. +extern "C"
  25. +#endif
  26. +char i386_iopl ();
  27. +int
  28. +main ()
  29. +{
  30. +return i386_iopl ();
  31. + ;
  32. + return 0;
  33. +}
  34. +_ACEOF
  35. +rm -f conftest.$ac_objext conftest$ac_exeext
  36. +if { (ac_try="$ac_link"
  37. +case "(($ac_try" in
  38. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  39. + *) ac_try_echo=$ac_try;;
  40. +esac
  41. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  42. + (eval "$ac_link") 2>conftest.er1
  43. + ac_status=$?
  44. + grep -v '^ *+' conftest.er1 >conftest.err
  45. + rm -f conftest.er1
  46. + cat conftest.err >&5
  47. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  48. + (exit $ac_status); } && {
  49. + test -z "$ac_c_werror_flag" ||
  50. + test ! -s conftest.err
  51. + } && test -s conftest$ac_exeext &&
  52. + $as_test_x conftest$ac_exeext; then
  53. + ac_cv_lib_i386_i386_iopl=yes
  54. +else
  55. + echo "$as_me: failed program was:" >&5
  56. +sed 's/^/| /' conftest.$ac_ext >&5
  57. +
  58. + ac_cv_lib_i386_i386_iopl=no
  59. +fi
  60. +
  61. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  62. + conftest$ac_exeext conftest.$ac_ext
  63. +LIBS=$ac_check_lib_save_LIBS
  64. +fi
  65. +{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_iopl" >&5
  66. +echo "${ECHO_T}$ac_cv_lib_i386_i386_iopl" >&6; }
  67. +if test $ac_cv_lib_i386_i386_iopl = yes; then
  68. + cat >>confdefs.h <<_ACEOF
  69. +#define HAVE_LIBI386 1
  70. +_ACEOF
  71. +
  72. + LIBS="-li386 $LIBS"
  73. +
  74. +fi
  75. +
  76. +
  77. # Check whether --enable-realtime was given.
  78. if test "${enable_realtime+set}" = set; then
  79. enableval=$enable_realtime; if test "$enableval" = yes