[SCM] Samba Shared Repository - branch master updated
Michael Adam
obnox at samba.org
Tue May 25 02:26:40 MDT 2010
Andrew Bartlett wrote:
> On Tue, 2010-05-25 at 07:41 +0200, Stefan (metze) Metzmacher wrote:
> > Hi Björn,
> >
> >
> > > -dnl Check if the C compiler understands -Werror
> > > +dnl Check if the C compiler understands -Werror (GNU)
> > > AC_CACHE_CHECK([that the C compiler understands -Werror],samba_cv_HAVE_Werror, [
> > > AC_TRY_RUN_STRICT([
> > > int main(void)
> > > @@ -286,7 +286,7 @@ AC_CACHE_CHECK([that the C compiler understands -w2],samba_cv_HAVE_w2, [
> > > if test x"$samba_cv_HAVE_w2" = x"yes"; then
> > > Werror_FLAGS="-w2"
> > > else
> > > -dnl Check if the C compiler understands -errwarn
> > > +dnl Check if the C compiler understands -errwarn (Sun)
> > > AC_CACHE_CHECK([that the C compiler understands -errwarn],samba_cv_HAVE_errwarn, [
> > > AC_TRY_RUN_STRICT([
> > > int main(void)
> > > @@ -297,6 +297,18 @@ AC_CACHE_CHECK([that the C compiler understands -errwarn],samba_cv_HAVE_errwarn,
> > > if test x"$samba_cv_HAVE_errwarn" = x"yes"; then
> > > Werror_FLAGS="-errwarn=%all"
> > > fi
> > > +else
> > > +dnl Check if the C compiler understands -qhalt (IBM)
> > > +AC_CACHE_CHECK([that the C compiler understands -qhalt],samba_cv_HAVE_errwarn, [
> > > + AC_TRY_RUN_STRICT([
> > > + int main(void)
> > > + {
> > > + return 0;
> > > + }],[$CFLAGS -qhalt=w],[$CPPFLAGS],[$LDFLAGS],
> > > + samba_cv_HAVE_qhalt=yes,samba_cv_HAVE_qhalt=no,samba_cv_HAVE_qhalt=cross)])
> > > +if test x"$samba_cv_HAVE_qhalt" = x"yes"; then
> > > + Werror_FLAGS="-qhalt=w"
> > > +fi
> >
> > I think we also need -qhalt=e here, to match -Werror.
> >
> > I'm wondering if --errwarn is the correct thing for the sun case...
>
> I was wondering much simpler things - I can't get it to even run...
>
> (where if the 'if' for the else?)
Fixed.
The fi above the else should have been further below, it was the
fi for the else ... :-)
Cheers - Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100525/2d8b5959/attachment.pgp>
More information about the samba-technical
mailing list