FVWM: Imakefile inconsistancies

From: eli (e.) burke <"eli>
Date: Mon, 8 Apr 1996 17:36:00 -0400

I've been trying to compile fvwm 2.0.41 under hp-ux this afternoon, and
have had nothing but problems. I have access to a X11R5 and Imake and all,
but the systemwide Imake.tmpl sets HasGcc to no, and uses cc +0 instead of
gcc -O (even though WAY more people only have gcc instead of cc at our site).

After wading through Imakefiles/Makefiles all afternoon, I started fresh
and added the following lines to Fvwm.tmpl, hopeing to override ALL
CC and CFLAGS with these:
#define FvwmOptions -O1
#define FvwmCompiler gcc
and further down:
#ifdef FvwmOptions
        CFLAGS = FvwmOptions
#endif

When I run xmkmf, MakeMakefiles, and make, I get a mixed bag. Some files
compile properly, others don't.
#1: Works in this case, and when I set FvwmOptions to have -L and -I flags
gcc -O1 -c CatString3.c -o CatString3.o
#2: Fails unless I set -L and -I
gcc -O1 -c GetFont.c -o GetFont.o
#3: Also fails, but works if I set FvwmOptions to have -L and -I flags
gcc -c -O1 -DFVWM_ICONDIR=\"/usr/include/X11R5/X11/bitmaps\:/usr/include/X11R5/X11/pixmaps\" -DFVWMDIR=\"/usr/lib/X11R5/X11/fvwm2\" -DFVWMRC=\".fvwm2rc\" builtins.c
#3: Fails either way because it has the +O1, set by (I think) CDEBUGFLAGS,
    BUT it has the libraries and include files
gcc -o FvwmAudio FvwmAudio.o +O1 -L/usr/lib/X11R5 -L/usr/lib/Motif1.2 -L/bnr/contrib/X11R5/lib/1 -L/usr/lib/X11R5 -L../../libs -lfvwm2 -L/bnr/contrib/lib/1 -lXpm -lV3 -lXext -lX11

I don't mind the fact that I had to hack around to get this figured out,
but unless I'm being really stupid about something, there is no easy
DOCUMENTED way to set things like the compiler and cflags in one place,
and editing _24_ Imakefile_s is not really something I want to do.

Am I missing something obvious?!?

-Eli

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Apr 08 1996 - 19:03:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST