GNOME Bugzilla – Bug 420306
libgda GnomeGoals/PoptGOption
Last modified: 2007-03-27 13:11:02 UTC
http://live.gnome.org/GnomeGoals/PoptGOption popt is used only in tools/gda-config-tool.c; this should be ported to GOption. tools/gda-run.c #include <popt.h> but doesn't use it; it uses a simple usage message instead. Should it use GOption as well? This can be done post-3.0.
Created attachment 85282 [details] [review] This patch makes libgda-config-tool to use GOption As it's stated in GNOME Goals, this patch is using GOption to show --help and option parsing. Also fixed some compile warnings. Referance to Gnome Goals: http://live.gnome.org/GnomeGoals/PoptGOption
gda-run.c does not even run usage function, neither it support those arguments. It must be a stub code.
Thank you for the patch. You need to remove the popt detection from configure.in as well, as it is no longer needed.
And then, feel free to commit. Thanks.
Don't forget to remove POPT_LIB from gda_config_tool_3_0_LDADD in tools/Makefile.am as well.
Created attachment 85379 [details] [review] GOption changes with autotools file fixes Autotools stuff is not my forte. I could not compile svn due to my build environment. If someone checks the changes I made, I can commit this patch. I've also saved gda-run.c from popt.h, which is not used anyways.
I found what's wrong about configure.in. Fixed it and commited. Since I could build, I belive I did not broke anything.
Thanks, Baris.