fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
+$as_echo_n "checking if compiling with clang... " >&6; }
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+#ifndef __clang__
+ not clang
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ CLANG=yes
+else
+ CLANG=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
+$as_echo "$CLANG" >&6; }
+
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
fi
+if test "x$CLANG" = "xyes"; then
+ CFLAGS="$CFLAGS -Qunused-arguments"
+ LDFLAGS="$LDFLAGS -Qunused-arguments"
+fi
+
# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then :
enableval=$enable_largefile;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
- smart_include="-I$try"
+ smart_include="-I$try -isystem $try"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
break
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
- smart_include="-I$try"
+ smart_include="-I$try -isystem $try"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
break