Subject: bug#6792: 24.0.50; at revision 100946 GNU Emacs with Xaw3d does not compile

From: "Jan D." <[email-masked]>
Date: Wed, 04 Aug 2010 08:50:41 +0200

On 2010-08-04 00:09, Peter Dyballa wrote:
> Hello!
>
> In Mac OS X (here: 10.5.8, Leopard) Xaw3d is not standard. It can be
> installed by the package management systems Fink or MacPorts, then in
> /sw/{include,lib} or /opt/local/{include,lib}. When I change the
> configure script to use GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" (line
> #3270) it finds the software, but does not propagate these *test*
> options to active flags. So this error happens:

Why aren't you setting CFLAGS and LDFLAGS?  That is the way it is 
supposed to be done, no need to modify any configure script:

% LDFLAGS=-L/sw/lib CFLAGS='-O2 -g -I/sw/include' ./configure ...

Doesn't that work for you?

	Jan D.

>
> gcc-4.2 -c -I/usr/X11/include -I/usr/X11/include
> -I/usr/X11/include/freetype2 -Wold-style-definition
> -Wdeclaration-after-statement -Wno-pointer-sign -g -H -Wno-pointer-sign
> -pipe -fPIC -fno-common -mcpu=7450 -mtune=G4 -faltivec -fast
> -DHAVE_CONFIG_H -Demacs -I. -I../src -I..../emacs/lwlib
> -I..../emacs/lwlib/../src ..../emacs/lwlib/lwlib.c
> . ../src/config.h
> .. ../src/s/darwin.h
> .. ../src/m/macppc.h
> .. /usr/include/string.h
> ... /usr/include/_types.h
> .... /usr/include/sys/_types.h
> ..... /usr/include/sys/cdefs.h
> ..... /usr/include/machine/_types.h
> ...... /usr/include/ppc/_types.h
> .. /usr/include/stdlib.h
> ... /usr/include/available.h
> ... /usr/include/sys/wait.h
> .... /usr/include/sys/signal.h
> ..... /usr/include/sys/appleapiopts.h
> ..... /usr/include/machine/signal.h
> ...... /usr/include/ppc/signal.h
> ....... /usr/include/ppc/_structs.h
> ..... /usr/include/sys/_structs.h
> ...... /usr/include/machine/_structs.h
> ....... /usr/include/ppc/_structs.h
> ........ /usr/include/mach/ppc/_structs.h
> .... /usr/include/sys/resource.h
> ..... /usr/include/sys/_structs.h
> .... /usr/include/machine/endian.h
> ..... /usr/include/ppc/endian.h
> ...... /usr/include/sys/_endian.h
> ... /usr/include/alloca.h
> ... /usr/include/machine/types.h
> .... /usr/include/ppc/types.h
> ..... /usr/include/ppc/_types.h
> . /usr/include/setjmp.h
> .. /usr/include/machine/setjmp.h
> ... /usr/include/ppc/setjmp.h
> .... /usr/include/ppc/_structs.h
> . ..../emacs/lwlib/../src/lisp.h
> .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stdarg.h
> .. /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> . /usr/include/sys/types.h
> .. /usr/include/sys/_structs.h
> . /usr/include/stdio.h
> . /usr/include/ctype.h
> .. /usr/include/runetype.h
> . ..../emacs/lwlib/lwlib-int.h
> .. ..../emacs/lwlib/lwlib.h
> ... /usr/X11/include/X11/Intrinsic.h
> .... /usr/X11/include/X11/Xlib.h
> ..... /usr/X11/include/X11/X.h
> ..... /usr/X11/include/X11/Xfuncproto.h
> ..... /usr/X11/include/X11/Xosdefs.h
> ..... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> .... /usr/X11/include/X11/Xutil.h
> ..... /usr/X11/include/X11/keysym.h
> ...... /usr/X11/include/X11/keysymdef.h
> .... /usr/X11/include/X11/Xresource.h
> .... /usr/lib/gcc/powerpc-apple-darwin9/4.2.1/include/stddef.h
> .... /usr/X11/include/X11/Core.h
> .... /usr/X11/include/X11/Composite.h
> .... /usr/X11/include/X11/Constraint.h
> .... /usr/X11/include/X11/Object.h
> .... /usr/X11/include/X11/RectObj.h
> . ..../emacs/lwlib/lwlib-utils.h
> . /usr/X11/include/X11/StringDefs.h
> . ..../emacs/lwlib/lwlib-Xlw.h
> ..../emacs/lwlib/lwlib.c:49:29: error: X11/Xaw3d/Paned.h: No such file
> or directory
> . ..../emacs/lwlib/lwlib-Xaw.h
> make[2]: *** [lwlib.o] Error 1
>
> and similarly with lwlib-Xaw.c. When I use MacPorts' Xaw3d the C header
> files are found because the non-Apple X11 installation has PC files
> which set CFLAGS to contain -I/opt/local/include.
>
> Xaw3d does not come with a PC file so configure cannot rely on pkg-config.
>
> --
> Greetings
>
> Pete
>
> UNIX is user friendly, it's just picky about who its friends are.
>
>
>