]> git.donarmstrong.com Git - lilypond.git/commitdiff
ugh
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 7 Jul 2004 00:39:02 +0000 (00:39 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 7 Jul 2004 00:39:02 +0000 (00:39 +0000)
SConstruct

index 66c4f448c26529a0750a1118c71acddf693a4f42..5a043517726fa15e5bbb22070c2e9e2fa5bfdf88 100644 (file)
@@ -51,35 +51,35 @@ conf = Configure (env)
 
 #ugh -- hardcode territory
 defines = {
-   'DIRSEP' : "'/'",
-   'PATHSEP' : "':'",
-
-   'PACKAGE': '"lilypond"',
-   'TOPLEVEL_VERSION' : '"2.3.6"',
-   'DATADIR' : '"' + os.getcwd () + '/share"',
-   'PACKAGE_DATADIR': 'DATADIR "/" PACKAGE',
-   'LILYPOND_DATADIR' : 'PACKAGE_DATADIR',
-   'LOCAL_PACKAGE_DATADIR' : 'PACKAGE_DATADIR "/" TOPLEVEL_VERSION',
-   'LOCAL_LILYPOND_DATADIR' : 'LOCAL_PACKAGE_DATADIR',
-   'LOCALEDIR' : '"' + os.getcwd () + '/share/locale"',
+   '0DIRSEP' : "'/'",
+   '1PATHSEP' : "':'",
+
+   '2PACKAGE': '"lilypond"',
+   '3TOPLEVEL_VERSION' : '"2.3.6"',
+   '4DATADIR' : '"' + os.getcwd () + '/share"',
+   '5PACKAGE_DATADIR': 'DATADIR "/" PACKAGE',
+   '6LILYPOND_DATADIR' : 'PACKAGE_DATADIR',
+   '7LOCAL_PACKAGE_DATADIR' : 'PACKAGE_DATADIR "/" TOPLEVEL_VERSION',
+   '8LOCAL_LILYPOND_DATADIR' : 'LOCAL_PACKAGE_DATADIR',
+   '9LOCALEDIR' : '"' + os.getcwd () + '/share/locale"',
 }
 
 headers = ('sys/stat.h', 'assert.h', 'kpathsea/kpathsea.h')
 for i in headers:
        if conf.CheckCHeader (i):
-                       key = re.sub ('[./]', '_', 'HAVE_' + string.upper (i))
+                       key = re.sub ('[./]', '_', 'zHAVE_' + string.upper (i))
                 defines[key] = '1'
 
 ccheaders = ('sstream',)
 for i in ccheaders:
        if conf.CheckCXXHeader (i):
-                       key = re.sub ('[./]', '_', 'HAVE_' + string.upper (i))
+                       key = re.sub ('[./]', '_', 'zHAVE_' + string.upper (i))
                 defines[key] = '1'
 
 functions = ('gettext', 'isinf', 'memmem', 'snprintf', 'vsnprintf')
 for i in functions:
        if 0 or conf.CheckFunc (i):
-                       key = re.sub ('[./]', '_', 'HAVE_' + string.upper (i))
+                       key = re.sub ('[./]', '_', 'zHAVE_' + string.upper (i))
                 defines[key] = '1'
 
 if conf.CheckLib ('dl'):
@@ -90,8 +90,11 @@ if conf.CheckLib ('kpathsea'):
 
 # ugh?
 config = open ('config.h', 'w')
-for i in defines.keys ():
-       config.write ('#define %s %s\n' % (i, defines[i]))
+sort_helper = defines.keys ()
+sort_helper.sort ()
+#for i in defines.keys ():
+for i in sort_helper:
+       config.write ('#define %s %s\n' % (i[1:], defines[i]))
 config.close ()
 env = conf.Finish ()