From: Abdelrazak Younes Date: Tue, 16 May 2006 10:37:25 +0000 (+0000) Subject: scons_utils.py: fix mkdir test on mingw X-Git-Tag: 1.6.10~13225 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b612ed84dd94d18b01eda09d1f18397506d75556;p=features.git scons_utils.py: fix mkdir test on mingw all files set to eolstyle native git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13851 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/scons_utils.py b/development/scons/scons_utils.py index 6cb37c670e..81dd374399 100644 --- a/development/scons/scons_utils.py +++ b/development/scons/scons_utils.py @@ -211,12 +211,25 @@ int main() mkdir("somedir"); } """ + + check_mkdir_one_arg_source2 = """ +#include +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