gamin-0.1.10-configure.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --- a/configure.fixed 2009-08-02 18:00:54.000000000 +0200
  2. +++ b/configure 2008-11-24 16:23:27.000000000 +0100
  3. @@ -23581,100 +23581,6 @@
  4. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  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 <sys/types.h>
  21. -#include <stdlib.h>
  22. -#include <string.h>
  23. -#include <stdio.h>
  24. -#include <sys/socket.h>
  25. -#include <sys/un.h>
  26. -#include <errno.h>
  27. -
  28. -int
  29. -main ()
  30. -{
  31. -
  32. - int listen_fd;
  33. - struct sockaddr_un addr;
  34. -
  35. - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
  36. -
  37. - if (listen_fd < 0)
  38. - {
  39. - fprintf (stderr, "socket() failed: %s\n", strerror (errno));
  40. - exit (1);
  41. - }
  42. -
  43. - memset (&addr, '\0', sizeof (addr));
  44. - addr.sun_family = AF_UNIX;
  45. - strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
  46. - addr.sun_path[0] = '\0'; /* this is what makes it abstract */
  47. -
  48. - if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
  49. - {
  50. - fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
  51. - strerror (errno));
  52. - exit (1);
  53. - }
  54. - else
  55. - exit (0);
  56. -
  57. - ;
  58. - return 0;
  59. -}
  60. -_ACEOF
  61. -rm -f conftest$ac_exeext
  62. -if { (ac_try="$ac_link"
  63. -case "(($ac_try" in
  64. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  65. - *) ac_try_echo=$ac_try;;
  66. -esac
  67. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  68. - (eval "$ac_link") 2>&5
  69. - ac_status=$?
  70. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  71. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  72. - { (case "(($ac_try" in
  73. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  74. - *) ac_try_echo=$ac_try;;
  75. -esac
  76. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  77. - (eval "$ac_try") 2>&5
  78. - ac_status=$?
  79. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  80. - (exit $ac_status); }; }; then
  81. - have_abstract_sockets=yes
  82. -else
  83. - echo "$as_me: program exited with status $ac_status" >&5
  84. -echo "$as_me: failed program was:" >&5
  85. -sed 's/^/| /' conftest.$ac_ext >&5
  86. -
  87. -( exit $ac_status )
  88. -have_abstract_sockets=no
  89. -fi
  90. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  91. -fi
  92. -
  93. -
  94. -ac_ext=c
  95. -ac_cpp='$CPP $CPPFLAGS'
  96. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  97. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  98. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  99. -
  100. { echo "$as_me:$LINENO: result: $have_abstract_sockets" >&5
  101. echo "${ECHO_T}$have_abstract_sockets" >&6; }