Skip to content

Commit

Permalink
Fix the test. (and indented it for easier bug spotting :)
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar committed Nov 18, 2002
1 parent f14b742 commit a3e9ae2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ext/gd/config.m4
Expand Up @@ -246,11 +246,16 @@ dnl
dnl Check for gd 2.0.4 greater availability
dnl

AC_TRY_COMPILE([
#include <gd.h>
#include <stdlib.h>
], [gdIOCtx *ctx; ctx = malloc(sizeof(gdIOCtx)); ctx->gd_free = 1],
AC_DEFINE(HAVE_LIBGD204, 1, [ ])
AC_TRY_COMPILE(
[
#include <gd.h>
#include <stdlib.h>
], [
gdIOCtx *ctx;
ctx = malloc(sizeof(gdIOCtx));
ctx->gd_free = 1;
], [
AC_DEFINE(HAVE_LIBGD204, 1, [ ])
])

dnl
Expand Down

0 comments on commit a3e9ae2

Please sign in to comment.