summaryrefslogtreecommitdiffstats
path: root/admin/detect_uds_hidden.diff
blob: d92ccaf9778b6a8c5c6f6d7df2d9f0fa6a874978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Only in tdeio-locate/admin/: .arch-ids
diff -ur bksys-1.5.1.pre4/admin/kde.py tdeio-locate/admin/kde.py
--- bksys-1.5.1.pre4/admin/kde.py	2005-08-16 23:16:32.000000000 +0200
+++ tdeio-locate/admin/kde.py	2005-08-17 12:27:49.000000000 +0200
@@ -242,6 +242,15 @@
 		qtlibs=qtdir+"/lib"+libsuffix
 	env['QTLIBPATH']=qtlibs
 
+	## check if KDE has the UDS_HIDDEN patch
+	print "Checking KDE for UDS_HIDDEN       : ",
+	if 'UDS_HIDDEN' in os.popen('cat ' + env['KDEINCLUDEPATH'] + '/tdeio/global.h').read():
+		env['HAVE_UDS_HIDDEN']='1'
+		p('GREEN', 'yes')
+	else:
+		env['HAVE_UDS_HIDDEN']='0'
+		p('YELLOW', 'no')
+
 def generate(env):
 	""""Set up the qt and kde environment and builders - the moc part is difficult to understand """
 
@@ -304,7 +313,7 @@
 		('KDELOCALE', ''), ('KDEDOC', ''), ('KDEKCFG', ''),
 		('KDEXDG', ''), ('KDEXDGDIR', ''), ('KDEMENU', ''),
 		('KDEMIME', ''), ('KDEICONS', ''), ('KDESERV', ''),
-		('KDESERVTYPES', ''), ('KDEAPPS', ''),
+		('KDESERVTYPES', ''), ('KDEAPPS', ''), ('HAVE_UDS_HIDDEN', ''),
 	)
 	opts.Update(env)