Linux-Misc Digest #950, Volume #19               Sun, 25 Apr 99 21:13:10 EDT

Contents:
  Re: autoconf & automake -> help (Erik de Castro Lopo)
  Re: Unable to execute binary file ("D. Vrabel")
  Re: Netscape is SSSSlow (Alex DiCarlo)
  Re: Directories with color (Dustin Puryear)
  Re: Installing CDE with RedHat 5.2 (Dustin Puryear)
  Re: Redhat 6.0... Coming tomorrow?? (Rene)
  memory usage of KDE ([EMAIL PROTECTED])

----------------------------------------------------------------------------

From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: autoconf & automake -> help
Date: Mon, 26 Apr 1999 09:06:06 +1000

[EMAIL PROTECTED] wrote:
> 
> Hello,
> I need some help from an automake/autoconf expert. I studied the
> manuals (GNU autoconf, GNU automake and "Learning the GNU development
> tools"), but must have still missed some essential points ?!
> 
> The situation I have to consider is:
> (Using Linux 2.2.5 / autoconf 2.13 / automake 1.4 and egcs 2.91.66)
> 
> I have some 100 C and C++ files distributed in a directory tree ("deep
> package"); like below
> 
> src---->dir1---->dir11
>             ---->dir12---->dir111
>                       ---->dir112
>    ---->dir2
>    ---->dir3
>    ---->include
>    ---->dir5
>    ---->dir6
> 
> "dirnn" contain *.c, *.cc and *.h files
> "include" contains only *.h files
> 
> some files contain some
>                         #ifdef OPTION1 ... #endif
>                         #ifdef OPTION2 ... #endif
>                         #ifdef OPTION3 ... #endif
> 
> the target file should be "target" ( the corresponding main() is in
> src/dir5/abc_main.cc )
> 
> My Questions:
> 1. What do I have do write in the Makefile.am and the configure.in ?

You need one configure.in file in the root directory of the project
and a Makefile.am in all of the directories. In you example above
the Makefile.am in dir1 should be something like:

DIST_SUBDIRS = dir11 dir12
SUBDIRS=@subdirs@

The configure.in files are much more project dependant.

> 2. Is it right that I have to put the #defines of OPTION1, OPTION2 and
> OPTION3 only once into acconfig.h at the src directory, and are valid
> for all subdirs ?

Yes. Each file which wants to use these defines should have 

#include <config.h>

> 3. I hope I am wrong that I have to manually create Makefile.am in
> each subdir ?

Yes.

> And I hope I am wrong that I have to manually create the line(s)
> "target_SOURCES = file1.c file2.c ... file528.c" ?

No. You do need to do something like this.

> Otherwise I would not understand "auto" of automake and autoconf ....
> I understand that the GNU cc is able to find out the dependencies
> itself (concerning the headers) ?.

The auto means that once you've set it up its very easy to make small
changes.

> 4. What has to be changed (in the Makefile.am and the configure.in),
> when there is a second target2 (a main() ) in src/dir6/file123.c
> The main focus of my questions is, that everything important can be
> specified in a few sentences, but I can not see, how to avoid writting
> manually hundred of lines into Makefile.am and configure.in. Everytime
> the package changes (new files or new directories), a lot of manual
> effort is necessary to adapt the two files ?

The biggest Makefile.am I've ever had to write was about 10 lines; never
anything like 100.

Hope this helps,
Erik
-- 
+-------------------------------------------------+
     Erik de Castro Lopo     [EMAIL PROTECTED]
+-------------------------------------------------+
With 22,100,000 legitimate businesses in the US alone,
allowing each to send only one UCE per *year* gets every 
mailbox 60,547 emails per day. There will either be email 
without UCE or there will be no email.

------------------------------

From: "D. Vrabel" <[EMAIL PROTECTED]>
Subject: Re: Unable to execute binary file
Date: Sun, 25 Apr 1999 20:05:36 +0100

On Sun, 25 Apr 1999 [EMAIL PROTECTED] wrote:

> I am trying to run a program from linux ans am getting the error ' unable to
> execute binary file'. When i do a file <executable> it tells me its a ' 80386
> COFF executable , not stripped'.  Whats all that about then?.
It sounds like it's an old  so-called 'a.out' executable.  You need
support for this format compiled into the kernel and all the necessary
libraries in the correct format.  This is all a waste of time I'd 
just recompile the file.

There is also a possibility that it's a DOS program compiled using DJGPP.

David

ps. I think calling the old executable format 'a.out' is a bit confusing.
What is the origin of the term.
--
David Vrabel
Engineering Undergraduate at University of Cambridge, UK.


------------------------------

From: Alex DiCarlo <[EMAIL PROTECTED]>
Subject: Re: Netscape is SSSSlow
Date: Mon, 26 Apr 1999 10:34:21 +1200

Charles

I have the same problem. Mine takes 38.4 seconds, but once it have it,
it works great. I've been told I need more RAM. I have a DX4 100 486
with  26  Megs of RAM. The only problem I get sometimes is sending
Email. Mine doesn't like it going in HTML, when I choose Text only, it
sends it, otherwise it locks. Maybe its just a question of RAM. New
also, but tell you, i'm close to dumping Win  95 on the other partition
and devoting my whole system to Linux.  It's sweet. WordPerfect is so
fast, and I've just got a look at XessLite (spreadsheet prog for linux,
testing it). Sweet as>
I hope someone else might be able to help you.
Ch eers
Alex di Carlo
Auckland New Zealand

Charles P. Koerner wrote:

> I'm running RH 5.2.  It has taken 3 months to get the ppp to work to
> connect to my ISP.
> Now after I have connected, when I call up Netscape Communicator from
> X window "programs, network Netscape Communicator" it takes 50 75
> seconds for it to appear.  Then I cant do anything with it.
> This newbie needs some help.
> home is
> [EMAIL PROTECTED]
> work is
> [EMAIL PROTECTED]
>
> --
>
>
> That's all I have to say for now :-)
>
> Charles P Koerner
>

--
Alex DiCarlo
Auckland New Zealand




------------------------------

From: [EMAIL PROTECTED] (Dustin Puryear)
Subject: Re: Directories with color
Date: Sun, 25 Apr 1999 09:51:38 -0500
Reply-To: [EMAIL PROTECTED]

On Sun, 25 Apr 1999 14:10:11 GMT, mikerego wrote:
>How can I get RedHat directories, files and executables in color like in
>Slackware I have seen this question here before but can't find it now.

Try "ls --color=tty". Better yet, create an alias.

[bash]
alias ls='ls --color=tty'

-- 
Dustin Puryear
[EMAIL PROTECTED]


------------------------------

From: [EMAIL PROTECTED] (Dustin Puryear)
Subject: Re: Installing CDE with RedHat 5.2
Date: Sun, 25 Apr 1999 09:55:17 -0500
Reply-To: [EMAIL PROTECTED]

On Sat, 24 Apr 1999 07:58:32 -0700, Gerald Willmann wrote:
>have you considered using the x86 version of Solaris. It's only 10
>dollars for non commercial use and CDE is included.

That's a pretty rough way of solving the problem. UnixWare 7 also comes
with a CDE window manager. Maybe he should try that. :-)

Anyway, isn't there a free CDE-like window manager out there? I'm sure
I've seen it mentioned, but can't remember where.

-- 
Dustin Puryear
[EMAIL PROTECTED]


------------------------------

From: [EMAIL PROTECTED] (Rene)
Subject: Re: Redhat 6.0... Coming tomorrow??
Date: Sun, 25 Apr 1999 23:32:47 GMT

 

On Sun, 25 Apr 1999 22:02:39 +0200, Jonte Regnell wrote:
>Well today Sunday when I went to the Redhat site and clicked on the 5.2
>box in the upper right corner.. I got a page saying comming monday and a
>white box... so 6.0 might be coming around the corner faster the most of
>us anticipated.
>
>/Jonte

Well I for one am ready for it !

Rene

__

------------------------------

From: [EMAIL PROTECTED]
Subject: memory usage of KDE
Date: Sun, 25 Apr 1999 22:39:43 GMT




Is it right that KDE uses a lot of memory?
I use an AMD 486DX4-100 with 32mb and a 4mb s3 virge dx videocard.
KDE is terribly slow.

Please replt to my email address

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to