Re: pgadminIII on OSX 10.3.9; w/ wxWidgets-2.6.0

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: OpenMacNews <OpenMacNews(at)speakeasy(dot)net>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: pgadminIII on OSX 10.3.9; w/ wxWidgets-2.6.0
Date: 2005-04-26 17:03:47
Message-ID: 426E7473.3010700@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

OpenMacNews wrote:
> hi florian,
>> Hm.. this is strange... I works for the nightly builds...
>> In src/Makefile.am, you should find the lines:
>> if test "$(pg_debug_build)" = "no"; then \
>> strip pgAdmin3 ;\
>> fi
>>
>> Could you put an "echo $(pg_debug_build)" before the if,
>> and post the output?
>
> ok. per request,
>
> @216
> mv tmp pgAdmin3 ;\
> +++ echo $(pg_debug_build) ;\
> if test "$(pg_debug_build)" = "no"; then \
> strip pgAdmin3 ;\
> fi
>
...
> here's the 'make install' output ....
> ...
> make install-exec-hook
> cd /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS ;\
> mv pgadmin3 tmp ;\
> mv tmp pgAdmin3 ;\
> echo yes ;\
> if test "yes" = "no"; then \
> strip pgAdmin3 ;\
> fi
> yes
> ...
> hmmm, $pg_debug_build is reporting as YES despite my config as:
>
> ./configure \
> --enable-appbundle \
> --enable-static \
> --disable-debug \
> --with-wx=/usr/local/wxWidgets-260 \
> --with-wx-config=wx-config \
> --with-pgsql=/usr/local/pgsql \
> --with-pgsql-include=/usr/local/pgsql/include
>
> checking/verifying in "src/Makefile":
> @279
> pg_debug_build = yes
>
> and in /.configure:
> @4872
> # Check whether --enable-debug or --disable-debug was given.
> if test "${enable_debug+set}" = set; then
> enableval="$enable_debug"
> pg_debug_build=yes
> CFLAGS="-Wall -g -O0"
> CXXFLAGS="-Wall -g -O0"
> else
> pg_debug_build=no
> fi;
Hm.. I have no idea what going on here... Is there an autoconf guru here
who might provide insight?

> hmmm ... why/where is "pg_debug_build=no" NOT being set ...
> do we need an EXPLICIT test for "--disable-debug" to set the NO case?
>
> i'm gonna try this without the --disable-debug flag ...
I just checked - the nightly builds are done with neither "--enable-debug"
nor "--disable-debug" specified, and things work correctly...

FYI, configure is autogenerated, and the snipped that checks
for the debug option is found in acinclude.m4 - but it looks
even more correct there (at least for my autoconf-unsavy eyes...)

Greetings, Florian Pflug

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message OpenMacNews 2005-04-26 17:37:40 Re: pgadminIII on OSX 10.3.9; w/ wxWidgets-2.6.0
Previous Message OpenMacNews 2005-04-26 16:11:49 Re: pgadminIII on OSX 10.3.9; w/ wxWidgets-2.6.0 OK,