diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-22 13:01:58 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:59 +1000 |
commit | 2239a52fecc5e630e61d72b3b13e18bad9c582e0 (patch) | |
tree | 74bcd718f3c091914d6d67d46b699181cd70f94e /lib/replace/wscript | |
parent | 8bc95608223033428cc1fae7525f07e22ab7d8ef (diff) | |
download | samba-2239a52fecc5e630e61d72b3b13e18bad9c582e0.tar.gz samba-2239a52fecc5e630e61d72b3b13e18bad9c582e0.tar.bz2 samba-2239a52fecc5e630e61d72b3b13e18bad9c582e0.zip |
build: check if a simple C program runs
This will be helpful for working out why AIX is failing
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 73a89f0060..052b55b098 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -73,6 +73,15 @@ def configure(conf): conf.env.DISABLE_SHARED = Options.options.disable_shared + # see if we can compile and run a simple C program + conf.CHECK_CODE('#include "test/simple.c"', + addmain=False, + define='HAVE_SIMPLE_C_PROG', + mandatory=True, + execute=True, + msg='Checking simple C program') + + # check for rpath if not conf.env.DISABLE_SHARED and conf.CHECK_RPATH_SUPPORT(): conf.env.RPATH_ON_BUILD = not Options.options.disable_rpath_build |