/[ascend]/trunk/ascend-config.in
ViewVC logotype

Diff of /trunk/ascend-config.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2083 by jpye, Thu Sep 24 06:37:53 2009 UTC revision 2415 by jpye, Tue Mar 15 00:36:13 2011 UTC
# Line 58  if platform.system()=="Windows": Line 58  if platform.system()=="Windows":
58              try:              try:
59                  # we can only munge the path if it actually exists                  # we can only munge the path if it actually exists
60                  s1 = win32api.GetShortPathName(s)                  s1 = win32api.GetShortPathName(s)
                 s1 = s1.replace("\\","\\\\")  
61              except:              except:
62                  # if it doesn't exist, we just return the un-munged path                  # if it doesn't exist, we just return the un-munged path
63                  pass                  pass
64                # follow the pkg-config approach and use forward slashes instead of backslashes
65                s1 = s1.replace("\\","/")
66              return s1              return s1
67          munge = munge1          munge = munge1
68      except:      except:
# Line 104  if options.cppflags: Line 105  if options.cppflags:
105      include = ""      include = ""
106      if INCLUDE!="/usr/include":      if INCLUDE!="/usr/include":
107          include=INCLUDE          include=INCLUDE
108      if -1!=include.find(" "):      if len(include):
109          print "-I"+munge(include)+""          print "-I"+munge(include)+""
     elif len(include):  
         print "-I"+include  
110      ok = True      ok = True
111    
112  if options.libs:  if options.libs:
113      libs = ""      libs = ""
114      if LIB!="/usr/lib":      if LIB!="/usr/lib":
115          libs = LIB          libs = LIB
116      if -1!=libs.find(" "):      Lflag  = ""
117          print "-L"+munge(libs)+" -lascend"      if len(libs):
118      else:          Lflag = "-L"+munge(libs)+" "
119          Lflag  = ""      print Lflag + "-lascend"
         if len(libs):  
             Lflag = "-L"+libs+" "  
         print Lflag + "-lascend"  
120      ok = True      ok = True
121    
122  if options.data:  if options.data:

Legend:
Removed from v.2083  
changed lines
  Added in v.2415

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22