@@ -1435,6 +1435,52 @@ fi
1436} # ac_fn_c_try_compile
1436} # ac_fn_c_try_compile
1438+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1439+# ---------------------------------------------
1440+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1442+ac_fn_c_check_decl ()
1444+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445+ as_decl_name=`echo $2|sed 's/ *(.*//'`
1446+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1447+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1448+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1449+if eval \${$3+:} false; then :
1450+ $as_echo_n "(cached) " >&6
1452+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1453+/* end confdefs.h. */
1458+#ifndef $as_decl_name
1460+ (void) $as_decl_use;
1462+ (void) $as_decl_name;
1470+if ac_fn_c_try_compile "$LINENO"; then :
1475+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1478+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1479+$as_echo "$ac_res" >&6; }
1480+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1482+} # ac_fn_c_check_decl
1438# ac_fn_c_try_cpp LINENO
1484# ac_fn_c_try_cpp LINENO
1439# ----------------------
1485# ----------------------
1440# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1486# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
@@ -2109,7 +2155,7 @@ if test "${with_compiler+set}" = set; then :
2112−# Check headers and functions required
2158+# XXX Do this only for linux
2114ac_cpp='$CPP $CPPFLAGS'
2160ac_cpp='$CPP $CPPFLAGS'
2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2900,6 +2946,32 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
2900ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949+ac_fn_c_check_decl "$LINENO" "IN_MASK_CREATE" "ac_cv_have_decl_IN_MASK_CREATE" "#include <sys/inotify.h>
2951+if test "x$ac_cv_have_decl_IN_MASK_CREATE" = xyes; then :
2957+cat >>confdefs.h <<_ACEOF
2958+#define HAVE_DECL_IN_MASK_CREATE $ac_have_decl
2961+ac_fn_c_check_decl "$LINENO" "IN_EXCL_UNLINK" "ac_cv_have_decl_IN_EXCL_UNLINK" "#include <sys/inotify.h>
2963+if test "x$ac_cv_have_decl_IN_EXCL_UNLINK" = xyes; then :
2969+cat >>confdefs.h <<_ACEOF
2970+#define HAVE_DECL_IN_EXCL_UNLINK $ac_have_decl
2974+# Check headers and functions required
2904ac_cpp='$CPP $CPPFLAGS'
2976ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3322,7 +3394,7 @@ done
3325−ac_config_headers="$ac_config_headers src/Streamly/Internal/Data/Time/config.h"
3397+ac_config_headers="$ac_config_headers src/config.h"
3327cat >confcache <<\_ACEOF
3399cat >confcache <<\_ACEOF
3328# This file is a shell script that caches the results of configure
3400# This file is a shell script that caches the results of configure
@@ -3996,7 +4068,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3996for ac_config_target in $ac_config_targets
4068for ac_config_target in $ac_config_targets
3998 case $ac_config_target in
4070 case $ac_config_target in
3999− "src/Streamly/Internal/Data/Time/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/Streamly/Internal/Data/Time/config.h" ;;
4071+ "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4001 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;