From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3641 invoked from network); 25 Sep 1998 10:37:20 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 25 Sep 1998 10:37:20 -0000 Received: from mail.sun.ac.za (mail.sun.ac.za [146.232.128.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA17021 for ; Fri, 25 Sep 1998 06:37:20 -0400 Received: from angst.dsp.sun.ac.za ([146.232.147.165]) by mail.sun.ac.za with esmtp (Exim 1.92 #1) for axp-list@redhat.com id 0zMVEx-0005Qi-00; Fri, 25 Sep 1998 12:36:43 +0200 Received: from localhost (cpbotha@localhost) by angst.dsp.sun.ac.za (8.8.7/8.8.7) with SMTP id MAA24837 for ; Fri, 25 Sep 1998 12:36:43 +0200 X-Authentication-Warning: angst.dsp.sun.ac.za: cpbotha owned process doing -bs Date: Fri, 25 Sep 1998 12:36:42 +0200 (SAST) From: Charl Botha X-Sender: cpbotha@angst.dsp.sun.ac.za To: axp-list@redhat.com Subject: Re: imake/xmkmf on rh5.1 alpha, egcs1.1b In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > This problem will have to be looked into somewhat more... I really hate replying on my own email but... I sent a similar diagnosis to the egcs-bug list, someone did reply but my procmail put it in a funny place. Following is the script I wrote up to replace /lib/cpp, + a change advised by Manfred Hollstein to solve the problem when the cpp is passed a file with a non-program or non-header extension. This works for me (if there's a more effective way, please enlighten me): ------- SNIP # /lib/cpp replacement; # , #!/bin/bash # check if we have a filename on the commandline for i in $*; do if [ -f $i ]; then FNBOOL="true"; break; fi done # run gcc with parameters so it'll work on files # with non-program extensions if [ -z $FNBOOL ]; then gcc -x c -E $* - else gcc -x c -E $* fi ------- SNIP Regards, Charl --------------------------------------------------------------------------- Charl Botha E-Mail cpbotha@sun.ac.za Image Processing and Pattern Recognition Digital Signal Processing Group Department of Electronic Engineering University of Stellenbosch South Africa