Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 509458
Collapse All | Expand All

(-)M2-release-1.6-stable-20130514/M2/configure.ac (-7 / +6 lines)
Lines 1125-1139 then AC_LANG(C) Link Here
1125
			  AC_MSG_CHECKING(whether libgc is recent enough)
1125
			  AC_MSG_CHECKING(whether libgc is recent enough)
1126
			  AC_RUN_IFELSE([AC_LANG_SOURCE([ 
1126
			  AC_RUN_IFELSE([AC_LANG_SOURCE([ 
1127
				  #include <stdio.h>
1127
				  #include <stdio.h>
1128
				  #include <gc.h>
1128
				  main () {
1129
				  main () {
1129
				      extern unsigned GC_version;
1130
				      FILE *msg = fdopen(AS_MESSAGE_FD,"w");
1130
				      FILE *msg = fdopen(AS_MESSAGE_FD,"w");
1131
				      unsigned major, minor, alpha;
1131
				      unsigned major, minor, micro;
1132
				      major = GC_version >> 16;
1132
				      major = GC_VERSION_MAJOR;
1133
				      minor = (GC_version >> 8) & 0xff;
1133
				      minor = GC_VERSION_MINOR;
1134
				      alpha = GC_version & 0xff;
1134
				      micro = GC_VERSION_MICRO;
1135
				      if (alpha == 0xff) fprintf(msg,"(version %d.%d found) ", major, minor);
1135
				      fprintf(msg,"(version %d.%d.%d found) ", major, minor, micro);
1136
				      else fprintf(msg,"(version %d.%d alpha %d found) ", major, minor, alpha);
1137
				      return !( major > 7 || major == 7 && minor >= 2); }])],
1136
				      return !( major > 7 || major == 7 && minor >= 2); }])],
1138
			     [ AC_MSG_RESULT(yes) ],
1137
			     [ AC_MSG_RESULT(yes) ],
1139
			     [ AC_MSG_RESULT([no, version at least 7.2 is required (gc will be built from downloaded sources)]); BUILD_gc=yes ],
1138
			     [ AC_MSG_RESULT([no, version at least 7.2 is required (gc will be built from downloaded sources)]); BUILD_gc=yes ],

Return to bug 509458