mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Check for gc.h too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3095 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
842a51c760
commit
b687ace2b1
@ -10,7 +10,8 @@
|
|||||||
#undef HAVE_PL_PERL
|
#undef HAVE_PL_PERL
|
||||||
#undef HAVE_STATIC_PERL
|
#undef HAVE_STATIC_PERL
|
||||||
#undef HAVE_GMODULE
|
#undef HAVE_GMODULE
|
||||||
#undef HAVE_GC
|
#undef HAVE_GC_H
|
||||||
|
#undef HAVE_GC_GC_H
|
||||||
#undef WANT_BIG5
|
#undef WANT_BIG5
|
||||||
|
|
||||||
/* macros/curses checks */
|
/* macros/curses checks */
|
||||||
|
@ -493,10 +493,15 @@ if test "x$want_gc" = xyes; then
|
|||||||
if test "$glib_config_major_version" = "2"; then
|
if test "$glib_config_major_version" = "2"; then
|
||||||
AC_CHECK_LIB(gc, GC_malloc, [
|
AC_CHECK_LIB(gc, GC_malloc, [
|
||||||
AC_CHECK_HEADER(gc/gc.h, [
|
AC_CHECK_HEADER(gc/gc.h, [
|
||||||
AC_DEFINE(HAVE_GC)
|
AC_DEFINE(HAVE_GC_GC_H)
|
||||||
LIBS="$LIBS -lgc"
|
LIBS="$LIBS -lgc"
|
||||||
], [
|
], [
|
||||||
want_gc=no
|
AC_CHECK_HEADER(gc.h, [
|
||||||
|
AC_DEFINE(HAVE_GC_H)
|
||||||
|
LIBS="$LIBS -lgc"
|
||||||
|
], [
|
||||||
|
want_gc=no
|
||||||
|
])
|
||||||
])
|
])
|
||||||
], [
|
], [
|
||||||
want_gc=no
|
want_gc=no
|
||||||
|
@ -309,8 +309,12 @@ static void winsock_init(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GC
|
#if defined (HAVE_GC_H) || defined (HAVE_GC_GC_H)
|
||||||
#include <gc/gc.h>
|
#ifdef HAVE_GC_H
|
||||||
|
# include <gc.h>
|
||||||
|
#else
|
||||||
|
# include <gc/gc.h>
|
||||||
|
#endif
|
||||||
GMemVTable gc_mem_table = {
|
GMemVTable gc_mem_table = {
|
||||||
GC_malloc,
|
GC_malloc,
|
||||||
GC_realloc,
|
GC_realloc,
|
||||||
|
@ -43,7 +43,9 @@
|
|||||||
#include "perl-core.h"
|
#include "perl-core.h"
|
||||||
#include "perl-common.h"
|
#include "perl-common.h"
|
||||||
|
|
||||||
#ifdef HAVE_GC
|
#ifdef HAVE_GC_H
|
||||||
|
# include <gc.h>
|
||||||
|
#elif defined (HAVE_GC_GC_H)
|
||||||
# include <gc/gc.h>
|
# include <gc/gc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user