]> git.lyx.org Git - features.git/commitdiff
scons_utils.py: fix mkdir test on mingw
authorAbdelrazak Younes <younes@lyx.org>
Tue, 16 May 2006 10:37:25 +0000 (10:37 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 16 May 2006 10:37:25 +0000 (10:37 +0000)
all files set to eolstyle native

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13851 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_utils.py

index 6cb37c670e8c33b69bb23a254c975a5cadf0a019..81dd374399b471feccf8901c3e010c79e1351c75 100644 (file)
@@ -211,12 +211,25 @@ int main()
   mkdir("somedir");
 }
 """
+
+  check_mkdir_one_arg_source2 = """
+#include <unistd.h>
+int main()
+{
+  mkdir("somedir");
+}
+"""
+
   conf.Message('Checking for the number of args for mkdir... ')
   ret = conf.TryLink(check_mkdir_one_arg_source, '.c')
   if ret:
     conf.Result('one')
   else:
-    conf.Result('two')
+    ret = conf.TryLink(check_mkdir_one_arg_source2, '.c')
+    if ret:
+      conf.Result('one')
+    else:     
+      conf.Result('two')
   return ret