OK well, first autoconf.texi needed adjustment. Second, c.m4
_AC_PROG_CC_C89 already checks for -Ae, so I don't understand
why it's not used automatically (AC_PROG_CC calls that macro).
Third, the bit of qualm I have going this route is that we may
end up with dozens of recommendations, that all apply to some
more or less large subset of packages that use Autoconf. For
the rest it's just bloat. That said, I do understand the need
for the recommendations Bruno lists.
What do others think about this?
Cheers,
Ralf
2008-04-13 Bruno Haible <[EMAIL PROTECTED]>
* doc/install.texi (Particular Systems): New section.
* doc/autoconf.texi: Adjust.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 8b10387..f8b4614 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -556,6 +556,7 @@ Running @command{configure} Scripts
* Multiple Architectures:: Compiling for multiple architectures at once
* Installation Names:: Installing in different directories
* Optional Features:: Selecting optional features
+* Particular Systems:: Important system-specific notes
* System Type:: Specifying the system type
* Sharing Defaults:: Setting site-wide defaults for
@command{configure}
* Defining Variables:: Specifying the compiler etc.
@@ -17980,6 +17981,7 @@ may use comes with Autoconf.
* Multiple Architectures:: Compiling for multiple architectures at once
* Installation Names:: Installing in different directories
* Optional Features:: Selecting optional features
+* Particular Systems:: Important system-specific notes
* System Type:: Specifying the system type
* Sharing Defaults:: Setting site-wide defaults for
@command{configure}
* Defining Variables:: Specifying the compiler etc.
diff --git a/doc/install.texi b/doc/install.texi
index e087629..146dcd8 100644
--- a/doc/install.texi
+++ b/doc/install.texi
@@ -163,6 +163,36 @@ doesn't, you can use the @command{configure} options
@[EMAIL PROTECTED] and @[EMAIL PROTECTED] to
specify their locations.
[EMAIL PROTECTED] Particular Systems
[EMAIL PROTECTED] Particular Systems
+
+On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is
+not installed, it is recommended to use the following options in order to
+use an ANSI C compiler:
+
[EMAIL PROTECTED]
+./configure CC="cc -Ae"
[EMAIL PROTECTED] example
+
[EMAIL PROTECTED]
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+On OSF/1 a.k.a.@: Tru64, some versions of the default C compiler cannot
+parse its @code{<wchar.h>} header file. The option @option{-nodtk} can be
+used as a workaround. If GNU CC is not installed, it is therefore
+recommended to try
+
[EMAIL PROTECTED]
+./configure CC="cc"
[EMAIL PROTECTED] example
+
[EMAIL PROTECTED]
+and if that doesn't work, try
+
[EMAIL PROTECTED]
+./configure CC="cc -nodtk"
[EMAIL PROTECTED] example
+
@node System Type
@section Specifying the System Type