× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Config Bug
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Wed, 30 May 2001 14:13:51 -0500 (CDT)




On Wed, 30 May 2001, Jay 'Eraserhead' Felice wrote:
> > 
> > I've got a few other things I'd like to fix in the configuration stuff,
> > since there's a lot of steps you have to take manually on FreeBSD systems
> > right now  (you have to patch xt5250, replace XTerm, install termcap
> > entry, etc)   Should I try to avoid calling anything from the shell in
> > configure.in?  
> 
> Nah...  The only advice I've really ever heard is that you should try to do
> things based on whether or not certain features are present as opposed to
> what kind of system it is.  For example, a Windows version might use
> WSAAsyncSelect() instead of select(); if we support this, we should use
> WSAAsyncSelect() based on whether the function was found, not whether the
> host type is Windows.
> 
> Of course, this is not always possible, but I've found it's made things much
> more portable and I've been pleasantly surprised when a package just happens
> to work on a new system ;-)

Well, what I'm trying to do is install the things in the "freebsd"
directory when running on a FreeBSD system.   And install the things in
the "linux" directory when running on a Linux system.

I guess the real reason I'm grouping it by "Linux" and "FreeBSD" is 
because that's what the directories are called. :)

Here are the issues I'm trying to solve:

    1) The "dialog" command that comes with FreeBSD does not support
         the --backtitle argument.  So, for xt5250 to bring up a 
         prompt with dialog, this has to be omitted.   I could probably
         create a test in configure.in that would check to see if
         --backtitle is supported...   (or maybe backtitle isn't
         important and we should omit it entirely?!)

    2) Different keyboard maps should be installed in FreeBSD than
         in Linux.  Right now, it always installs the Linux one, and
         you have to manually install the FreeBSD one if you want it.
         I don't know how to distill this down to a "feature".

    3) a different XTerm file is needed under FreeBSD.   The strings
         containing the tilde "~" character don't seem to work with
         FreeBSD's termcap library.  I have no idea how I'd check
         that in configure.

So what I was thinking that I should do is move XTerm to the linux
directory, and put my FreeBSD version in the freebsd directory. 
Have autoconf change the SUBDIRS in Makefile.in so that it only
built the linux directory for Linux systems, and the freebsd
directory on FreeBSD systems.

And do a "--backtitle" feature check in configure.in so that xt5250.in
uses backtitle only when available.

Or is there a better way?
 

+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.