Closed Bug 104286 Opened 23 years ago Closed 17 years ago

Make NSPR's configure script work under MKS Toolkit.

Categories

(NSPR :: NSPR, defect, P2)

4.1.2
x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

References

Details

Attachments

(1 file)

When trying to make NSPR's configure script work under
MKS Toolkit, I discovered three problems.

1. config.guess, config.sub, and configure.in do not
   recognize the values returned by MKS Toolkit's
   uname.  I was able to figure out how to fix this
   problem.  I name the os as "mksnt".  I will attach
   a patch.

2. If sh.exe is not installed in \bin of the current
   drive, configure can't find it.  By examining the
   configure script, I found that this can be fixed
   by setting the environment variable CONFIG_SHELL
   to the pathname of sh.exe or simply to "sh".  That
   is, in the command prompt you would say
       set CONFIG_SHELL=sh
   and in the MKS Korn Shell you would say
       export CONFIG_SHELL=sh

3. The AC_OUTPUT_MAKE_DEFS macro in autoconf 2.13
   assumes that '\012' is the line ending character
   and only translates that to space in confdefs.h.
   The confdefs.h file generated by the MKS Toolkit
   uses Windows CRLF line endings, so '\015' also
   needs to be translated to space.  I am working
   around this by manually editing configure and
   adding
       | tr '\015' ' '
   to the command pipeline.

   By the way, the configure file generated by
   autoconf 2.53 in Cygwin fails miserably under
   MKS Toolkit but works under Cygwin.  Until I
   figure out why, we need to stick with autoconf
   2.13.
Comment on attachment 53167 [details] [diff] [review]
Patch to make NSPR's configure recognize MKS Toolkit. [checked in]

r=cls
Please check the config.* changes into the mozilla tree as well.  I'd like to keep them in sync.
Attachment #53167 - Flags: review+
> Please check the config.* changes into the mozilla
> tree as well.

Will do.

Do you know how to locally override the AC_OUTPUT_MAKE_DEFS
macro?  I haven't found a way for GNU make to strip the '\r'
characters in DEFS.
Status: NEW → ASSIGNED
I checked in the patch (attachment 53167 [details] [diff] [review]) on the tip of NSPR.

I also checked the config.guess and config.sub changes into
mozilla/build/autoconf.

I still haven't figured out a solution for the AC_OUTPUT_MAKE_DEFS
problem.  I am now manually adding "| tr '\015' ' '" to the
autoconf-generated configure script.
Priority: -- → P2
Target Milestone: --- → Future
Comment on attachment 53167 [details] [diff] [review]
Patch to make NSPR's configure recognize MKS Toolkit. [checked in]

Chris, do you know how to submit our changes to config.guess
and config.sub (for MKS Toolkit) to the maintainer of
config.guess and config.sub?  This will avoid losing these
changes in a future merging.
config-patches@gnu.org would be the submission address.  I hope that you have
better luck than I did when I tried to get the msvc changes submitted.

# Please send patches to <config-patches@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
MKS support is already in the current autoconf
2.13 release.  Marked the bug WORKSFORME.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Target Milestone: Future → 4.6
I was wrong.  autoconf 2.13 (both the official one
or the patched version in Red Hat Enterprise Linux 3)
still can't do #3 in comment 0.  #1 is fixed though.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
QA Contact: wtchang → nspr
The target milestone is already released. Resetting target milestone.
Target Milestone: 4.6 → ---
Comment on attachment 53167 [details] [diff] [review]
Patch to make NSPR's configure recognize MKS Toolkit. [checked in]

marking patch as checked in as of comment 4
Attachment #53167 - Attachment description: Patch to make NSPR's configure recognize MKS Toolkit. → Patch to make NSPR's configure recognize MKS Toolkit. [checked in]
This bug was left open because I haven't fixed issue 3
in comment 0.  Since we have used the workaround for
years and it doesn't make sense to spend the time coming
up with a proper fix, I'm going to mark this bug fixed.
Status: REOPENED → RESOLVED
Closed: 19 years ago17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.2
(In reply to comment #11)
> This bug was left open because I haven't fixed issue 3
> in comment 0.

I filed bug 480680.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: