On Wed, 12 Apr 2000, Mike Madore wrote:

> > When I do a "make" under FreeBSD it fails with this message:
> > 
> >      gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c getopt.c
> >      getopt.c:35: config.h: No such file or directory 
> > 
> > I can fix the problem quite easily by editing "getopt.c" and commenting
> > out the #include <config.h>  line.   But I wonder why this is happening?
> > config.h is too generic of a name to be a standard system include file,
> > so what the heck is it looking for?   On my redhat box, it appears that
> > theres a config.h in the tn5250/src directory... but not on FreeBSD.
> > That seems weird to me... why would that be different?
> 
> Isn't config.h one of those files that is generated by automake and
> friends?  Try running autogen.sh and configure again and see if it shows
> up again.
> 

Interestingly enough, config.h is being generated by the "make" command,
but is being created AFTER make crashes with the error AFTER the error
that I list above.

After commenting out the #include <config.h> line from the source,
and typing "make" again, I see a sequence of lines that looks like this:

creating lp5250d
cat tn5250-config.h |sed -e 's/VERSION/TN5250_LIB_VERSION/g' -e 
'/PACKAGE/d' >config.h

Its a bit late, though..  getopt.c was compiled in the section that said
"creating lib5250.la"

This is from source that I just got from cvs, perhaps 30 mins ago...



+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---

Reply via email to