From xemacs-m  Tue Jan  7 10:40:26 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id KAA04177 for <xemacs-beta@xemacs.org>; Tue, 7 Jan 1997 10:40:24 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id IAA30026; Tue, 7 Jan 1997 08:50:31 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: a bad test for XFree86 in configure
References: <xcdsp4eb7en.fsf@gargoyle164.cs.uchicago.edu>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Soren Dayton's message of 06 Jan 1997 19:28:32 -0600
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 07 Jan 1997 08:50:24 -0800
Message-ID: <m2g20d1lbj.fsf@altair.xemacs.org>
Lines: 85
X-Mailer: Red Gnus v0.72/XEmacs 20.0

>>>>> "Soren" == Soren Dayton <csdayton@cs.uchicago.edu> writes:

Soren> the test is:

Soren>   elif test -d /usr/X11R6/include; then
Soren>     HAVE_XFREE386=yes
Soren>     test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"

Soren> This is not, however a definitive test.  In fact, I can assure you that
Soren> my Solaris machine does not run XFree86.

Please try this patch out and see if it works any better for you.

(The second hunk is from the AIX slash patch, and can be ignored)

Index: configure
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/configure,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 configure
--- configure	1996/12/21 20:44:40	1.1.1.3
+++ configure	1997/01/07 16:47:39
@@ -3011,7 +3011,9 @@
   if test -d /usr/X386/include; then
     HAVE_XFREE386=yes
     test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
-  elif test -d /usr/X11R6/include; then
+  elif test -f /etc/XF86Config -o
+	    -f /etc/X11/XF86Config -o
+	    -f /usr/X11R6/lib/X11/XF86Config; then
     HAVE_XFREE386=yes
     test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
   else
@@ -5519,23 +5521,33 @@
 
 
 # AIX export list
-for export in /usr/lpp/X11/bin/smt.exp /usr/bin/X11/smt.exp ; do
-  if test -f "$export" ; then
-    
+if test -f /usr/lpp/X11/bin/smt.exp ; then
+  
 {
 test -n "$verbose" && \
-echo "	defining" AIX_SMT_EXP to be "-bI:$export"
-echo "#define" AIX_SMT_EXP "-bI:$export" >> confdefs.h
-DEFS="$DEFS -DAIX_SMT_EXP=-bI:$export"
-ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:\\\\\\\$export\${ac_dD}
-\${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:\\\\\\\$export\${ac_uD}
-\${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:\\\\\\\$export\${ac_eD}
+echo "	defining" AIX_SMT_EXP to be "-bI:/usr/lpp/X11/bin/smt.exp"
+echo "#define" AIX_SMT_EXP "-bI:/usr/lpp/X11/bin/smt.exp" >> confdefs.h
+DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/lpp/X11/bin/smt.exp"
+ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_dD}
+\${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_uD}
+\${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/lpp/X11/bin/smt.exp\${ac_eD}
 "
 }
 
-    break
-  fi
-done
+elif test -f /usr/bin/X11/smt.exp ; then
+  
+{
+test -n "$verbose" && \
+echo "	defining" AIX_SMT_EXP to be "-bI:/usr/bin/X11/smt.exp"
+echo "#define" AIX_SMT_EXP "-bI:/usr/bin/X11/smt.exp" >> confdefs.h
+DEFS="$DEFS -DAIX_SMT_EXP=-bI:/usr/bin/X11/smt.exp"
+ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}-bI:/usr/bin/X11/smt.exp\${ac_dD}
+\${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}-bI:/usr/bin/X11/smt.exp\${ac_uD}
+\${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}-bI:/usr/bin/X11/smt.exp\${ac_eD}
+"
+}
+
+fi
 
 CFLAGS="$REAL_CFLAGS"
 

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"That Bill Clinton.  He probably doesn't know how to log on to the
Internet."  -- Rush Limbaugh, noted Computer Expert

