Re: autotools cookbook needed

2006-02-06 Thread Matt Hull
ill second that. autoconf is that bad. i havent written any m4 scripts though. and couldnt get automake to work. matt On Mon, 6 Feb 2006, John Calcote wrote: You know, I've recently finished reading the manuals for m4, libtool, autoconf, and automake. After 1000 pages of reading, I was

hello world demo with gtk condition

2006-01-10 Thread Matt Hull
i am going to take a break from this i think. i have been reading examples manuals for at least 2 weeks on this. too much time. and i still can not get it to work. i put the lastest try at icarus.cc.uic.edu/~mhull1/mine-0.0.9.tar.gz i have automake version 1.4 - 1.9 installed. i was at

build package in sub folder not finding main

2006-01-07 Thread Matt Hull
i have a simple hello world i am trying to get working. i have: src/main.c src/gtk/gtkmain.c src/gtk/gtkmain.h i almost got it working except that when it tries to build gtkmain it fails with undefined reference to main. looks like its trying to build a final appllication and link it together.

Re: possible to have only top level makefile ?

2006-01-07 Thread Matt Hull
src/gtk what is different with only a single makefile ? thanks matt On Sun, 8 Jan 2006, Ralf Corsepius wrote: On Sat, 2006-01-07 at 15:55 -0600, Matt Hull wrote: is it possible to only have one top level makefile ? In most cases, yes. will that work with make install, make clean

Re: makefile.am from --with-package option

2006-01-05 Thread Matt Hull
) $(INCPATH) -o gtkmain.o src/gtk-1.2/gtkmain.c i am guessing that its trying to link to main, but should do that last after it compiles main. thanks matt On Thu, 5 Jan 2006, Ralf Corsepius wrote: On Wed, 2006-01-04 at 16:34 -0600, Matt Hull wrote: thanks, i think i got that kinda working

Re: makefile.am from --with-package option

2006-01-04 Thread Matt Hull
at 01:07:50AM -0600, Matt Hull wrote: SUBDIRS = src cli-fe @GTK@ use Automake conditionals: SUBDIRS = src cli-fe if WITH_GTK SUBDIRS += gtk endif See the Automake manual for details. Have a nice day, Stepan ___ Autoconf mailing list

Re: need help trying to figure out how to write gtk hello world configure.in

2006-01-03 Thread Matt Hull
#PKG_CHECK_MODULES(GTKCONFIG, [$pkg_modules]) that fails thanks matt On Mon, 2 Jan 2006, Giles wrote: On Monday 02 January 2006 01:58, Matt Hull wrote: i am trying to write a hello world app that can use nothing, gtk 1.2, or 2.0. sofar, nothing with autoconf works Have a look at 'man pkg-config

makefile.am from --with-package option

2006-01-03 Thread Matt Hull
not sure if i sould post on autoconf or automake... sorry if i posted wrong. working on a hello world program. it has the option to use gtk 1.2 or gtk 2.0 or nothing. i think i got configure.in working, now i need to edit makefile.am. if there the user selected --without-gtk, how do i edit the

need help trying to figure out how to write gtk hello world configure.in

2006-01-01 Thread Matt Hull
i am trying to write a hello world app that can use nothing, gtk 1.2, or 2.0. sofar, nothing with autoconf works i tried this: # check if gtk should be used AC_ARG_WITH(gtk, [ --with-gtk use GTK GUI toolkit ]) if test $with_gtk = yes -o $enable_gtk = yes ; then if test $withval