MAGIC Magic Mailing List
 
 

From: Stefan Robert (s.robert AT usherbrooke DOT ca)
Date: Mon Sep 29 2003 - 22:12:03 EDT

  • Next message: Adam Fedor: "Re: Autoconf problem on MacOS X"

    Tim,
    
    thanks for the suggestions, I looked for the differences between the 
    two defs.mak files and found out that the following lines are defined 
    in the defs.mak file from the make config script and missing in the 
    defs.mak file from the configure script:
    
    MAC_EXTRA_LIBS         =  -L/usr/local/lib -L/usr/local/lib -ltcl8.4 
    -ltk8.4
    MAC_SHARED	       =  ${MAGICDIR}/magic/tclmagic${SHDLIB_EXT}
    
    
    
    I compared the defs.mak file from the make config and the configure 
    script and saw that in order to compile on MacOS X (well on my machine) 
    you need to have the following CFLAGS:
    
    defs.mak with the configure script:
    CFLAGS                 = -g -O2
    defs.mak with the make config script:
    CFLAGS                 = -g  -I/usr/local/include -I/usr/local/include 
    -I/usr/X11R6/include -I/sw/include -O2 -fno-common
    
    I added the missing statements in CFLAGS and it compiles. I must point 
    out that the -fno-common was also missing.
    
    Also, I noticed there is another difference with the defs.mak files. 
    The following line is in the defs.mak generated by make config but not 
    by configure:
    
    DEPEND_FLAG            = -MM
    
    
    
    I tried to find where to change this in the configure script, I tried a 
    couple of things but it did not work... maybe you might have better 
    luck with this.
    
    Best regards,
    
    Stéfan
    
    
    Le dimanche, 28 sep 2003, à 12:17 America/Montreal, R. Timothy Edwards 
    a écrit :
    
    > Dear Stefan,
    >
    >    I have the standard command for including the X headers in the
    > autoconf script, so I assume it has something to do with the way I pass
    > the library variables to the compile command.  I will probably need to
    > see the "Makefile" (in XCircuit, "defs.mak" would be the relevant file
    > in magic) to figure out why you didn't get the proper path for the
    > Xlib include file.
    >
    >    Note---
    > "usr/local/include/tk.h:96: header file 'X11/Xlib.h'" suggests that Tk
    > expects the line "-I/usr/X11R6/include", or whatever is the equivalent
    > path on Mac OS X.  It is this "-I" line that is missing from the 
    > compile
    > statement.
    > 					Regards,
    > 					Tim
    >
    


  •  
     
    Questions? Contact Rajit Manohar
    cornell logo