configure: add --with-gpfs option for selecting directory with gpfs headers
authorBjörn Baumbach <bb@sernet.de>
Mon, 27 Jul 2015 10:14:37 +0000 (12:14 +0200)
committerMartin Schwenke <martins@samba.org>
Wed, 29 Jul 2015 08:33:29 +0000 (10:33 +0200)
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
lib/util/wscript
lib/util/wscript_configure

index 26b5564babc19d1ca3609f5d2be4976ea59db260..953becf6563e36186e85cf6a6d394f40cd20105c 100644 (file)
@@ -17,3 +17,7 @@ def set_options(opt):
     opt.add_option('--without-lttng',
                    help=("Disable lttng integration"),
                    action='store_false', dest='enable_lttng')
+
+    opt.add_option('--with-gpfs',
+                   help=("Directory under which gpfs headers are installed"),
+                   action="store", dest='gpfs_headers_dir', default="/usr/lpp/mmfs/include/")
index 95a89493d9a805f63945007bfbc1066849afe40c..e7bcbd6bffa76cf8c835083b6b3add3afd246431 100644 (file)
@@ -135,6 +135,6 @@ else:
     conf.SET_TARGET_TYPE('lttng-ust', 'EMPTY')
     conf.undefine('HAVE_LTTNG_TRACEF')
 
-conf.env['CPPPATH_GPFS'] = '/usr/lpp/mmfs/include/'
+conf.env['CPPPATH_GPFS'] = Options.options.gpfs_headers_dir
 if conf.CHECK_HEADERS('gpfs.h', False, False, "gpfs"):
     conf.DEFINE('HAVE_GPFS', '1')