Index: acinclude.m4 =================================================================== RCS file: /projects/pgadmin3/acinclude.m4,v retrieving revision 1.46 retrieving revision 1.47 diff -Lacinclude.m4 -Lacinclude.m4 -u -w -r1.46 -r1.47 --- acinclude.m4 +++ acinclude.m4 @@ -53,6 +53,7 @@ CXXFLAGS="-Wall -g -O0"], [pg_debug_build=no]) ]) +AC_SUBST(pg_debug_build) ############################ # Static build of pgAdmin3 # Index: Makefile.am =================================================================== RCS file: /projects/pgadmin3/src/Makefile.am,v retrieving revision 1.103 retrieving revision 1.104 diff -Lsrc/Makefile.am -Lsrc/Makefile.am -u -w -r1.103 -r1.104 --- src/Makefile.am +++ src/Makefile.am @@ -210,6 +210,11 @@ AM_CPPFLAGS = -Wall -g -I$(top_srcdir)/src/include -I$(top_srcdir)/src/agent/include -I$(top_srcdir)/src/slony/include AM_CFLAGS = -Wall -g -I$(top_srcdir)/src/include -I$(top_srcdir)/src/agent/include -I$(top_srcdir)/src/slony/include install-exec-hook: - (cd $(bindir); mv pgadmin3 "pgAdmin3") + cd $(bindir) ;\ + mv pgadmin3 tmp ;\ + mv tmp pgAdmin3 ;\ + if test "$(pg_debug_build)" = "no"; then \ + strip pgAdmin3 ;\ + fi endif