patch-configure 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. enable configure to run despite $cross_compiling
  2. --- ipmitool-1.8.11.orig/configure 2009-02-25 22:21:56.000000000 +0100
  3. +++ ipmitool-1.8.11/configure 2013-03-12 15:58:58.896054409 +0100
  4. @@ -24311,67 +24311,6 @@ _ACEOF
  5. fi;
  6. -if test "$cross_compiling" = yes; then
  7. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  8. -See \`config.log' for more details." >&5
  9. -echo "$as_me: error: cannot run test program while cross compiling
  10. -See \`config.log' for more details." >&2;}
  11. - { (exit 1); exit 1; }; }
  12. -else
  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. - #include <stdio.h>
  21. -
  22. - struct packstruct {
  23. - unsigned char t0 :5;
  24. - unsigned char t1 :5;
  25. - unsigned char t2 :5;
  26. - unsigned char t3 :5;
  27. - unsigned char t4 :4;
  28. - } __attribute__ ((packed));
  29. -
  30. - int
  31. - main(int argc, char ** argv)
  32. - {
  33. - if(sizeof(struct packstruct) != 3)
  34. - return(1);
  35. - else
  36. - return(0);
  37. - }
  38. -
  39. -_ACEOF
  40. -rm -f conftest$ac_exeext
  41. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42. - (eval $ac_link) 2>&5
  43. - ac_status=$?
  44. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  45. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  46. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  47. - (eval $ac_try) 2>&5
  48. - ac_status=$?
  49. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  50. - (exit $ac_status); }; }; then
  51. - :
  52. -else
  53. - echo "$as_me: program exited with status $ac_status" >&5
  54. -echo "$as_me: failed program was:" >&5
  55. -sed 's/^/| /' conftest.$ac_ext >&5
  56. -
  57. -( exit $ac_status )
  58. -
  59. -cat >>confdefs.h <<\_ACEOF
  60. -#define HAVE_PRAGMA_PACK 1
  61. -_ACEOF
  62. -
  63. -
  64. -fi
  65. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  66. -fi
  67. ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile control/Makefile control/pkginfo control/prototype control/rpmmacros control/ipmitool.spec lib/Makefile include/Makefile include/ipmitool/Makefile src/Makefile src/plugins/Makefile src/plugins/lan/Makefile src/plugins/lanplus/Makefile src/plugins/open/Makefile src/plugins/free/Makefile src/plugins/imb/Makefile src/plugins/bmc/Makefile src/plugins/lipmi/Makefile"