Pass 'nostdinc' to AM_INIT_AUTOMAKE().
authorPeter Griess <pgriess@fb.com>
Fri, 20 Sep 2013 21:00:49 +0000 (16:00 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:09 +0000 (18:46 -0700)
Summary:
- On hosts with case-insensitive filesystems, adding folly/ directory to
the include path causes String.h to get picked up as <string.h>. Add
'nostdinc' to the AM_INIT_AUTOMAKE() invocation to remove these
standard includes from the set of compile flags.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: delong.j@fb.com

FB internal diff: D998505

folly/configure.ac

index eb8a175eb5bb3ac0161dddf42b654ccc89da19ac..cd0489afe43a1cae6443b4a2682b763e2ba2a6e2 100644 (file)
@@ -9,7 +9,7 @@ AC_CONFIG_HEADERS([config.h])
 AX_PREFIX_CONFIG_H([folly-config.h], [folly], [config.h])
 AC_CONFIG_AUX_DIR([build-aux])
 
-AM_INIT_AUTOMAKE([foreign dist-bzip2])
+AM_INIT_AUTOMAKE([foreign dist-bzip2 nostdinc])
 
 AC_CONFIG_MACRO_DIR([m4])