Opened 16 years ago
Last modified 15 years ago
#192 closed defect
configure.in assumes gcc / autogen.sh assumes GNU which — at Initial Version
Reported by: | magne | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.1.0 |
Component: | Build/Install | Version: | main |
Severity: | Unassigned | Keywords: | solaris |
Cc: |
Description
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"; thenbreak;
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.
Note:
See TracTickets
for help on using tickets.