configure.in assumes gcc / autogen.sh assumes GNU which
When building for OpenSolaris with the Sun Studio compiler suite, a couple of issues with the configure scripts emerged.
- In autogen.sh, the existence of libtoolize is checked by using which(1). Solaris 'which' prints error message ("No such file ..") to standard out instead of standard error, so this procedure fails. Testing with -x may be an approach that is more portable :
for libtoolize in glibtoolize libtoolize; do
LIBTOOLIZE=`which $libtoolize 2>/dev/null`
if test -x "$LIBTOOLIZE"; then
break;
fi
done
- In configure.in, additional CFLAGS are appended :
CXXFLAGS="${CXXFLAGS} -Wall -ansi -pedantic -Wno-long-long"
CFLAGS="${CFLAGS} -Wall -ansi -pedantic -Wno-long-long"
Since these are gcc'isms, compilation with other compilers fails. I think there is a portable autoconf macro for adding pedantic/all-warning somewhere.. Otherwise, a test based on uname(1) or a small compilation test macro should solve the problem.
Change History
(11)
Keywords: |
solaris added
|
Milestone: |
→ 3.0.1
|
Version: |
→ svn-trunk
|
Owner: |
set to mloskot
|
Status: |
new → assigned
|
Description: |
modified (diff)
|
Milestone: |
→ 3.1.0
|
Owner: |
changed from mloskot to pramsey
|
Status: |
assigned → new
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Magne,
I've submitted your fix for autogen.sh to trunk (r2138).
Unfortunately, the second part of your report is unclear to me. Could you explain
Thanks for any details